Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building chatbots for messenger

Building chatbots for messenger

FB messenger just launched their chat bots API, learn how you can use this new API to provide a service on messaging platforms like FB Messenger

khangtoh

May 25, 2016
Tweet

More Decks by khangtoh

Other Decks in Programming

Transcript

  1. WHAT ARE CHAT BOTS? •  Computer programs •  Conversation • 

    Artificial Intelligence •  Interact with services and businesses
  2. WHY FB MESSENGER BOTS? •  900M users on FB Messenger

    •  Other platforms with API for Bots combined Kik, Line, Telegram still has less users than FB Messenger
  3. ALL MESSENGER BOTS ARE REALLY CREATED EQUAL ( NOW )

    Your BOT Messenger API A.I RECEIVE SEND FB GRAPH API! WEBHOOKS!
  4. LETS DIVE IN 1.  CREATE FB APP and PAGE 2. 

    GENERATE YOUR TOKEN 3.  SETUP WEBHOOKS 4.  SEND MESSAGES 5.  RAISE MILLIONS $$$ FROM V.Cs
  5. AVAILABLE WEBHOOKS messaging_opBn Subscribes to authenBcaBon callbacks via the Send-to-Messenger

    Plugin messages Subscribes to message-received callbacks message_deliveries Subscribes to message-delivered callbacks messaging_postbacks Subscribes to postback callbacks
  6. MESSAGES messages This callback will occur when a message has

    been sent to your page. You may receive text messsages or messages with aPachments (image, video, audio).
  7. MESSAGING_POSTBACKS messaging_postbacks Postbacks occur when a postback buPon on a

    Structured Message is tapped. The payload field in the callback is defined on the buPon.
  8. SEND MESSAGES text Boring….. Images PNG, JPEGs, Gifs ( web

    ) templates Structure messages stickers Coming soon