chatfuel-rails is a small rails app communicate with chatfuel to build interactive chatbot.
- First, user communicate with chatbot in facebook page
- Chatfuel will collect info (user's attributes) that user input and send to our rails app , in this case chatfuel-rails
- chatfuel-rails grabs those attributes through rails params, then, process result and response to chatfuel via JSON response
- It is possible to redirect to blocks dynamically, base on app logic.
- set user attribute : use to capture value that user answer in messager.
- json api : use to send request, unidirect flow from chatfuel to rails app
- redirect to blocks : redirect user to specific block in design flow
-
re-engagement
- story: send remind static message to user if he/she does not complete questionair form.
- subscribe user to a sequence, then unsubscribe once finish.
-
advance re-engagement
- story: as a chat admin, The bot should follow up the user only question that he/she does not answer yet or not yet complete the current form.
- solution: keep track for each question, redirect user to last block, which is where his/her question that not yet complete.