anyone knows why i'm bot acts weird when i publish...
# 🌎general
g
anyone knows why i'm bot acts weird when i publish it and open it in webchat
e
Hey @gorgeous-alligator-65593 can you elaborate what's happening?
g
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
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
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
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!