This article will explain how you can integrate the WordPress Live chat plugin WSChat – ELEX WordPress Live Chat Plugin with Dialogflow to generate AI and NLP based automated responses to the customers’ queries. Check it out to integrate WordPress Live Chat with AI chatbot powered by Google Assistant.
WSChat offers several advanced features to send attachments, record and send video, an option to mail the entire chat history to an emailID, and an option to give customer feedback to you through a like and dislike button. You can easily convert a chat to ticket as well using this plugin.
Google’s Dialogflow is a tool to generate automated chat responses by incorporating Artificial Intelligence and Natural Language Processing. It will help to trigger automated responses as text, images, audio and video according to the response from the customers.
Install and Activate WSChat Plugin
Go to WSChat -> Settings -> Chatbot AI
- Dialogflow: You have to enable it to get linked with your Dialogflow account.
- Google Project ID: After setting up your Dialogflow account, you will get this ID and can enter here.
- Google Service Account Private Key File: After the Dialogflow set up, you can download a JSON file from Google Cloud Platform and you can paste here.
- Agent Language: Choose a language according to your convenience.
Next step is to set up your Dialogflow account.
Set Up Your Dialogflow Account
Go to https://dialogflow.com/ -> Click Sign up for free.

Create Agents
Enter the agent name, default language, and default time zone, and click on ‘Create’.
Create Intents
Then you can create the ‘Intents’. You can find it on the left side of the tab.
For a detailed guide to set up the intents go through the article Detailed Guide on Setting up Dialogflow – Artificial Intelligence Based, NLP Optimized for the Google Assistant and Chatbot Development.
You can create training phrases by assuming all possible queries and responses from the customers and add them here.

Example:


Store Your Images, Videos and Audios in Firebase
For configuring to send images, audio and video as responses, you have to upload and store it in the Firebase platform. And you can take the link and add it to the responses.
Integration with WSChat
Go to Dialogflow -> Settings
There you can find the project ID and service account.
Choose JSON format and click on Create.
Example of a JSON file:
Enter the project ID and paste the JSON file format Google service account private key file in the respected fields. Choose an agent language if required.
For the complete guide to set up WSChat, go through How to set up WSChat – ELEX WordPress Live Chat Plugin?.






