Dialog Flow V2 Chat-Bot

Note :- Dialogflow’s v2 API doesn’t support “Browse carousel card” that’s why we also don’t support it.

Quick Installation Steps

Dialog flow offers its own knowledge base section. It allows us to train own questions and answer pairs that are helpful to the Chat-Bot to handle our visitor queries. To bind “Google’s Dialog Flow v2” with the “Acquire Chat Widget”, we must first pass a few mandatory parameters. To install the “Dialog Flow Chat-Bot” easily follow the simple steps below:

1. If you don’t already have an account with “Dialog Flow” you can visit the following page https://console.dialogflow.com/api-client/#/login and use your Gmail account to create an account and access the Dialog Flow Panel.

2. Once logged inside the Dialog flow dashboard, we can create an agent.

3. To add an agent enter the “Agent Name” at the top, and select the language type that you want to train your Chat-Bot.

4. After pressing “CREATE” it may take a few seconds to prepare that agent. Once created an agent with empty phrases will appear. Here we can enter all the phrases that we want to train our Chat-Bot to answer all those queries that are asked by the visitors. To build a knowledge base we have to create “Intents” on them.

5. Inside the Intents view we can see many collapsible tabs; here we can put all our queries in the “Training Phrases” Tab. And, put all our responses of those queries in the “Responses” Tab.

6. After saving the Intent, a gear icon will start to spin that indicates that the Dialog flow is preparing its knowledge base for new upcoming intents.

7. After adding all the necessary phrases, we can navigate to the Acquire’s Bot Section, here we can see there are many 3rd party Chat-bots available and amongst them there will be the new “Dialog Flow v2 Bot” in this list.

8. After clicking on that and a popup will be displayed. We can then add the parameters (i.e. “service_json” and “language”) to bind it with chat widget as required.

9. To access our “service_json”, we can navigate to the Dialog flow and press on the gear icon that is displayed next to our agent name. Here we can access all the necessary settings related to our agent. We can click on the“Service Account from the “General” tab.

It will redirect us to the “console.cloud.google.com”.

10 A. If we don’t already have a “service account” within Dialogflow then we can click on the “Create service account” and it will direct us to the service account page to create an account.

11 A. We can complete the “Service account details” and click on ‘’Create”.

12 A. To add a Role for the “Dialogflow API Client ” as mentioned on https://dialogflow.com/docs/reference/v2-auth-setup the documentation and we can click on “continue”.

13 A. Next, we can click on the “Create key” button to create a private key. We can then choose the key type as “JSON” and click on “Create” to create it. A file will be downloaded on to our local system.

10 B. If we already have a “service account” within Dialogflow then we can click on the option icon and click on “Create key”.

11 B. We can choose the key type as “JSON” and click on “Create” to create it. A file will be downloaded on to our local system.

12. Next, we can open the downloaded .json key file and copy all the contents and paste it into the “service_json” parameter as shown below:

13. To set the “language” for the Acquire popup, we can click on the language code as shown below. The selected language will be used to train the Chatbot.

14. We are now all set up, we can now finally press the install button.

15. From within the “Trigger” section inside the Acquire Dashboard, we can apply the necessary instructions in a Campaign. It will answer all our visitors’ queries.

16. Finally, we can test the new Dialog Flow v2 Chatbot on our simulator page . https://app.acquire.io/s/ {add our account id}