Voiceflow PartnersVPVoiceflow Partners
Powered by
AdventuremanA
Voiceflow Partners•7mo ago•
3 replies
Adventureman

How to exit agent step after continued caller silence.

Hello folks. What's the best way to reliably exit an AGENT step to terminate a call when the user is silent / none-responsive?

Steps I've Taken so far

- STEP A. The agent's system prompt has a detailed Silence Detection Protocol defined near the top. The system prompt is also peppered with reminders that the agent should refer to the protocol if the user is silent. If have created the system variable silenceCounter.

---------------

SILENCE DETECTION PROTOCOL:

- FIRST SILENCE (8+ seconds): Say "Are you still there?" and wait 5 seconds. Increment {{silenceCounter}} by 1.
- SECOND SILENCE (5+ seconds after first prompt): Say "Hello? Are you still there?" Wait 3 seconds. Increment {{silenceCounter}} by 1.
- THIRD SILENCE (3+ seconds after second prompt): Immediately say "We'll leave things there. Bye!" - Increment the {{silenceCounter}} by 1 then IMMEDIATELY go to END block

- Do NOT attempt further conversation
- Do NOT ask additional questions
- ALWAYS go to END block after third silence

SILENCE COUNTER RESET:
- Reset the
{{silenceCounter}}
{{silenceCounter}}
if the user provides a meaningful verbal response
---------------

- STEP B Exit Condition added called "Terminate Call". LLM Description =
"End the call when 1 of the following 2 conditions are met.
1. The user is repeatedly silent as per the Silence Detection Protocol
2. The user acknowledges they are ready to end the call by saying something similar to one of the following: 'Goodbye', 'Bye', 'That's it thanks' .... [list of synonyms user would say to end call]"

- STEP C Terminate Call Exit Condition is connected to an END step

Problem I'm Facing
Despite the above, the agent does not move to the END step. It loops through asking the user if they are still there. I'm aware there's a global 3 minute timeout, but I prefer not to wait 3 mins (client is incurring phone costs unnecessarily).

Any suggestions would be much appreciated.

Cheers!
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

Agent Step - How to use cards
faint-whiteFfaint-white / ❓┃ask-a-question
9mo ago
agent step buttons
hudayfaHhudayfa / ❓┃ask-a-question
6mo ago
Get caller ID in voiceflow agent
ScaBasXSScaBasX / ❓┃ask-a-question
5mo ago
Double agent step output
dk future millionaireDdk future millionaire / ❓┃ask-a-question
5mo ago