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.

Enable SMS messaging for your agent using Twilio.

Prerequisites

  • A Twilio account
  • A Twilio Account SID
  • A Twilio Authentication Token
  • A Twilio phone number

Create a Twilio SMS channel

Using CLI:
BASH
orchestrate channels create \
  --agent-name my_agent \
  --env live \
  --type twilio_sms \
  --name "SMS Support" \
  --field account_sid=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
  --field twilio_authentication_token=your_auth_token_here \
  --field phone_number=+1234567890
Using YAML:
YAML
name: "SMS Support"
description: "Customer support via SMS"
channel: "twilio_sms"
spec_version: "v1"
kind: "channel"
account_sid: "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
twilio_authentication_token: "your_auth_token_here"
phone_number: "+1234567890"
Using Python:
Python
from ibm_watsonx_orchestrate.agent_builder.channels import TwilioSMSChannel

sms = TwilioSMSChannel(
    name="SMS Support",
    description="Customer support via SMS",
    account_sid="ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    twilio_authentication_token="your_auth_token_here",
    phone_number="+1234567890"
)

Configuration requirements

FieldRequiredFormatDescription
account_sidYesStringYour Twilio Account SID
twilio_authentication_tokenYesStringYour Twilio Authentication Token
phone_numberNoStringTwilio phone number for SMS