Using the Clarabridge Engage you can build your bot for a single API, and have Clarabridge handle the platform specifics for you.
Clarabridge Engage has built integrations with the world's leading social and messaging platforms. Billions of users are using Facebook Messenger, WhatsApp, Twitter DM's, Instagram DM's, and each of those platforms has a different API. By leveraging the Engage API you let us do the heavy lifting to integrate with each of those platforms, and reduce the implementation costs.
Using the Clarabridge Engage API documented here and the PHP SDK, we have made an example application that showcases what can be built with our tools. Of course, the use case of your bot is up to you, but this example shows which techniques and endpoints are relevant for you to start building your bot with Clarabridge Engage.
The demo application implements a simple example of a bot, that will respond to incoming private messages on Facebook or Twitter, and ask the user to enter their phone number to receive further notifications. This phone number will then be stored to fill in an opt-in data set that can be used to e.g. send further message updates via WhatsApp.
Conversation with the Example Bot on Twitter
The demo app is an open source project hosted on Github. You can get the latest version of the app or contribute to it via Github:
To use the Example App you'll need a Clarabridge Engage account, and Clarabridge Engage Application, and be whitelisted for access to the direct publishing endpoints. Contact your Customer Success Manager for these details.
This example app is available under a MIT license.
If you want to take this Bot Example to the next level, here are some ideas: