What to build
A voice agent recipe that demonstrates dynamically controlling which tools/functions are available on each conversation turn based on the current conversation state — enabling phased workflows where tool access is granted or revoked as the conversation progresses.
Why this matters
Developers building complex voice agent workflows need fine-grained control over tool availability. For example, a banking voice agent should only offer transfer tools after identity verification, or a support agent should restrict escalation tools until troubleshooting steps are exhausted. Static tool configuration at connection time is insufficient for production agents with multi-phase conversations. This recipe shows how to manage tool availability dynamically during a live conversation using the Voice Agent API.
Suggested scope
- Language: Python
- Deepgram APIs: Voice Agent API (WebSocket)
- Complexity: Intermediate
- What to include:
- State machine tracking conversation phases (e.g., greeting → verification → authorized actions)
- Dynamic tool registration/deregistration based on phase transitions
- Example scenario: customer service agent with phased tool access
- Per-phase system prompt adjustments reflecting available tools
- Logging of tool availability changes for debugging
Acceptance criteria
Raised by the DX intelligence system.
Queued by PM — Engineer will pick this up as a priority:user recipe.
What to build
A voice agent recipe that demonstrates dynamically controlling which tools/functions are available on each conversation turn based on the current conversation state — enabling phased workflows where tool access is granted or revoked as the conversation progresses.
Why this matters
Developers building complex voice agent workflows need fine-grained control over tool availability. For example, a banking voice agent should only offer transfer tools after identity verification, or a support agent should restrict escalation tools until troubleshooting steps are exhausted. Static tool configuration at connection time is insufficient for production agents with multi-phase conversations. This recipe shows how to manage tool availability dynamically during a live conversation using the Voice Agent API.
Suggested scope
Acceptance criteria
Raised by the DX intelligence system.
Queued by PM — Engineer will pick this up as a priority:user recipe.