How to prevent Chatbot from answering facebook messages? | Community
Skip to main content

How to prevent Chatbot from answering facebook messages?

  • February 2, 2021
  • 3 replies
  • 0 views

David93

We have a chatbot set up to subscribe and respond to all chat messages. When the chatbot is unable to provide an answer (or if the customer requests to speak to an agent), the chatbot hands the chat off to a human agent. The issue is that right now, we also use zendesk messages to service on our company Facebook and Twitter account. The chatbot is now responding to all messages coming in from our Facebook Page, which we do NOT want. Looking through the conversations API, we don't see a way for our chatbot to determine whether a channel is a Facebook chat or a regular chat, and further prevent the bot from responding to Facebook chats?

Does anyone have an idea on how we prevent our chatbot from responding to Facebook messages? A few options we tried:

1. Create a trigger to add tags to all social media chats. Then have our chatbot ignore tickets with the social media tag. This didn't work since the conversations API doesn't support fetching a list of tags belonging to a chat ticket.

2. Use the Conversations API to get the ticket ID for the chat ticket and then use the Chat API to check for tags on ticket. Once again, we found that the Zendesk ticket ID for a chat isn't exposed through the conversations API either. The unique identifier used in the Conversations API is the `channel_id` which we can't use to fetch information from the chat API.

3. Only have our chatbot respond to messages that are placed in a specific department. We could use a trigger to route all conversations except social into the chatbot's department. This didn't work since the Conversations API doesn't provide a way to view what department a chat is in. It only offers a way to move a chat to a certain department.

 

Any thoughts on whether any of the three alternatives are possible? How else can we prevent our chatbot from responding to chats coming from our Facebook page?

 

 

3 replies

Greg29
  • February 3, 2021

Hi David! Thanks for providing all of this context, as well as the steps you've already taken and how that played out for you. Could you let me know what tools you're using to have a bot respond to your Facebook messages? From what I can tell, you do not currently have any Facebook pages linked to your instance so anything that you can share here will help me figure out the root of the issue and then a possible solution.

Thanks!


David93
  • Author
  • February 10, 2021

We'd since disconnected our Facebook and Twitter pages while we looked for a solution. I'm not exactly sure how the original integration was setup, however, I see that an Ap called Zendesk Messenger app has permissions to our Facebook page. Does this help?


David93
  • Author
  • February 10, 2021

Thanks for your help

Update: I've relinked our Facebook page to our Zendesk account. However, I'm not able to have Facebook page messages turn into tickets without having our chatbot trying to respond to all of our Facebook messages. This is what the integration looks like on Facebook:

This is what the integration looks like on our side (https://company.zendesk.com/admin/channels/channels_list/edit/#####):

 

In order for messages to be turned into tickets, we have to enable the Handover Protocol option for Zendesk, however, when we enable this, all Facebook messages are making it into the subscription that our chatbot listens to via the Conversations API. Also based on the documentation, we don't see a way to distinguish which messages are from Facebook, so we can't implement a check to prevent our chatbot from answering these messages:

In the meanwhile, we've turned off the handover protocol option for Zendesk to prevent our chatbot from disturbing our Facebook page.