Conversation loop problem
# 🤝help
m
After 2 questions answered, anything that the user types it outputs the last answer no matter the question
c
hey this is because you are looping back onto your input
m
how can I make it answer each new input infinitely
and keep the conversation
c
well you can set-up a condition that breaks the loop
it depends on what you want to do ?
just an example of my own bot here
m
I don't know how, I just want it to answer all question
c
I see, why not ask the user if they want to ask another question ?
m
which one breaks the loop?
how can I loop that
c
in my case I check "if find answer" with this command
{{turn.KnowledgeAgent.answer}}
. This will check if the knowledge base provided an answer. If so , I will loop it to another node and then I loop it back, but only after asking if the user wants another quesiton
you can set all kinds of conditions, this is just a basic one
I g2 run but I encourage you to watch one of Roberts youtube tutorials about querying knowledge base
m
ok
thanks
c

https://www.youtube.com/watch?v=vAaCudOUwuc&t=2104s

helpful video
c
Thanks @cold-jewelry-54343 😉
m
thx so much it's solved I just put event.preview
I had it go through transcript not last question
25 Views