Workflow problem with the Gather step.
# support
n
Hello everyone, I’m exploring the new workflow mode (beta) in Vapi, but I’m encountering an issue. I’m trying to collect two pieces of information in a single prompt (with the "Gather" step), but my agent never responds correctly. Specifically, at a certain stage in the conversation (I’ve marked it with a red circle), I ask the customer: 1. If they have any further questions (capture yes or no) 2. to capture the specific question at the same time However, it seems that my agent fails to capture both pieces of information simultaneously and often ends the conversation prematurely instead. This is frustrating because, in a normal conversation, when someone says "yes," they naturally follow up with their question immediately. Has anyone else faced this issue? Any suggestions on how to fix it? Thanks in advance! https://cdn.discordapp.com/attachments/1349772984042393641/1349772984591712256/e3e808b3dd8b4552a7faf9fb03a614a5c27236b7041e46c08e7fe08c2904e8a4.png?ex=67d4518d&is=67d3000d&hm=42c1ca8f27b4d8190ff16f761abe96ab43bcb5b1f8db25d175df3ca3106ffc24&
v
Hi Naz! 👋 I understand your frustration with the Gather step not capturing both the yes/no response and the follow-up question simultaneously. This is a known challenge with the Gather step in workflow mode (beta). Based on what I found in our documentation, here are some suggestions to fix this issue: 1. Adjust your variable configuration in the Gather step to explicitly define both pieces of information:
Copy code
json
{
"variables": [
  {
    "name": "IsAffirmative",
    "description": "Capture if the user agrees (yes) or disagrees (no).",
    "dataType": "boolean",
    "required": true
  },
  {
    "name": "SpecificQuestion",
    "description": "The specific question asked by the user.",
    "dataType": "string",
    "required": true
  }
]
}
2. Increase wait times to ensure short responses like "yes" or "no" are properly detected. Consider setting the
waitSeconds
to 0.8 or 1.0 [in your configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333067714729607228). 3. Improve your prompt design to clearly ask for both pieces of information:
Copy code
"Est-ce qu'il y a des questions particulières sur la propriété que vous aimeriez aborder pour votre prochain appel avec Nassim? Si oui, quelle est votre question?"
4. Enable smart endpointing to help the system better understand when a user has finished speaking, particularly important when capturing multiple responses [in sequence](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334227091168310275). Some users have reported that conversations can end unexpectedly after tool calls, which might be related to your issue. The effectiveness of capturing short responses like "yes" or "no" can also depend on the voice recognition model you're using. Let me know if these suggestions help or if you need further assistance! Sources:
n
@Vapi
k
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!