What to build
A recipe demonstrating how to add safety guardrails to a Deepgram voice agent — enforcing topic boundaries, blocking PII in agent responses, validating outputs against business rules, and gracefully redirecting off-topic conversations back to the intended scope.
Why this matters
Developers deploying voice agents in regulated industries (healthcare, finance, legal) need guardrails that prevent agents from discussing unauthorized topics, leaking sensitive information, or providing advice outside their scope. Deepgram's Audio Intelligence features (PII redaction, topic detection, intent classification) combined with the Voice Agent API's function calling provide the building blocks, but no reference implementation shows how to wire them together into a comprehensive guardrails layer. This is a blocking requirement for enterprise voice agent deployments.
Suggested scope
- Language: Python
- Deepgram APIs: Voice Agent API (WebSocket), STT with Audio Intelligence (PII redaction, topic detection, intent classification), TTS (Aura)
- Guardrail types:
- Topic boundary enforcement: Detect off-topic intents and redirect
- PII blocking: Redact PII from both user input transcription and agent responses before TTS
- Response validation: Check agent output against configurable business rules before speaking
- Escalation trigger: Detect anger/frustration sentiment and offer human handoff
- Includes: Configurable guardrails rules (YAML/JSON), logging of blocked/redirected interactions, metrics on guardrail trigger frequency
- Complexity: Advanced
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 recipe demonstrating how to add safety guardrails to a Deepgram voice agent — enforcing topic boundaries, blocking PII in agent responses, validating outputs against business rules, and gracefully redirecting off-topic conversations back to the intended scope.
Why this matters
Developers deploying voice agents in regulated industries (healthcare, finance, legal) need guardrails that prevent agents from discussing unauthorized topics, leaking sensitive information, or providing advice outside their scope. Deepgram's Audio Intelligence features (PII redaction, topic detection, intent classification) combined with the Voice Agent API's function calling provide the building blocks, but no reference implementation shows how to wire them together into a comprehensive guardrails layer. This is a blocking requirement for enterprise voice agent deployments.
Suggested scope
Acceptance criteria
Raised by the DX intelligence system.
Queued by PM — Engineer will pick this up as a priority:user recipe.