Skip to main content

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.

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
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
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
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

FieldRequiredFormatDescription
account_sidYesStringYour Twilio Account SID
twilio_authentication_tokenYesStringYour Twilio Authentication Token