Build your first messenger bot

16
Build your First Bot Chennai AI & Chatbot Meetup

Transcript of Build your first messenger bot

Build your First BotChennai AI & Chatbot Meetup

Chennai AI & Chatbot Meetup

• Meetup group for• Artificial Intelligence

• NLP

• Chatbot

• Volunteers

• Speakers

About Me

• Founder of getstarted.guru• An elearning platform for AI, NLP and Chatbots

Agenda

• Basic Concept of ChatBot

• Build a your own Bot

• Basic concepts of api.ai

• Setup your Development Environment

• Sample Code (node.js)

Why Bot?

• Facebook Messenger platform - April 2016

• Microsoft Bot Framework – March 2016

• Google Allo

• IBM Watson Dialougue API

• Telegram Bot Platform

What is a Bot?

Messenger Bot Developers Meetup

• DemoBot

What is a Bot?

• Read Message

• Process the Message

• Respond back

Messenger Bot Developers Meetup

• Read Message

• Respond back

Your App NLP EngineMessenger

• Process Message

Messenger Bot Developers Meetup

Webhook

Graph API

Steps

• Create a FB Page

• Create a FB App

• Enable Messenger in FB App and Copy Page Access Token

• Log in to api.ai and create an Agent

• Api.ai - > Enable “Small Talk” and Switch it ON.

• Agent Settings - > Integrations - > Messeger

• Provide token String, Page Access Token and Start the App.

• Copy Webhook URL, Go to Facebook App, Enter Webhook URL,

Messenger Bot Developers Meetup

api.ai JSON

• Intent: response.result.metadata.intentname

• action : response.result.action

• parameters: response.result.parameters.<param>

• Response Text: response.result.fulfillment.speech

Messenger Bot Developers Meetup

Setup Development Environment

• Download ngrok (https://ngrok.com)

• Sign up for ngrok

• Run ngrok on your localhost (It will give you an https URL that points exposes your app to internet)

Messenger Bot Developers Meetup

Sample Code

• https://github.com/getstartedguru/messengerbot

Messenger Bot Developers Meetup

Chatbot Platforms

• Api.ai

• Wit.ai

• Chatfuel

• Botsify

Messenger Bot Developers Meetup

We are Hiring

• Drop your resumes to [email protected]

THANK YOU

Messenger Bot Developers Meetup

Course Content

• Messenger Platform• Webhook• Subscription Options• Text Message• Structured Message

• api.ai• Intents• Entities• Context• Logs

• Integration