https://discord.gg/botpress logo
#🌎general
Title
# 🌎general
g

gorgeous-alligator-65593

07/06/2023, 6:36 AM
anyone knows why i'm bot acts weird when i publish it and open it in webchat
e

early-train-33247

07/06/2023, 8:27 PM
Hey @gorgeous-alligator-65593 can you elaborate what's happening?
g

gorgeous-alligator-65593

07/07/2023, 8:48 AM
nvm i figured it out and i guess there's some problems with cards and carousels that you guys are working on? But i was having another issue with AI chat, my bot only replies "true"
e

early-train-33247

07/08/2023, 1:33 AM
Hey @gorgeous-alligator-65593, few things for you to do: 1 - Rename your
aiQuestion
variable to
aiAnswer
, as it's more fitting 2 - Change your instructions and remove the "ai" term 3 - Change the end of your instructions and have the bot make the
aiAnswer
variable null, if there is no answer 4 - Change your AI input to
User question: {{event.preview}}
5 - Delete the execute code card that checks if there is an answer - since we will be checking the value directly in the expression below 6 - Change the expression to
aiAnswer
only - the transition will flow to the IfAiAnswers node when the variable has a valid value 7 - Ultimately, change the text card content from
aiAnswered
to
aiAnswer
- that's what was causing the bug
Let me know if that works. Cheers!
g

gorgeous-alligator-65593

07/08/2023, 7:09 AM
Should I delete the aiAnswered variable then? and for (3) I only have to give it instruction like "If there is no answer make "aiAnswer" variable null" right?
e

early-train-33247

07/08/2023, 3:22 PM
Yes, go ahead and delete the aiAnswered since it's not going to be used anymore
And the instruction is correct! Let me know if that works!