If statement?
# 🤝help
f
how can I make it so that if it detects that the user said a specific word, it leads the user to another node. For example I'm making a bot for my school and I want to make it so that if the user says the word period, the bot will make a single choice asking if it wants the schedule for the normal or late arrival schedule.
p
If you haven't already, you might want to try an "Intent". Here's a short YouTube video about it:

https://youtu.be/ha1VwKMYtLk

And the documentation: https://botpress.com/docs/cloud/studio/library/#intents
I guess you'd probably capture the intent that the user is talking about the "period" by making it one of the "utterances". Then you'd connect that intent to another node that would then ask a question to capture user input for "normal" or "late arrival" schedule
f
you can also just use a expression card and put the label as something like "if the input has the word if in it" and then connect to another node. I personally like this more then intent cards.
752 Views