---
title: Setup Call Flow with Exotrunk
slug: dynamic-sip-trunking/setup-call-flow-with-exotrunk
description: Discover Exotel's App Bazaar to effortlessly set up and manage call flows, enabling advanced routing, voice bots, and API-integrated outbound calls.
docTags: 
createdAt: 2025-10-30T09:09:31.171Z
---

You can set up and manage call flows in Exotel using the **App Bazaar**.
Call flows allow you to define how incoming or outgoing calls should be handled — for example, routing calls to agents, triggering voicebots, or forwarding to SIP endpoints.

## Accessing App Bazaar

1. From the **Exotel Dashboard**, go to **Manage → App Bazaar**.
2. Under **Custom Apps**, you will see a list of existing call flows.

To create a new flow, click **CREATE**.

***

## Creating a New Call Flow

1. Click **CREATE** in the App Bazaar section.
   A pop-up will appear prompting you to **Add New Flow**.
2. Enter a name for your flow (e.g., `sip-flow`) and click **OK**.
3. You will be redirected to the visual **Flow Builder** interface.

***

## Designing Your Flow

You can route calls to your SIP trunk created under **Exotrunk Management**.

:::::WorkflowBlock
:::WorkflowBlockItem
Drag the **Connect** applet to the **Call Start** block.
:::

:::WorkflowBlockItem
Under **Connect**, choose:

- **Configure using flow builder here** (default)
- Skip dynamic URL configuration unless required.
:::

::::WorkflowBlockItem
In the **Dial Whom** section, specify the number or SIP endpoint to connect.

| Field                    | Description                                                                             |
| ------------------------ | --------------------------------------------------------------------------------------- |
| **Dial phone number(s)** | Enter SIP URI to connect the call. **Example (**`sip:trmun1c99b77f41d1f4a4d2c19au`**)** |



![](https://api.archbee.com/api/optimize/SK2urIgCC2ml99YyqWOSl/-JN6eZ8iTOysPkhGaCNhk_screenshot-2025-10-30-at-24154-pm.png)

:::hint{type="info"}
When routing to a SIP trunk, use the Trunk ID from your Exotrunk details page in the format:
`sip:<trunk-id>`
:::
::::

:::WorkflowBlockItem
You can optionally configure:

| Setting               | Description                                         |
| --------------------- | --------------------------------------------------- |
| **Record this call?** | Enable call recording for monitoring or compliance. |
:::

:::WorkflowBlockItem
**Save Your Flow**

1. After configuring your applets, click **SAVE** on the top-right.
2. Your new flow will now appear under **Custom Apps** in the App Bazaar list.
3. The new flow is ready to be assigned to an **Exophone** or used in your API Integrations
:::
:::::

:::hint{type="info"}
Deleting a flow will immediately stop all calls associated with it.
Ensure that the flow is not mapped to active Exophones before deletion.
:::

## Setup up Inbound Calls

Once your call flow with exotrunk is created, you can assign it to an Exophone to handle incoming calls.

1. Go to **Manage → ExoPhones** in your Exotel Dashboard.
2. In the **Installed App** column, select the dropdown next to the Exophone you want to configure.
3. Choose your newly created flow from the list (for example, **sip-flow**).
4. The selected flow will now handle all calls made to that Exophone.

## Setup up Outbound Calls

You can initiate outbound calls from Exotel using APIs.
Outbound calls can either connect directly to a SIP trunk or trigger a call flow that handles call routing, announcements, or logic.

There are two recommended methods:

### Option 1: Using the Click-to-Call API

The **Click-to-Call API** lets you initiate a call between two endpoints — typically an agent and a customer. You can also use this API to initiate outbound calls through a SIP trunk.

**Example usage:**
Call the Click-to-Call API and specify:

- `From` as your customer number
- `To` as your SIP Trunk ID in the format **sip:\<trunk\_id>**
- `CallerId` as the Exophone configured in the Exotrunk

For complete details, see [Make a Call API](https://developer.exotel.com/api/make-a-call-api).

### Option 2: Using Outbound Call to Call Flow API

The **Outbound Call to Call Flow API** allows you to trigger a pre-configured flow directly from your app or system. This is useful when you have additional logic defined in a call flow.

**Example usage:**
Call the Outbound Call API and provide:

- `From` as your agent or system number
- `To` as the customer’s phone number or SIP endpoint
- `Url` pointing to your call flow app (using the **App ID** found in App Bazaar)

You can find the App ID in **App Bazaar → Custom Apps** under the *App ID* column.
