Connect phone calls to your Pipecat bot using Twilio and Daily’s SIP integration
pip install twilio
)/call
endpoint)on_dialin_ready
event, the bot forwards the call to the Daily SIP endpointTWILIO_ACCOUNT_SID
and TWILIO_AUTH_TOKEN
, which you can obtain from the Twilio console.
utils/daily-helpers.py
demonstrates how to set up the Daily room using the Daily REST helpers available in Pipecat. We just need to pass through new SIP parameters as part of room creation:
on_dialin_ready
event to forward the call at the right time:
https://your-server.com/call
(your server’s URL)<Pause>
instead of hold music<Pause>
element to wait for the bot to initialize:
on_dialin_ready
events