I am having a problem with moving on to the KB if ...
# 🤝help
p
- There is a single choice card with a KB turned on - There is a condition to check if the Kb is not undefined ({turn.KnowledgeAgent.answer}} != Undefined) - if its true it shows the kb's output, then redirects it to ask another question OR it continues to the main menu (yes or no) https://cdn.discordapp.com/attachments/1229009350174183435/1229009350928896090/Screenshot_2024-04-14_at_11.58.48_AM.png?ex=662e1f27&is=661baa27&hm=fa29f7baa758cc59c5e75881d4c26afe01e25ac9d1ada632772d84e4ae2e775c& https://cdn.discordapp.com/attachments/1229009350174183435/1229009351168229478/Screenshot_2024-04-14_at_11.58.58_AM.png?ex=662e1f27&is=661baa27&hm=0b41e9559ef574946bbebbd5c434223910e3271a1350a96203417d7df22e139c&
f
Hey there, You could try and use turn.KnowledgeAgent.answer or !turn.KnowledgeAgent.answer The one with the ❗ is used to transition some where, when it couldn't find an answer
p
it did not work
I think the problem is that it understands the question as a "yes"
and so it goes through that path
and doesn't get on
f
I don't think it understand yes a question, but rather as an option
Your 2nd option is yes
It will transition from that, when you say yes
p
the card is a single choice, so when I turned on the KB, it would encapsulate the answer as a yes. which is the problem. (thats why in the picture you can see the transition to the main menu not the KB answer)
f
What did you change the expression to?
p
turn.KnowledgeAgent.answer
f
And it doesn't transition from that?
p
no
f
Can you try and change the Single Choice card to a Raw Input card, with Choices on.
p
perfect, didn't know I could do this
f
Did it give a better result?
p
Yes it worked! Thanks a lot Decay 😄
f
That is amazing to hear!
4 Views