<aside>

In the following example, we will be sending users data to SEEN for video generation, and receiving a unique landing page link and a unique, personalised thumbnail back to Braze for distribution. This example uses a POST webhook in Braze to send data to SEEN, a POST webhook in SEEN Journey builder and data transformation to receive the data back to Braze.

If you have multiple video campaigns with SEEN, repeat the process to connect Braze with all video campaigns.

You can reach out to your Customer Success Manager at SEEN for assistance.

</aside>

Send data to SEEN

  1. Create a new Webhook Campaign in Braze.

  2. Give your campaign a name, and follow these steps to compose your webhook:

    <https://next.seen.io/v1/workspaces/{Workspace_ID}/data>
    

    <aside>

    You can find your Workspace ID in your SEEN Platform account settings.

    </aside>

    	{
        "first_name":"{{${first_name}}}",
        "last_name":"{{${last_name}}}",
        "id":"{{${braze_id}}}"
      }
    

    <aside>

    Remember to modify the payload depending on the personalisations in your film.

    More information about creating data in SEEN Platform here.

    </aside>

    <aside>

    You can create an API token in you SEEN Platform account settings.

    </aside>

  3. You can now test the webhook with a user by switching to the “Test” tab.

  4. If everything works as intended, you can proceed to finish the webhook setup.

Set up your Journey in SEEN Platform

  1. Create a new Journey
  2. Set up your Trigger node - remember to use an On Create trigger
  3. Set up the rest of the Journey logic with Conditional, Motion and Player nodes
  4. Configure your payload within the Webhook node

Receive data back from SEEN

  1. Create new Custom Attribute fields for “player_url” and “email_thumbnail_url”. These are the two attributes we will be using in this example.

  2. Open “Data Transformation” tool under “Data Settings”, and click on “Create transformation”.

  3. Give your transformation a name, and choose:

  4. Add the Webhook URL to your Journey Webhook node.

  5. You can use the code below as the starting point for the transformation:

    let brazecall = {
      "attributes": [
        {
          "braze_id": payload.id,
          "_update_existing_only": true,
          "player_url": payload.player_url,
          "email_thumbnail_url": payload.email_thumbnail_url
        }
      ]
    };
    return brazecall;
    
  6. Send a test payload to the provided endpoint. If you want to use the payload defined in this example, you can send this yourself via Postman or another similar service:

    {
            "id": "101",
            "player_url": "<https://player.seen.io/v/AhdlZ6Qq28LDQAptGHUY>",
            "email_thumbnail_url": "<https://motions.seen.io/298abdcf-1f0f-46e7-9c26-a35b4c1e83cc/d3c1dffdf063986ad521a63e3e68fd7d1100c90a/email_thumbnail.jpg>"
    }
    
  7. Click “Validate” to make sure everything works as intended.

  8. If everything worked as intended, click “Save” and “Activate”.