David
David4w ago

How to stop an Agent from asking freestyle questions?

I'm building my first agent and hit a snag. It is a chatbot that will ask a series of questions and then send the responses to an email address at the end of the conversation. Each question is in its own agent block. My issue is that the chatbot will ask questions that are not part of the series of questions I'm wanting it to ask. For example... the agent block has the instructions of (paraphrasing) "ask for the customer's zip code". Instead, it will first ask "Do you already have homeowner's insurance?" but that question is nowhere in the flow. How can I get the agent to stick strictly to the flow? I've tried putting specific instructions in every agent block to stick to the script, but that's not working. Any help or feedback is appreciated.
1 Reply
Podziemski
Podziemski3w ago
It sounds like your agent is pulling context or memory from other nodes, which is why it’s asking questions outside your flow. To keep it on script, make sure each block has explicit instructions to only ask the intended question and limit any inherited context. Testing the flow block by block can help ensure the agent sticks strictly to your scripted sequence. I’ve helped clients with similar issues and can guide you in setting it up so it follows the questions exactly. @David

Did you find this page helpful?