Integrating with Chatbots via API (QSC)
About Integrating with Chatbots via API
You can integrate your Qualtrics Social Connect account with a chatbot to automatically respond to customer mentions. If you’d like to use Social Connect’s built-in chatbot capabilities, check out flows.
Qualtrics supports out of the box chatbot integrations with Facebook, WhatsApp, and LiveChat. You can also integrate with a different chatbot not listed here by setting up a custom connection. Integrating with a chatbot allows you to further customize the customer’s experience when using your chatbot.
General Setup
See this API support page for a list of available endpoints and this API support page for an example of a chatbot in action.
Connecting a Facebook Chatbot
- For sending and receiving messages with the bot, use the Facebook Messenger API. This API can be used to send automatic replies, add buttons to outgoing messages, and more.
- Implement a Facebook Handover Protocol.
- When setting up your protocol, Facebook Messenger is the primary application while Qualtrics Social Connect is the secondary application.
Once you’ve integrated your Facebook chatbot with Social Connect, here’s how customer mentions will be handled:
- The customer will start a conversation with your Facebook chatbot. These mentions will be tracked by Social Connect, but cannot be replied to. Each message sent by the bot will have a bot icon next to it.
- If the customer types one of your preset handover protocols, the conversation will be handed off to an agent in your Social Connect account. The agent will then reply to the customer. Each message sent by an agent will not have a bot icon next to it.
- At the end of the interaction, the agent will click Hand over to bot. This will end the interaction in Social Connect to the Facebook chatbot for the customer to finish the interaction.
Connecting a LiveChat or WhatsApp Chatbot
To connect with a LiveChat or WhatsApp Chatbot, please contact your XM Success Manager.
Connecting a Custom Chatbot That Doesn’t Support Handover
Some platforms support chatbots but do not support handover, such as Twitter. While a handover protocol isn’t necessary, it helps to smoothly transition between the bot and a live agent. If you are integrating with a chatbot that doesn’t support handover, you can use an automation recipe instead.
- Create an automation recipe that triggers a webhook for every private message.
- Set up your webhook so that the bot receives the new message as a mention.
- If the private message from the customer doesn’t contain an “escalated to agent” tag, then you can let the bot respond using this API endpoint.
Qtip: This API endpoint requires your application be allowlisted, so contact your XM Success Manager if you’d like to use this endpoint.
- To hand over the conversation to an agent in Social Connect, have the bot add the contact tag “escalated to agent” using this API endpoint.
- When the interaction is resolved, the agent can remove the “escalated to agent” tag from the contact. The next time the customer reaches out using the chatbot, the interaction will begin on the chatbot again, and can be handed over using the steps above.