# Exotel WebRTC Calling - Setup Guide

***

### Integration Capabilities

The Exotel WebRTC integration empowers users to manage all inbound and outbound calls **directly within the LimeChat CRM**, **eliminating the need for mobile phones**. This seamless integration allows users to make and receive calls effortlessly through the CRM interface, ensuring a **streamlined** and **efficient** **calling** **experience**.

***

### Integration Steps

{% hint style="info" %}
Before creating an inbox, please check whether the users are present on the Exotel dashboard or not. If the users(agents) are already present on the Exotel dashboard, please get them deleted by raising a support request with Exotel. Now you can proceed with inbox creation.
{% endhint %}

{% hint style="info" %}
Please mail the exotel team to get V1 Leg APIs enabled for this account.
{% endhint %}

#### Inbox Creation

To create a Exotel WebRTC. Voice inbox

{% stepper %}
{% step %}
Go to Settings Section → Inboxes Section → Add Inbox Button → Voice channel → Exotel WebRTC

Add a screen shot here
{% endstep %}

{% step %}
**Fill Details**

You will be required to fill the following credentials:

* Inbox Name (*This is only for internal purposes and will not be visible to your customers)*
* Domain
* Account SID &#x20;
* Exotel API Key &#x20;
* Exotel API Token&#x20;
* Customer Secret Key &#x20;
* Customer Entity ID &#x20;
* Virtual Number(s)

<figure><img src="/files/3xBDLJalQwKVbTlXBGTF" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Phone numbers must start with the country code **without** `+` sign.
{% endhint %}
{% endstep %}

{% step %}
**Create Inbox**

Clicking the **Create Inbox** button will generate an Exotel WebRTC Inbox and take you to the next step of adding agents.&#x20;
{% endstep %}

{% step %}
**Add Agents**&#x20;

<figure><img src="/files/G7t8AgXebqRRWHzDykfO" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Agent Addition is one of the most crucial steps of this process, please carefully follow the steps defined here to correctly add the agents: [Steps for Adding Collaborators on WebRTC Exotel](/limechat-product-guide/helpdesk/inboxes/voice-calling-inboxes/exotel-webrtc/exotel-webrtc-calling-setup-guide/steps-for-adding-collaborators-on-webrtc-exotel.md)
{% endhint %}
{% endstep %}
{% endstepper %}

***

### How to fetch details from Exotel Dashboard

To access your Exotel API Key, API Token, Customer Secret Key, and Customer Entity ID, follow these steps:

**Exotel API Key and API Token**:

1. Log in to your Exotel account
2. Navigate to **Settings** > **API**.
3. Here, you'll find your **API Key** and **API Token**

**Customer Secret Key and Customer Entity ID**:

1. These credentials are essential for authenticating API requests, especially when integrating services like WebRTC.
2. To obtain them, please contact Exotel's support team or your account manager. They will assist you in generating the necessary credentials

<figure><img src="/files/YPhbTJWhloq1bxpxUQZT" alt="" width="563"><figcaption></figcaption></figure>

***

### Enabling Incoming Webhooks from Exotel Dashboard

{% stepper %}
{% step %}
Go to Exotel Dashboard

{% endstep %}

{% step %}
Click on `App bazaar`

<figure><img src="/files/vVY7woEDvP7TPVSBBTax" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
On this page, either **create a new app** or **edit** an existing one if you already have an app

<figure><img src="/files/enLy1ocMgMgcDUMvO7iz" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Create** Flows

Flow to be created:

1. **Call Start**: *This defines what should be done when a call starts*
2. Add a "Connect" Voice applet

This applet consists of multiple configurations; choose the following options for this setup.

<table><thead><tr><th width="336">Parameters</th><th>Value to be filled</th><th data-hidden></th></tr></thead><tbody><tr><td>How do you want to control your Connect params? </td><td>"Configure using flow builder here"</td><td></td></tr><tr><td>Dial Whom</td><td>Dial a user or group (And select the relevant group)</td><td></td></tr><tr><td>Distribute Calls</td><td>Choose between "Sequentially" and "Equally" as per your requirement.</td><td></td></tr><tr><td>Record this call?</td><td>Enable this if you want to get a recording of the calls</td><td></td></tr><tr><td>Create popup</td><td>Enter the following endpoint here: <a href="https://messaging.limechat.ai/webhooks/v1/exotel-web-rtc.post-event">https://messaging.limechat.ai/webhooks/v1/exotel-web-rtc.post-event</a></td><td></td></tr></tbody></table>
{% endstep %}

{% step %}
Configure "After the call conversation ends"

Add a "passthrough" applet

* In the Pass through applet add the following endpoint <https://integrationscore.mum1.exotel.com/v2/integrations/call/inbound_call/67b18966-ea15-4416-9ee9-fc127e7c6b61?type=incomingcallhungup>
* Enable "Make Passthru Async"

  <figure><img src="/files/v8Ca177ol0u7vwxylq7A" alt="" width="563"><figcaption></figcaption></figure>

{% endstep %}

{% step %}
Save this app and the setup is completed
{% endstep %}
{% endstepper %}

***

### Connecting Apps with Exophones

{% stepper %}
{% step %}
Navigate to ExoPhones
{% endstep %}

{% step %}
Edit the "Installed App" and select the required app from the dropdown

<figure><img src="/files/ZmfLGr6KJ9ui5NiYQV5Z" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://limechatai.gitbook.io/limechat-product-guide/helpdesk/inboxes/voice-calling-inboxes/exotel-webrtc/exotel-webrtc-calling-setup-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
