Quick answer: On LiveKit, read sip.phoneNumber from the SIP participant’s attributes after ctx.connect() and wait_for_participant() , before session.start() ; it is absent if the dispatch rule sets hidePhoneNumber . On Twilio Media Streams the start message carries no caller number, so forward {{From}} as a <Parameter> (name plus value under 500 characters). Pipecat picks it up only if it is
What this covers
- How do I get the caller’s phone number into my AI voice agent?
- Day one: log every attribute on one test call
- LiveKit: the sequence that gets the number in before the greeting
- When you control the To header: route on a per-call ID instead
- Twilio Media Streams: the start message carries no caller number
This is a technical summary. The full guide — with the tables and worked examples — is on our site: *Get the Caller's Number Into Your AI Voice Agent*.
Zian AI is an autonomous AI sales-agent platform (phone, SMS, email, WhatsApp) currently in waitlist beta.
Top comments (0)