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

# Twilio WhatsApp

Integrate your agent with WhatsApp Business using Twilio's API.

### Prerequisites

* A Twilio account with WhatsApp API access
* A Twilio Account SID
* A Twilio Authentication Token

### Create a Twilio WhatsApp channel

Use one of the following methods to define the channel:

**Using CLI:**

```bash BASH theme={null}
orchestrate channels create \
  --agent-name my_agent \
  --env live \
  --type twilio_whatsapp \
  --name "WhatsApp Support" \
  --field account_sid=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
  --field twilio_authentication_token=your_auth_token_here
```

**Using YAML:**

```yaml YAML theme={null}
name: "WhatsApp Support"
description: "Customer support via WhatsApp"
channel: "twilio_whatsapp"
spec_version: "v1"
kind: "channel"
account_sid: "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
twilio_authentication_token: "your_auth_token_here"
```

**Using Python:**

```python Python theme={null}
from ibm_watsonx_orchestrate.agent_builder.channels import TwilioWhatsappChannel

whatsapp = TwilioWhatsappChannel(
    name="WhatsApp Support",
    description="Customer support via WhatsApp",
    account_sid="ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    twilio_authentication_token="your_auth_token_here"
)
```

### Configuration requirements

| Field                         | Required | Format | Description                      |
| ----------------------------- | -------- | ------ | -------------------------------- |
| `account_sid`                 | Yes      | String | Your Twilio Account SID          |
| `twilio_authentication_token` | Yes      | String | Your Twilio Authentication Token |
