-
Notifications
You must be signed in to change notification settings - Fork 0
Demo Part 3 Step 3 Routing Queue AI Recording Tools
Andrey Egorov edited this page May 18, 2026
·
2 revisions
Import: part-3-step-3-routing-queue-ai-recording-tools.json
Keep the combined recording scenario and upgrade the AI branch into a managed tool-enabled voice agent:
- switch AI startup back to
Deferred - attach the voice agent explicitly
- add memory
- add PIN, goodbye, and knowledge-base tools
| Reused node | Change | Why |
|---|---|---|
dial_ai |
returns from Immediate to Deferred
|
the voice-agent contract must be attached before the session starts |
added Attach voice agent
|
the AI leg now gets an explicit agent contract | tools and memory need an attachment stage |
| added tool and response nodes | the AI branch can now validate PINs, answer KB questions, and end the call cleanly | the AI layer becomes operational rather than conversational only |
-
Attach voice agentis the orchestration point for memory and tools. It turns the raw AI transport into a managed session. -
dial_aimust return toDeferredhere, otherwise the AI session could start before the workflow has attached tools and memory. - the tool nodes are attached to one AI agent contract, so the model can choose among validation, goodbye, and KB paths inside one session.
-
play_goodbyeandhangup_customermake the goodbye path terminal on purpose, which avoids resuming the conversation after the workflow has committed to ending the call.
- Import and activate the workflow.
- Trigger the queue offline branch into AI.
- Ask a KB-style question, provide a PIN, and test the goodbye path.
| Tool path | Result |
|---|---|
| PIN |
tool_pin runs, is_pin_correct evaluates, and the workflow responds through the AI tool response path |
| KB | the agent can use kb_index and kb_section
|
| goodbye | the workflow confirms, plays goodbye, and hangs up the customer leg |
Part 3 / Step 4 keeps this full AI/tool layer and adds callback-enabled queue behavior.