How to set up the Dialogflow chatbot template step by step

One of our purposes is to bring the world of chatbots closer to any company or individual who wants it. This technology, that sometimes seems too advanced, is now accessible to anyone who wants to improve their communications.

This is one of the reasons why we have started to expand our catalog of templates, in which you will find at least one that can help you.

Among them is our Dialogflow template, which combines the potential of Artificial Intelligence developed by Google with our multichannel platform.

We tell you how to start making the most of this template. 

Download the template

Template features

This is one of our ready-to-use templates, although in this case it is necessary to perform a series of steps to integrate Dialogflow that we will explain in detail below.

It is configured to work on the following channels:

  • WhatsApp
  • Facebook
  • Instagram
  • Webchat
You can also configure the activation and deactivation of the live chat by setting the times and activation of the live chat according to the user’s intention.

Configure Dialogflow for integration

To get started, you need to have a WOZTELL account and a Dialogflow account. It is important to have both accounts with an email address associated with your company, and not a personal one.

First we go to Dialogflow to start the configuration with the selected Google account.

1. We choose the “Create Agent” option, starting the process.
2. We name the agent and click on the “Create” option.

dialogflow-template

3. The newly created agent will appear in the left column. To proceed with the integration, click on the nut to access the settings and go to the link that presents the “Project ID” section.

dialogflow-template

4. The objective now is to create a Service Account. So, in the left column we select “IAM and administration” and in the options presented, we choose “Service Accounts”.

dialogflow-template

5. Select the “Create service account” option for our integration.
6. We fill in the account details and select “Create and continue” when all the data is complete.

dialogflow-template

7. In the permissions section, we select the “Dialogflow API Administrator” role and click “Continue” when we are done.

8. At this point, we want to create a Key for our account. First we click on the link that appears in the Email section.

9. In the top menu go to “Keys” > “Add Key” > “Create new key”.

dialogflow-template

10. The type of key we will use is a JSON file. Select this option and create it.
11. The file will be downloaded to our computer.

dialogflow-template

Installing Dialogflow integration in WOZTELL

For the next phase of the integration, we have to go to the WOZTELL platform.

1. We log in with our account and select the “Integrations” option in the top menu and navigate to select a “New Integration”.
2. Search for “Dialogflow” and confirm your selection by clicking on the “Get” button.

Installing-Dialogflow

3. We make sure to select the latest version and confirm again by clicking on “Get”.
4. We enter a name for the integration in the “Alias” field. This field is mandatory, while the description is completely optional. Once the required information has been filled in, select “Install”.

Installing-Dialogflow

Configuring the Dialogflow integration

1. In the same “Integrations” section we now select the one we have just installed.
2. To complete the integration, we will need to enter a series of data. The information is contained in the json file that we have previously downloaded.

Installing-Dialogflow

It is very important that when copying the Private Key we separate the lines correctly, adding the line breaks. Basically, we have to search in our text for the “\n” characters (line break encoding) and replace them with a line break. To locate the separations, we recommend using the “CTRL+F” search engine and searching for the “\n” characters. This combination must be removed so that the text looks similar to the one shown in the image.

Once these steps are completed, we have the installation set up! Now, all that’s left is to apply the integration to our chatbot template.

Want to know more? Let’s talk via WhatsApp.

Configure the chatbot template

With everything ready, now we just need to import the template to our account and add the Dialogflow integration.
In order for the chatbot to have a database from which to take its answers, it is important to train it. The intents is a section you will want to work on so that it gives the best possible information, all within Dialogflow.
You can find more information in their documentation.

1. Import the template, and once opened in the Chatbot Builder, select the node called “DIALOGFLOW”.

Installing-Dialogflow

2. We scroll until we reach the “Actions” section.
3. Now, we take care of selecting the integration that we have previously prepared. The information will appear automatically and in Locale we will select the language of our chatbot. Finally we click on “Save”.

Installing-Dialogflow

4. If we scroll down to Tree Manager, the Config Map panel will open where we can configure whether we want the chatbot to restart after a period of time.

If you want it to restart, leave the value as “true”, in case you don’t want it to restart, write the value in “Restart Chatbot” as “false”.
In “Chatbot Restart Time” set the number of days/hours/minutes that must pass before the chatbot restarts. It is essential to configure “Time unite” with one of these values: “days”, “hours” or “minutes”.

Installing-Dialogflow
In the case of the image, the chatbot is configured to restart after 24 hours.

Configure Live Chat

1. To activate the live chat option, we must go to Dialogflow and configure a specific Intent that will activate this option.
2. We add a series of phrases that represent the user’s intention to talk to an agent. The more we add, the better trained the chatbot will be.
live-chat-Dialogflow

3. We move to “Action and parameters” to configure the conditions that the text fulfills for the chatbot to activate the live chat. For it to work correctly it is essential to configure this field as shown in the image.

live-chat-Dialogflow

4. Finally, in “Responses” we can configure a series of responses that the chatbot will show once it has identified the intention as wanting to talk to an agent.

live-chat-Dialogflow

Types of chatbot responses

In the case of wanting to configure a response as something other than text, it is necessary to configure it according to the channel to be used. Here we link the types of messages accepted according to the platform:

WhatsApp gives you the possibility to create templates adapted to different business needs. Once you complete the template with your information you must send it to WhatsApp for approval and when you receive the approval you can start using it.

Since in this case the message needs to be configured at the code level, we recommend that a programmer takes care of it.

Conclusion

We hope this guide has helped you with the configuration of your new chatbot.

Artificial intelligence in chatbots is a great ally to alleviate the workload of agents and provide instant attention that will always make your customers feel heard.

This installation is just the beginning, now you just need to train and add more knowledge to your chatbot so that it can take care of the communications of all the channels you want.

How to Create a Flow with WOZTELL and Zoho Flow

How to Create a Flow with WOZTELL and Zoho Flow

Tutorial: How to Create a Flow with WOZTELL and Zoho FlowFREE ebook: How to convert your leads into sales with WhatsApp and Zoho   FREE Download Want to know more? Let´s talk via WhatsApp! Leverage the power of Zoho Flow to seamlessly integrate WOZTELL with over...

New WOZTELL UI

New WOZTELL UI

New WOZTELL UIIndexFREE ebook: How to convert your leads into sales with WhatsApp and Zoho   FREE Download Want to know more? Let´s talk via WhatsApp! The new WOZTELL user interface is designed to simplify access to the most frequently used sections of the...

WhatsApp conversations pricing update

WhatsApp conversations pricing update

WhatsApp conversations pricing updateIndexE-book: How to make the most out of WhatsApp in education  Download for FREE Want to know more? Let´s talk via WhatsApp! From the first of June 2023, WhatsApp will update the conversation pricing and categories for...