The AI handles the conversation but can escalate to a human agent when it detects it cannot help, with full context handoff.
This use case demonstrates:
connect() and close()State flow: PENDING -> ANSWERED -> CONNECTED -> DISCONNECTED
call.call_idconnect(), then the agent leaves with close()disconnect()answer() - Answer the incoming callaudio_stream() - Receive caller audiosend_audio() - Play AI responsesconnect() - Connect to the original calleeclose() - Leave the call after connecting the caller to the calleedisconnect() - End the call when the AI fully handled it