Bot can't catch the intent
# 🤝help
f
I saw that the conversation just ends, when the bot couldn't catch the intent of the user. Is there a way I can set the bot in a that, if it can't catch the user's intent, it will ask or say, "sorry, I couldn't understand your answer. Please say it properly."
s
yes, just add a this expression to your node :"!turn.KnowledgeAgent.responded" when you add this expression it means that the bot couldnt find an answer to the user's question and you can connect a new line from that expression to a a previous node so it loops when the bot couldnt find an answer
if its not understood that much, say and i will screenshot an example for you
f
Thats a response from the knowledge agent. Not the intent
I use this

https://cdn.discordapp.com/attachments/1143833702753902631/1143906904238739518/image.png

But when there is no intent. Why not try to get a response from the knowledge base if you have one?
f
Do you mean, if the intent isn't recognized by the bot, it will answer the user's question from the KB? (If the user asks a question, instead of following the intent and it's text)
f
Yup
But yeah to answer your question just have a expression with event.nlu.intents.length === 0
Then go to another node with a text card
f
ok, thanks man:) i appreciate the help
f
Ofc. If theres more problems with it let me know.
f
Okay
im facing a problem with the intent again 🙂 I did what you said. but the expression only works when i write unrecognizable random things. when i write something related to my 4 intents (which is related but not recognizable by bot as an intent) it just ends the coversation, instead of going to the other card. can you tell, what might be causing this problem:(

https://cdn.discordapp.com/attachments/1143833702753902631/1143987053856575580/random.png

https://cdn.discordapp.com/attachments/1143833702753902631/1143987054204690584/random_shit_not.png

f
Could you share the workflow?
Also the event debugger
From the last message
f
here

https://cdn.discordapp.com/attachments/1143833702753902631/1144222704514388058/most_water.PNG

https://cdn.discordapp.com/attachments/1143833702753902631/1144222704787013693/contact_him.PNG

https://cdn.discordapp.com/attachments/1143833702753902631/1144222705021878282/workflow.PNG

Hey, I used an expression node with "true" And that seems to work well. Do you think there will be any problem later on, if I keep using the expression card?
f
Usually it's fine and if it works it works. Where did you add the expression node?
Also just a QoL tip. Name your nodes. Makes it much easier to remember what they do in the future.
f
I kept the expression card at the last stage.
Yeah
6 Views