Join Discord
Powered by
Knowledge base routing
# 🤝help
r
rich-animal-54084
04/15/2024, 7:33 AM
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&
s
square-toddler-30705
04/15/2024, 12:19 PM
Hi, I don't know if you have this enabled?
https://cdn.discordapp.com/attachments/1229333721887412265/1229405656692293705/image.png?ex=662f903d&is=661d1b3d&hm=580812ade4b9af0c8263a76c94e885c345de65b2350517802d126bfaa7be7f7f&
square-toddler-30705
04/15/2024, 12:20 PM
If yes, then turn.KnowledgeAgent.responded will not work - at least it doesn't work for me.
square-toddler-30705
04/15/2024, 12:21 PM
You can check if he did not respond like this: (!turn.KnowledgeAgent.answer) || (turn.KnowledgeAgent.answer && turn.KnowledgeAgent.answer.length <= 0)
square-toddler-30705
04/15/2024, 12:23 PM
after that just use "always" to go to the "responded" flow
Previous
Next