image.png

Limitations:

  1. This integration only applies to phone numbers collected via a Webapp experiences (which include SMS consent opt-in) and is not currently supported for phone numbers collected via rebates.

Prerequisites:

  1. You must already have a Brij Automation enabled with Klaviyo
  2. Ensure the automation is configured to send phone numbers and SMS consent
  3. Ensure your Brij experiences are configured to capture phone number and SMS consent

Directions:

  1. Create a new Klaviyo flow

    1. Name the flow “Brij to Postscript - SMS Subscribers” or similar
  2. Add a trigger

    1. Select the metric “Brij User Profile Update” as a trigger

    2. Set a trigger filter to only run this flow when “SMS Single Consent” (boolean) is “true”

      image.png

  3. Configure the Postscript webhook

    1. Drag and drop the Webhook block from the Action below the trigger block

    2. Set the following parameters in the Webhook Block:

      image.png

      1. Destination URL: https://api.postscript.io/api/v2/subscribers

      2. Key: Authorization

      3. Value: Bearer {POSTSCRIPT_API_KEY} [Example API_KEY: sk_a942d5d5635#####################]

      4. JSON body:

        {
        "origin": "other",
        "keyword": "BRIJOPTIN",
        "tags": [
        "brij"
        ],
        "email": "{{ event|lookup:'Customer Email'|default:'' }}",
        "phone_number": "{{ event|lookup:'Customer Phone Number'|default:'' }}"
        }
        
  4. Create a sample registration

    1. Create a Brij experience that includes an SMS opt-in checkbox as past for the registration flow
    2. Paste in your legal opt-in language with your terms and conditions and privacy policy as needed.
    3. Open the experience in your browser and complete the registration flow, making sure to check box for SMS opt-in
  5. Preview the integration

    1. Return to the webhook action block in your Klaviyo flow and click the “Preview” button to bring up the preview window.

    2. Find the profile and User Profile Update event from the previous test

    3. Click Send Test Request

      image.png

    4. Ensure the test request sends successfully and that the user profile and SMS consent appear correctly in Postscript