# Plivo Integration

> Connect Plivo to place and answer calls with your voice agents

URL: https://docs.lemuai.com/integrations/telephony/plivo

## Overview

Plivo connects your voice agents to the phone network. Lemu AI streams call audio through Plivo, so several calls can run in parallel. You can add more than one caller ID, and outbound calls are spread across them.

## Prerequisites

- A [Plivo account](https://www.plivo.com/)
- Your **Auth ID** and **Auth Token** from the Plivo console
- At least one Plivo phone number to use as a caller ID

## Configuration

### Step 1: Get your Plivo credentials

1. Sign in to the [Plivo console](https://console.plivo.com/)
2. Copy the **Auth ID** and **Auth Token** shown on the overview page
3. Under **Phone Numbers**, note the numbers you want calls to come from

### Step 2: Configure in Lemu AI

1. Go to **Agent Setup → Telephony** in the sidebar
2. Select **Plivo** as your provider
3. Enter your credentials:
   - **Auth ID** (starts with `MA`)
   - **Auth Token**
   - **Outbound caller IDs**: one or more of your Plivo numbers, in international format such as `+918035088454`
4. Click **Save Plivo configuration**

**Note:** After saving, the Auth Token is shown masked. Leave it masked when you edit other fields and the saved token is kept.

### Step 3: Test your configuration

Open any voice agent and start a phone test call to your own number. See [Testing your agent](https://docs.lemuai.com/voice-agent/testing).

## Inbound calling setup

To let an agent answer calls to a Plivo number:

1. Find the agent's workflow ID in the address bar when you open it, for example `https://app.lemuai.com/workflow/42` has the ID `42`
2. In the Plivo console, go to **Voice → Applications** and create an application
3. Set the **Answer URL** to `https://app.lemuai.com/api/v1/telephony/inbound/{workflow_id}` (for example `.../inbound/42`) with method **POST**
4. Save the application, then attach your Plivo number to it under **Phone Numbers**
5. Call the number to test

More detail and troubleshooting is on [Inbound Calling](https://docs.lemuai.com/integrations/telephony/inbound).

## Troubleshooting

  **Outbound calls fail immediately**

  - Check the Auth ID and Auth Token were copied exactly
  - Make sure the caller ID numbers belong to your Plivo account
  - Check your Plivo account balance
  

  **Inbound calls are not answered by the agent**

  - Check the Answer URL contains the right workflow ID and uses POST
  - Make sure the number is attached to the application
  - Make sure Plivo is the active provider on the Telephony page
