Exotel

Introduction

Exotel is a full-stack customer engagement platform comprised of communication APIs, an omnichannel contact center & conversational AI platform in the cloud.

MoEngage <> Exotel

Use MoEngage Connector Campaigns to send out timely Voice Campaigns to your users.

 

library_add_check

Prerequisites

  • Ensure you have access to your Exotel account.
  • Ensure you have access to Exotel APIs.

Integration

Use MoEngage Connector Campaign to trigger Exotel APIs. Below is a tutorial on how to call the Call Campaign API on Exotel:

Step 1: Get API Endpoints and specifications

Read the Exotel documentation to understand the endpoints for your use case.

Step 2: Setup Connector Campaign on MoEngage

To create a connector campaign on MoEngage, 

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

Screenshot_2022-02-21_at_10.48.46_PM.png

2. On step 2 of the campaign 

Call the Exotel API

To create a new Call Campaign on Exotel, use the POST method and configure the payload.

  • Select the method as POST
  • Headers:
    • For Basic Authentication, use your Exotel API key as the username and your API token as the password.
  • Add the endpoint as Webhook URL: https://<your_api_key>:<your_api_token><subdomain>/v2/accounts/<your_sid>/campaigns
  • Body:
    JSON
    {
        "campaigns": [
            {
                "name": "Exotel_2022-08-08 16:33:22",
                "caller_id": "0xxxx83280",
                "lists": [
                    "b7799a24becf436da672163858e8165d"
                ],
                "campaign_type": "dynamic",
                "flow_type": "ivr",
                "read_via_text": "Hi {{UserAttribute['First Name']}} {{UserAttribute['Last Name']}}, your order ID is {{EventAttribute['Order ID']}}. Press 1 to proceed, press 2 to abort"
            }
        ]
    }

ContentAPI.png

Preview your request 

At this point, your campaign should be ready to test and send. You can also test your connector configuration using the Test functionality available in Step 2 of Create Connector Campaign.Screen_Shot_2022-02-22_at_11.12.42_AM.png

You can go ahead and Publish the campaign.

 

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

How can we improve this article?