https://discord.gg/botpress logo
Having problems whit Expression.
# 🤝help
g
Hi everyone, Im new to botpress,Im trying to direct the user to a select node. It’s based on answering questions, if the user asks a question and the bot looks through a selected KB. If the bot can”t answer the question (from KB)I want the user to be sent to a specific node, and if the bot can answer the question to be sent to separate node. No matter what I try, the user will always be sent to “right_answer”. Even when i know the KB doesn’t have the answer. I can't work out where i'm going wrong . https://cdn.discordapp.com/attachments/1262861748218626128/1262861748407636050/Screenshot_2024-07-16_at_20.45.08_2.png?ex=66982327&is=6696d1a7&hm=97eea336ec59ba95ecc358c7b487df7efa68a7ee037c211932cfb0c99c706928& https://cdn.discordapp.com/attachments/1262861748218626128/1262861748742914079/Screenshot_2024-07-16_at_20.54.03.png?ex=66982327&is=6696d1a7&hm=3e0802068b2e79c7466a0497c6ca1aa9d985fe27f3199f517cf73a9025c95120& https://cdn.discordapp.com/attachments/1262861748218626128/1262861749393293425/Screenshot_2024-07-16_at_20.53.36.png?ex=66982327&is=6696d1a7&hm=4944ac7d22179bbdcb3e0a2e13dad112fc48be26404296349d0da229ddb05bfb&
!turn.KnowledgeAgent.responded is an expression for when the chatbot doesn't know the answer
always - for when it has an answer
b
yeah no you have to disable the sparkles aka AI in order to type it in lmk if it works!
also no it has to be all black, its turn not true
b
Did you try the flow already?
Just copy what I sent and see if it works
So far it worked great for me
You have a raw capture card w/ KB connected, then 2 expressions to filter out the next step
g
when you say flow, is that engaging with the chat bot to checck for issue ?
b
I mean the residual workflow, where the chatbot either apologises or says glad i could help
g
theres nothing i could of altered unknowingly that can cause this issue?
b
which issue? i just gave you a workflow that typically works in your case
g
i don’t now what has happened, but it wasn’t working and now it is, amazing. Thank you so much for your help, i've spent days on this haha.
b
Don't worry, it happens to the best of us:)