Connect your Pipecat bot to a phone number for voice conversations
uv
or pyenv
.
.env
file in your text editor and add your API keys:
TWILIO_ACCOUNT_SID
and TWILIO_AUTH_TOKEN
to enable
automatic call hangup features.uv
? Create and activate with: uv venv && source .venv/bin/activate
, then install with: uv pip install -r requirements.txt
--subdomain
flag: ngrok http --subdomain=your-bot-name 7860
https://abc123.ngrok.io
). You’ll need it for the next step.
https://your-ngrok-url.ngrok.io
your-ngrok-url.ngrok.io
with your actual ngrok domain (without https://
).
uv
? Run with: uv run bot.py --transport twilio --proxy your-ngrok-url.ngrok.io
.env
file