https://discord.gg/botpress logo
Raw input
# 🤝help
s
How can I make it always go back to the raw input, and when I say 'no,' it terminates? I can't get it to work—after the two raw inputs, it just closes immediately instead of continuing to loop back to the raw input. https://cdn.discordapp.com/attachments/1383453280520114248/1383453280679628880/IMG-20250614-WA0019.jpg?ex=685c07c5&is=685ab645&hm=db9b6d7df6fd48e69701ccf16da285dc7d23df000370c1124b906201d821d6a1&
p
What is your condition in the expression card?
s
Whenever the person says 'no,' I want it to direct to completion, but if the person asks another question, I want it to respond and then ask again what’s in the raw input https://cdn.discordapp.com/attachments/1383453280520114248/1384226413426638848/IMG-20250616-WA0005.jpg?ex=6851a8ce&is=6850574e&hm=3d5aeacb6b12f1aabae570e9397faab6cfc1a111451e30848d6f8d6b57be1ce1&
p
Well at the moment your expression is always true so that transition is always taken.
You would have to write {{event.preview === 'no'}}
s
You saved me, thank you very much
p
No worries! Happy to help :))
2 Views