> For the complete documentation index, see [llms.txt](https://help.botpenguin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.botpenguin.com/ai-agents/install-your-ai-agent/telephony-and-others.md). Agents can also search and read this documentation through its [MCP server](https://help.botpenguin.com/~gitbook/mcp).

# Telephony & Others

Connecting a phone number lets customers call your AI agent and talk to it. You choose a provider, either Plivo or Twilio, and then choose how to connect: let BotPenguin set it up, set it up yourself, or use a number that is already connected.

### Prerequisites

* An AI agent that is set up, with a voice provider and a transcription provider chosen in Advanced AI. See Tune your AI agent with Advanced AI settings.
* An active account with Plivo or Twilio. Their calling charges apply.&#x20;
* Your provider details, which depend on the way you connect (see each option below).
* For Use an existing number: a number already connected under the same provider.

### Key definitions

| Term                   | Meaning                                                                 |
| ---------------------- | ----------------------------------------------------------------------- |
| Provider               | The company that gives you the phone number, Plivo or Twilio.           |
| Account SID or Auth ID | The identifier of your provider account.                                |
| Auth token             | A secret key that goes with the SID or Auth ID. Keep it private.        |
| SIP trunk              | The connection that carries calls between your provider and BotPenguin. |
| Trunk name             | The name for the SIP trunk BotPenguin creates in your provider account. |
| Termination URI        | The SIP address from your provider where calls end.                     |
| Outbound transport     | The protocol that carries outgoing call signals: UDP, TCP or TLS.       |

### Steps

1. Open **Telephony & Others** under Channels in the AI Agent sidebar.

![Click Telephony & Others under Channels](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/xh1HYIMz4l932qyut0Zj/images/telephony-step-1.png)

2. Click **Connect another channel**. On Choose channel, click **Telephony**. SMS and MS Teams are also shown, but they are not ready yet.

![Choose Telephony on the Choose channel step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/GCbykxh69srj8Fpp6J4U/images/telephony-step-2.png)

3. On Choose provider, click **Plivo** or **Twilio**. This example uses Twilio.

![Choose Plivo or Twilio](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/jvY0tTOaljMTiEed0Ni3/images/telephony-step-3.png)

4. On the Instructions step, choose one of three ways to connect. Only one is open at a time. Follow the option you need.

#### Option 1: Let BotPenguin set it up

BotPenguin creates and sets up the SIP trunk for you.

1. Open **Let BotPenguin set it up**. Fill in all the fields: the Account SID (Auth ID for Plivo), the Auth token, a Trunk name, the Phone number with its country code, the Outbound transport, and a Username and Password for the new trunk.
2. Click **Install**. Setup can take up to 30 seconds.

![Fill in your provider details and click Install](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/iUHVZoOyg6duoRkQ3zXl/images/telephony-step-4.png)

#### Option 2: Set it up yourself

Use this if you already created a SIP trunk in your provider account.

1. Open **Set it up yourself**. Fill in the Phone number, the Termination URI, the Username, the Password and the Outbound transport.
2. Click **Connect account**.

![Enter your trunk details and click Connect account](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/noMh00wLF4fLGArEZfx9/images/telephony-step-5.png)

#### Option 3: Use an existing number

Use this if a number is already connected under the same provider.

1. Open **Use an existing number**. Pick the number from the Phone number list.
2. Click **Connect**.

![Pick an existing number and click Connect](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/F8aX4HYiQ3Xnf4VlKF8H/images/telephony-step-6.png)

#### When it works

A confirmation shows "\[Provider] telephony connected" and the number you linked. Click **Finish**.

![The confirmation after your number is connected](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/E3Jt8kmApnNmUNI88xzm/images/telephony-step-7.png)

### Manage your phone channel

Back on Telephony & Others, the Connected channels list shows each number with its provider and an Active status. Click **View setup** to open the instructions for that channel again. Click **Disconnect** to remove it. Click **Connect another channel** to add another number. Use **Start call** to test your agent.

![View setup and Disconnect on a connected phone channel](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/ki9acabmm6SmkHumX4FT/images/telephony-step-8.png)

### Common errors

<details>

<summary>Install takes more than 30 seconds or fails</summary>

Check your internet connection and your provider details. Fix any mistake and click Install again.

</details>

<details>

<summary>The number does not connect</summary>

Check that the SID or Auth ID, the Auth token and the Trunk name match your provider account. Check that the number includes its country code.

</details>

<details>

<summary>Calls do not reach my agent</summary>

Check that you see the confirmation, that the channel shows Active and that the agent is switched on. Make sure a voice provider and a transcription provider are set in Advanced AI.

</details>

<details>

<summary>Where do I find my Account SID and Auth token?</summary>

Open your Plivo or Twilio dashboard. Your account details are on the main page. Keep the token private.

</details>

<details>

<summary>Use an existing number shows no numbers</summary>

It lists only numbers already connected under the same provider. Connect a number with Option 1 or Option 2 first.

</details>

<details>

<summary>Can I connect more than one number?</summary>

Yes. Click Connect another channel and repeat the steps. Each number shows as its own row.

</details>

### Support

Still not working? Write to us at <support@botpenguin.com>. We will reach out to you within 24 hours.
