Acquire
  • Home link-arrow
  • Chatbots link-arrow
  • Dialogflow V2

Dialogflow V2


As you may now know, Acquire has a couple of different chatbots to choose from, and you can even combine chatbots to suit your needs. If you want to use a third-party chatbot, Acquire provides access to a number of them through our App Store. Google’s Dialogflow is one of the most popular and works alongside the Acquire Chat Widget.

In this article:

  • Setting Up a Dialogflow Account
  • Creating a Service Account
  • Downloading the JSON file
  • Integrating Dialogflow into Acquire
  • Setting the Dialogflow Business Rule

What You’ll Need

  • A Google Cloud Platform Account

Setting Up a Dialogflow Account

Log in to your Google Cloud Platform Dashboard with your Google account. *Note: Be sure you are logged into the correct Google account. You may need to agree to their terms of service before continuing.

Follow Google’s documentation to set up a Dialogflow bot. 

V-2kTvL42R0egZFAGSeXID8t1hhpRbgrcQv5F2lY4d4ahkv5BpMQlxj0SQ5m1EGRb_BTmxd7O6q8n5Sic-iyP5V7otHHWn12pABepSZpfYF60Wh64Sgun4DSaP55pKakxL-rAqIh

Creating a Service Account

From the left Navigation pane on your Google Dashboard, go to IAM > Service Accounts. Note: This may also appear as IAM & Admin.
Create a service account for your bot by selecting ‘+ Create Service Account’ and then follow the steps below. 


ohsb03tuN4O93-oh6gFWalOXcJl2HvFghn2b3k4I-Nu4eP3Fw1gdDYvXs8PWhwpL6sLyIwbS4lLqo7ki0lfUU-iRg5_IccRyYnW_b_GHEd-eCzHEn30AJpZqcoCTimzY9zw3SPeI

Step 1: Write your service account details

mGZehglUbpLGuXHh9cm0L2LpM01oVEZg6TfQF8YbbQNXBEzzECI3J_29jIOyY7rbhinnypN1iDLBgYGCm0hIrCopBA_zxBoJJcns7jqNlsKob5k0JArtiCIhG12atyrUIB01YjLN

 Name your service account. A Service Account ID will be created automatically. Add a description and select ‘Create’.

Step 2: Grant this service account access to the project 


AjkKbLA3fzaQ61oyY7sbPLnusyShQRhOyN7RDBG4X_fThfX-ZUiYVwgqCbISeS0yJh5ttSGlVvfVT8euQ0hqnf70N8S4Bo8QdPsVDeiEIAOCiYE1juYVEW_MJSbawidN_vLWRcs2

Select Role as ‘Dialogflow API Client’ from the dropdown menu. Then, select ‘Continue’.

Step 3: Grant users access to this service account (optional)

You may grant access to this account to others.

When you are finished making changes, select ‘Done’.

Downloading the JSON File

From the 'Service Accounts' page, select the vertical ellipses (‘⋮’) under the ‘Actions’ header and select the ‘Manage keys’. On the ‘Keys’ page, press the ‘Add Key’ button and select ‘Create new key’.

Select ‘JSON’. Then press ‘Create’

3s4gOpjU7rrG3uJ8I50j0xRmRgoQ9YsexJtp3SZeXdIsL8U21IihTiSdRyVktb6UPjEWYQqF27yUXDoy4ieYYF7JAbRI_XmlV2eEgI6y2VaHOmISGPhhHxhzanBZYucCVr1VaLA-

A dialogue box will alert you that a private was saved to your computer. A JSON file will download in your browser.

Copy the JSON code. It will look something like this:

3Eu2FoyHJlbdhWSBEUYJqXR2HNDAQ3qXpKCzZ4_dvS7THEEI-RMu5qnI-nQCy9WMkGAnU9C7tOoA2OCFb1cVRkZW936hMr9IaM48q9zl5mx-P9KIvb7-M8gvtkVZrDggMNV1WVuZ

Integrating Dialogflow in Acquire 

Navigate to your Acquire dashboard and select the ‘App Store’ and choose ‘Dialog Flow Bot V2’. Click on ‘Install’ and follow the ‘Authorization’ instructions. 

Note: There may be two versions of Dialogflow in the App Store. Ensure you select V2.

Go to the ‘Settings’ tab and paste the JSON code in to the ‘Service JSON’ field. 

The ‘Language’ field should populate automatically. If not, write the ISO language code your chatbot will be using. Then, hit ‘Save’. 

riTHC-6Wyw7VNfSx4QmBj2-fV5fA5rb18J03KAUo9gBQdpLiFPuHf0cEQevoT5mGhNAuOLwkZJKtE6YqcJsxhacu2J6VM-PhiP0nLjdtWFwJrwmgRMppn4GPuoDrIUcK9VVYhOnX

Setting the Dialogflow Business Rule

After you’ve trained the agent on the Dialogflow platform, it’s time to see it in action. To start utilizing Dialogflow in the Acquire platform, you will need to create a Business Rule.

In Acquire, navigate to Settings > Workflows > Business Rules and select ‘New Rule’.

Choose the type of trigger you want to link your Dialogflow agent to. For example, you may want to have your Dialogflow agent interact with first-time visitors to your site. You can choose from a variety of options suited to your website’s or business' needs. Learn more about adding conditions to a chatbot in Configuring Chatbot Business Rules.

Congratulations! You have integrated Dialogflow into Acquire’s platform. You now have the power of Dialogflow and Acquire at your side.


Related Articles