Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.03 KB

Readme.md

File metadata and controls

27 lines (20 loc) · 1.03 KB

A proof of concept of a Messenger Chatbot teaching new languages to users. The user is specified to choose a language and a scenario he will have to walk through. The chatbot can learn the user's behavior with AI.

Local development

  • Download ngrok: https://ngrok.com/ or brew

  • Set up environment variables:

  • Run npm start / npm run dev and on an other terminal: ngrok http 1337 (port)

  • Now paste this link to the Messenger Development platform

To add a "Get Started" button

curl -X POST -H "Content-Type: application/json" -d '{
  "setting_type": "call_to_actions",
  "thread_state": "new_thread",
  "call_to_actions": [
    {
      "payload": "Start"
    }
  ]
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=<PAGE ACCESS TOKEN>"