Create first Facebook chatbot by api.ai

It is fun to create a facebook chatbot, following are steps to create a very simple chatbot using http://api.ai

1. Create facebook page

image

2 . Then go to https://developers.facebook.com/apps/, select “Add a New App”, select basic setup.

clip_image003

clip_image005

3. After create successful, select “Get Started” in Messenger, then select new page that you just create as following:

clip_image006

4. Then copy Page Access Token, go to http://api.ai, create new account then select New Agent \ Chatbot Demo

clip_image007

5. Select Domains

clip_image008

6. Enable Small Talk Domain

clip_image009

7. Go to Chatbot Demo, select Settings as following

clip_image010

8. Input your token name and pasted Facebook token as following

clip_image011

9. Copy Callback URL from http://api.ai

Go to facebook developer page, input following information:

clip_image012

10. When complete, select page name as following, then click “Subscribe”

clip_image013

clip_image015

11. After configure successful, go to your page and start send message:

clip_image016

Have fun!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s