I have created a bot for a university where studen...
# 🌎general
q
I have created a bot for a university where students can go and get all their queries cleared. In this workflow, when a user asks a question, it is going back to the start of the workflow after answering. Can anyone help me resolve this error?"
w
Hey @quick-machine-86652, you have a cool project going on🙂 From a glance, I can see that the issue is with your User_Question node.
You currently have only 'no answer in knowledge base' intent. You also need to add if the answer was found as well, so the conversation can continue.
For easier organisation, I would recommend putting 2 intents under your raw input in the Standar1 node. One with 'turn.KnowledgeAgent.responded' and the second one with '!turn.KnowledgeAgent.responded'. The first one lets the bot know that if the answer is found it can go to the next node. The second one lets the bot know if the answer wasn't found you can go to the Fallback node
Also, as a side note, you created all the 'always' transition intents and didn't connect them. Make sure that you do🙂
q
so my bot responded and answers but when user ask another question bot responds and bot again ask for user name and email id
okay
i want that when user gives all the information bot asked then users can ask as many question as want
w
It's because the bot restarts the whole workflow. You can set-up a question loop until the user has no more questions, only then ending the talk
q
how can i do that , i am new to botpress
can you help me to make a loop ?
w
Yes, it will be easier if I will do it and then you can have a look
Do you know how to export the bot template?
q
yes
w
Can you please share it with me, but don't include any private or sensitive info
q
yeah, sure
w
I will have a look and fix one up for you
q
w
Give me a bit of time👍
q
okay
w
Hey @quick-machine-86652 fixed it for you, I also adjusted the always expression cards and added a few extra message cards for clarity🙂
Give it a go and let me know!
q
it is working perfectly. Thank you
w
No problem, happy bot building and good luck with you project💪
q
hey! Can we remove this "do you want to ask anything card" and make a loop without it?
3 Views