https://retellai.com/?utm_source=discord&utm_medium=seo logo
Using Flags Within a Workflow
# ❓・bug-report
f
I'm using a multi-agent workflow for modularity's sake. All agents are Conversational Flow agents. I've been trying to use Conversational Nodes (set to "skip response") to set flags for variables in the Post-Call Analysis. Despite instructions in the node prompt, the AI agent still vocalizes something while in this node.
o
Hello @fakedane , can you show me an example of what you mean?
f
Sure! We have an agent that is just meant to detect whether the call encounters a human, a voicemail opportunity, or something else. We were spinning this up because the agent was talking over voicemail machines (even when voicemail detection was set to on). The node prompt starts by saying, "**Voicemail Detection Prompt** Stay silent. DON'T SAY ANYTHING. 1. If a human answers the call (not an answering machine or a voicemail), then proceed to Node "2b. Transfer to 'Verify ID' Agent" 2. If you detect that the call has gone to voicemail, an automated greeting, or a recorded message: Do not start talking to the voicemail system." Even tinkering with this prompt, the agent always starts by saying. "Stay silent."
I should say too that the prompt will say something like "set post-call analysis variable 'ID_Verified' to TRUE"
o
You do that at post call Analysis description not the prompt.
f
Ok, is there a way to real-time set flags during the call? Or can I only do that post-call?
Like can the value of a post-call analysis variable be set using a custom function, for example?
o
You can do that using custom funcitons