-
Notifications
You must be signed in to change notification settings - Fork 0
Demo Part 3 Step 4 Routing Queue AI Recording Tools Callback
Andrey Egorov edited this page May 18, 2026
·
4 revisions
Import: part-3-step-4-routing-queue-ai-recording-tools-callback.json
Add the final queue callback layer on top of the already combined routing, recording, and AI-tool scenario:
- queue announcements can enable callback
- dispatch can still serve a live waiting caller
- or it can call the customer back later
| Added area | Why it matters |
|---|---|
callback_on, play_callback
|
caller can explicitly enable callback on the queue entry |
dial_customer, wait_customer, ringing_customer, break_customer, play_cust_unv
|
dispatch can reconnect the customer if the live caller is no longer present |
| callback-aware dispatch nodes | queue dispatch no longer assumes the customer leg is still live |
-
callback_ononly marks the queue entry as callback-enabled. It does not remove the caller from the live queue by itself. - queue still owns the caller-leg lifecycle. That is why
wait_agentremains dial-scoped and does not needMaster Leg ID. - when dispatch happens, the workflow can first try the still-live caller path and only fall back to
dial_customerif dispatch no longer has a live customer leg to bridge. - callback is added last because it changes queue state and dispatch semantics more than any previous layer.
- Import and activate the workflow.
- Put a caller into the queue.
- Enable callback from the queue announcement.
- Let the queue dispatch path run.
- Test both the still-live-caller case and the callback-customer case.
| Situation | Result |
|---|---|
| caller is still connected | dispatch bridges the live waiting caller |
| callback was enabled and the live caller is gone | dispatch uses dial_customer to reconnect the customer |
| callback customer does not answer | the workflow plays the customer-unavailable prompt and breaks the attempt cleanly |
This example is the assembled walkthrough endpoint. The canonical full workflow remains Full Demo.