I am building a telegram chat bot that is supposed to gather a bunch of infomation from the client, so there should be several iterations of questions and answers.
My issue is that the Agent keeps seeing every incoming message as new message and restarts the flow with question 1. instead of analysing and going to question 2. I’d love to give the prompt, but unfortunately I am under NDA.
Any recommendations on how to fix that?
Why don’t you do one thing, add the questions in a code node, and then iterate through those questions by using loop node? Like for that you wouldn’t even need to use ai agent node
The Client is realy into AI
I actually love your solution. Thanks!
Will try and get back here with a feedback!
Yes and the issue is it is rewritten with every new message as it stores the message ID from the first message. So every 2 messages is lost ![]()
You are welcome, glad you found it helpful.