heidloff.net - Building is my Passion
Post
Cancel

Building Facebook Messenger Bots with Botkit and Watson

I’ve implemented a sample Facebook Messenger bot which leverages the Node.js library Botkit and IBM Watson Conversation.

With Botkit 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.

image

This screenshot shows the Facebook Messenger web application.

image

This screenshot shows the Facebook Messenger mobile app.

image

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

Featured Blog Posts
Disclaimer
The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions.
Trending Tags