What You Can Do
- Inbound routing — your Studio or TwiML flow answers the call, then transfers it to Simple AI.
- Outbound campaigns — your dialer or campaign logic hands connected calls to Simple AI.
- Direct outbound — Simple AI places calls through your Twilio SIP trunk with your existing caller ID.
- Live agent escalation — Simple AI transfers back into Flex so TaskRouter can queue the call to a worker.
- Context on transfer — over SIP, metadata rides along in
X-prefixed SIP headers; from a TwiML flow, context is passed as task attributes.
How It Connects
- Twilio receives the call and runs your Studio or TwiML flow.
- The flow transfers the call to Simple AI — via the SIP trunk or a dial to the AI destination.
- Simple AI runs the conversation and transfers back when escalation is needed.
- TaskRouter creates a task for the returned call and routes it to a worker with the transferred context.
Setup
- Choose SIP trunking or a TwiML transfer, and share the details with your account team.
- For SIP, create a Twilio Elastic SIP Trunk pointing at Simple AI’s SIP endpoint, and allowlist our signaling and media IPs.
- Add the handoff to the flows that should use the AI, and a return destination for escalation.
- Test inbound, outbound, and escalation, verifying caller ID, audio, DTMF, and agent-side context.