Using Twilio’s WebSocket Transport for your Pipecat Cloud agents
CallSid
).
When Pipecat Cloud receives an incoming WebSocket connection from Twilio, it processes the Connected
and Start
messages to initialize a new bot instance. All WebSocket messages are forwarded to your bot, including any custom parameters set in your TwiML. This allows your bot to leverage Twilio’s REST API for advanced call control - such as recording conversations, transferring to human agents, or implementing complex call flows.
pipecatcloud
CLI. This information is required when creating the TwiML configuration.
AGENT_NAME
with your deployed bot’s name (e.g., my-first-agent
)ORGANIZATION_NAME
with your organization name from step 2 (e.g., three-random-words-randomnumber
)customer-support.industrious-purple-cat-12345
$TWILIO_ACCOUNT_SID
and $TWILIO_AUTH_TOKEN
are your Twilio credentials (found in your Twilio Console)$TWIML_BIN_URL
is the URL of your TwiML Bin (found in the TwiML Bin details)CallSid
that’s automatically provided to your bot. This enables capabilities such as: