lisawilliams / trollbustersbot-test

A Botpress-based Facebook bot to assist people who are experiencing online harassment
http://troll-busters.com
Other
0 stars 0 forks source link

Add conditional response to initial yes/no question #7

Open lisawilliams opened 7 years ago

lisawilliams commented 7 years ago

Right now, the bot starts and asks:

Are you being harassed online?

and presents two buttons, "Yes," and "No."

The response to that is:

textWithQuickReplies_reply:
  - You pressed button '{{button}}'

I want to be able to begin the branching process by taking a user down one branch if they press "Yes," and another if they press "No."

lisawilliams commented 7 years ago

This seems like it might be a good reading to get the if/then conditional down:

https://github.com/botpress/botpress-examples/tree/master/motivation-bot

lisawilliams commented 7 years ago

I'm a little wary of this, but it might be time to dive in:

https://www.rivescript.com/docs/tutorial