Ask whether the caller is still there
Keep the dict-based configuration from the earlier lessons and add:Bound a quiet call
Expand the policy to use two prompts and an eventual hangup:hangup_after_secs to keep waiting after the prompts. instructions can generate a check-in instead of using fixed text; this adds model generation and speech usage. Empty optional blocks mean unset and preserve server inheritance.
A slow agent turn
The voice turn timeout defaults to 60 seconds. To change it and its spoken fallback:Agent.timeout separately bounds the runnable’s execution. Neither a timeout nor hangup rolls back completed side effects.
Once the conversation behaves as intended, continue to Recording calls, Transports and phone calls, and Events and usage.