Regal

Introduction 

Regal.io  is the phone and SMS sales solution built to drive more conversations so you can hit your growth goals way faster.

MoEngage <> Regal

MoEngage and Regal integration via MoEngage Connectors allows you to trigger a call in Regal when the person performs a specific action on your app. It allows you to use MoEngage advanced segmentation, predictive capabilities, personalization, and triggering features to call your users via Regal.  

Use case 

  • Update Regal every time a user (who you want to be available for calls and texts in Regal) is created on MoEngage
  • Send up-to-date opt-in information to Regal, if you have an event on MoEngage that represents user opting in or unsubscribing 

  • Send any custom event (that are important for triggering SMS and Calls in Regal) from MoEngage to Regal

Integration

library_add_check

Prerequisites

  • Ensure you have a Regal account.
  • Ensure you have Regal API key. If not, please reach out to support@regal.io to get it.

 

You can add any key events you want to send Regal - Regal recommends sending any events that are important for triggering SMS and Calls in Regal (such as an event at each step of the signup or purchase flow) or will that be used as exit criteria for contacts to fall out of Regal campaigns.

Steps 

To create a connector campaign on MoEngage, 

1. Navigate to Create Campaign >> Connectors >> Custom and choose delivery type most suitable to your needs 

Screenshot_2022-02-21_at_10.48.46_PM.png

 

2. Choose Segment of users for whom line_id exists (You can combine with other Segment criteria)

Screen_Shot_2022-02-22_at_4.45.12_PM.png

You can filter users based on your criteria and use-case. 

3. On step 2 of the campaign, 

  • Select method as POST
  • Add Webhook URL as : https://events.regalvoice.com/events 
  • In Headers, add
    • Content-Type as application/json
    • Authorization  as {regal_API_key}  
  • In Body, choose Raw and use the body depending on what kind of event you want to send out. 

Here are some examples based on your use-case:

A) Update contact in Regal 

The example assumes all your contacts have accepted opt-in for voice and SMS. If that’s not true, you can remove the optIn property from the above and set up a separate flow or campaign to update a contact in Regal when optIn is collected.

B) Update opt-in details on Regal 

If opt-in and out can happen at different parts of your user experience on your app, it’s important to update Regal as users opt in or out. You can use this body for sending up-to-date opt-in information to Regal. It assumes you save this as a MoEngage user attribute, but if not, the trigger can just as easily be an event in your MoEngage account that represents a user opting in or unsubscribing.

  • The example here is for phone opt-in, but you can set up a similar flow or campaign for SMS opt-in if you collect those separately.
  • You can also add additional user attributes in this payload as well if you want to ensure more attributes are up to date simultaneously.

C) Send custom events to Regal

You can also set up a campaign for each of the key events you want to send Regal - Regal recommends sending any events that are important for triggering SMS and Calls in Regal (such as an event at each step of the signup or purchase flow) or will that be used as exit criteria for contacts to fall out of Regal campaigns.

Update contact in Regal Update opt-in details Custom events
{
    "userId": "", //Optional
    "traits": {
        "phone": "",
        "email": "",
        "firstName": "",
        "lastName": "",
        "optIn": [
            {
                "channel": "voice",
                "source": "",
                "subscribed": true
            },
            {
                "channel": "sms",
                "source": "",
                "subscribed": true
            }
        ],
        "custom1": "",
        "custom2": ""
    },
    "eventSource": "MoEngage"
}

 

4. At this point, your campaign should be ready to test and send. You can also test your connector configuration using the Test functionality available on Step 2 of Create Connector Campaign

Screen_Shot_2022-02-22_at_11.12.42_AM.png

If your test user successfully receives the message, your set-up is good to go. You can go ahead and Publish the campaign.

 

Up-to-date contact attributes

While it’s not necessary, Regal recommends also sending any key user profile data fields on the event payloads of your event workflows to ensure Regal has access to the most up-to-date contact attributes at the time key events become available.

Previous

Next

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?