Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Building Facebook Messenger Bots With Botkit and Watson

DZone's Guide to

Building Facebook Messenger Bots With Botkit and Watson

My bot uses sophisticated controlsto provide the best possible user experience. The definitions of these JSON messages are stored in the Watson Conversation dialog via context variables.

· AI Zone
Free Resource

Find out how AI-Fueled APIs from Neura can make interesting products more exciting and engaging. 

I've implemented a sample Facebook Messenger bot that leverages the Node.js library Botkit, as well as IBM Watson Conversation.

With Botkin you can build bots for Slack, Facebook Messenger, Twilio, and other messaging clients. For natural language understanding, different services can be used; for example, IBM Watson, Api.ai, Wit.ai, or Rasa.

Most of the code can be shared for Slack and Facebook Messenger bots. Check out the code on GitHub.

Similarly to my sample Slack bot, the Facebook Messenger bot uses not only text but more sophisticated controls like buttons to provide the best possible user experience. The definitions of these JSON messages are stored in the Watson Conversation dialog via context variables.

This screenshot shows the Facebook Messenger web application.

This screenshot shows the Facebook Messenger mobile app.

To find out more, check out the sample code and read the Botkit documentation.

To find out how AI-Fueled APIs can increase engagement and retention, download Six Ways to Boost Engagement for Your IoT Device or App with AI today.

Topics:
ai ,botkit ,facebook messenger ,bot development ,watson ,json

Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}