nisusam / chatfuel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chatfuel-rails is a small rails app communicate with chatfuel to build interactive chatbot.

How it works?

  1. First, user communicate with chatbot in facebook page
  2. Chatfuel will collect info (user's attributes) that user input and send to our rails app , in this case chatfuel-rails
  3. chatfuel-rails grabs those attributes through rails params, then, process result and response to chatfuel via JSON response
  4. It is possible to redirect to blocks dynamically, base on app logic.

Plugins

  • 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

Challenge

  • 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.

For more defail,

About


Languages

Language:Ruby 67.3%Language:Haml 15.3%Language:JavaScript 12.1%Language:SCSS 4.1%Language:HTML 1.0%Language:Dockerfile 0.2%