Intent bugs
# 🤝help
c
For a client we set up a super basic applicant q&a bot and used a intent for "ending conversation", which works pretty problem free. Now we expanded the knowledge base and a question completely unrelated triggers this intent and shuts down the conversation. We don´t know how to fix it as we couldnt find any best practices to the creation of intents on either the documentation or yt-Q&As. Also the entire project is in german
w
Hey @curved-afternoon-53711 , i don't know what's going on, but maybe you can share a screenshot of yourworkflow and intent..
w
okay, that's indeed the best way to create an intent...
f
Hey there, I don't believe this issue is because you expanded your KB, since they are not connected. You can read more about intents here https://botpress.com/docs/cloud/studio/library/ and see a video about them here

https://www.youtube.com/watch?v=t5jALY0RlDA

and

https://www.youtube.com/watch?v=wyHUrtiESVQ

Could you give us an example of the message triggering the intent. In German is fine 🙂
c
Sadly i read this part of the documentation already and also saw the videos. "Kann die Ausbildung finanziell unterstützt werden?" "Welche Einsatzbereiche gibt es im FSJ?" "Habe ich die Möglichkeit, während des FSJ verschiedene Bereiche kennenzulernen?" "Bekomme ich während des FSJ ein Taschengeld?" These are the questions that trigger "UB" instead of getting answered
The List for the intent is quite long. I thought maybe some of the formats are similar but i have no idea how to test the intent systemized so i can spot some difference (while not breaking the now good working intent for all other case we have encountered so far)
f
That is very weird. Can you try and shorten down the intent library. So its around 20 sentences or less. Then try again
c
Ok i will do that and post my results
I cut it down from 172 phrases in the intent to 60 and it started working perfectly again
Well the intent itself is not working anymore. I feel like in German the intent mechanics doesnt recognize small/capital letter variations and commas.
f
Just an idea. What if you made the library in English, just as a test
c
In english it doesnt seem to work at all
f
Maybe a @User knows a fix
c
Yes would be great, due to the deadline we would probably need to migrate systems if this doesnt work out in the next days
c
I personally rarely ever use the intents, alternatively you can learn how to use the AI node as it can help you analyze the previous message (or a message stored inside a variable). e.g. AI-Node: - task input: {{workflow.question}} (user question) - task output: {{workflow.intention}} (intention, a placeholder variable which can hold your desired categories) An AI prompt could look like this:
categorize the following input from {{workflow.question}} in one of the following intentions: 1. Wants to ask a question 2. Wants to buy a product 3. Wants to do this . Populate {{workflow.intention}} with your answer
Now this is just one method, you can also experiment with the ai-transition node. Hope this helps a bit 💪
w
Quick question, you prefer to use AI task instead of AI transition ?
f
I do
c
yes, as AI task has more options + allows you to add training examples inside the prompt (accuracy goes up)
w
Okay thanks !
c
Ok Thank you very much, this turned our to work very well
Do you have any further tips when it comes to best practices? Maybe integrating the transcript into the ai task or something along these lines
2 Views