Using Qualtrics Social Connect you can build your bot for a single API, and have Qualtrics handle the platform specifics for you.
Qualtrics Social Connect has built integrations with the world's leading social and messaging platforms. Billions of users are using Facebook Messenger, WhatsApp, Twitter PMs, ... and each of those platforms has a different API. By leveraging the QSC API you let us do the heavy lifting to integrate with each of those platforms, and reduce the implementation costs.
Using the Qualtrics Social Connect 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 Qualtrics Social Connect.
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: https://github.com/engagor/php-api-demo-app
To use the Example App you'll need a Qualtrics Social Connect account, and Qualtrics Social Connect Application, and be allowed to 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: