Knowledge base routing
# 🤝help
r
hello i need help in my AI logic. I want to make an answering bot from knowledge based. so the logic is if AI can find the answer it'll be routed in "helpfulnes" node but if AI can't find the answer in knowledge base it'll be routed in "no_answer" node. in emulation if AI can answer it'll be routed in "helpfulnes" and it's correct but if AI can't answer it it'll just not answer and routed in "helpfulnes" node. Excuse my English. https://cdn.discordapp.com/attachments/1229333721887412265/1229333722395054090/Screenshot_2024-04-15_at_14.32.15.png?ex=662f4d3f&is=661cd83f&hm=7b2e18364261a05452fa7580283f33d96249fca730cd814a77ec9eeba606c85b& https://cdn.discordapp.com/attachments/1229333721887412265/1229333722684325928/Screenshot_2024-04-15_at_14.32.50.png?ex=662f4d3f&is=661cd83f&hm=5a4ef8bfbd89314d21f9c2a024015a7764aad8a6ea18b2591a8d3fa2e46b07f5&
If yes, then turn.KnowledgeAgent.responded will not work - at least it doesn't work for me.
You can check if he did not respond like this: (!turn.KnowledgeAgent.answer) || (turn.KnowledgeAgent.answer && turn.KnowledgeAgent.answer.length <= 0)
after that just use "always" to go to the "responded" flow