> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Exotel

# Introduction

[Exotel](https://exotel.com/) 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.

<Info>
  * Ensure you have access to your Exotel account.
  * Ensure you have access to Exotel APIs.
</Info>

# 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

<img src="https://mintcdn.com/moengage/y7-xt66tDwKMqCwN/images/partner_19201585784852.png?fit=max&auto=format&n=y7-xt66tDwKMqCwN&q=85&s=342e6322a140bb411a5cdbb6aa4fb127" alt="Screenshot_2022-02-21_at_10.48.46_PM.png" width="1104" height="1238" data-path="images/partner_19201585784852.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:
  <CodeGroup>
    ```json JSON wrap theme={null}
    {
        "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"
            }
        ]
    }
    ```
  </CodeGroup>

<img src="https://mintcdn.com/moengage/W4UIG2ZYu1ajYKNS/images/partner_15015623766548.png?fit=max&auto=format&n=W4UIG2ZYu1ajYKNS&q=85&s=b75276abed8310a6f6c25a7e977c9e9c" alt="ContentAPI.png" width="2022" height="1478" data-path="images/partner_15015623766548.png" />

* Refer to the [Exotel documentation](https://developer.exotel.com/api/ccm-calls) for more information.

## 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.<img src="https://mintcdn.com/moengage/y7-xt66tDwKMqCwN/images/partner_19201585799572.png?fit=max&auto=format&n=y7-xt66tDwKMqCwN&q=85&s=f4015efb5999a91a1dcda6f273a459ab" alt="Screen_Shot_2022-02-22_at_11.12.42_AM.png" width="2464" height="270" data-path="images/partner_19201585799572.png" />

You can go ahead and Publish the campaign.
