Table of Contents

Dialogflow: Connecting to Dialogflow

Susan Swier Updated by Susan Swier

To help you better understand the integration between DialogFlow and respond.io, you may read the following blog posts:
How to Build a Chatbot with Dialogflow
How to Use respond.io as a Dialogflow CRM

Connecting Dialogflow to respond.io is simple as you will only need to retrieve a JSON file from Dialogflow and upload it to respond.io platform.

Video Tutorial

This video guide will take you through generating and retrieving the Google Service Account Key (a JSON file) from your Dialogflow Agent and uploading it respond.io platform.

Setting Up Dialogflow

Prior to generating the Google Service Account Key, you will need to have a Google account to sign into Dialogflow.

In order to set up Dialogflow, we will need to do the following:

You may skip the step and proceed to the next if you have already performed it.

Getting a Dialogflow Account

Step 1: Login with Google

Navigate to this page and proceed to login with your Google account.

screenshot of dialogflow login page

Step 2: Review and Accept Terms of Service

Review the terms and check the box. Press Accept to proceed.

screenshot of Dialogflow review account settings popup
You have now created your Dialogflow account and you can proceed to the next step, Creating a Dialog Agent.

Creating a Dialogflow Agent

In Dialogflow, there is a module named Agent that acts as the brain of your bot. This component will help your bot understand and classify human languages.

Step 1: Login to Dialogflow

Once you have logged in, press Create Agent at the side navigation menu.

screenshot showing how to create an agent in Dialogflow

Step 2: Name the Agent

Give the agent a name for internal reference. Make any necessary changes to the default settings.

gif showing how to connect and name your Dialogflow agent

Fields

Description

Name

For identification purposes. This name will be used for internal reference only.

Language

The language to be used for Dialogflow's natural language processes. Choose the language of your target audience.

Timezone

The timezone to be adopted for analytics purposes on Dialogflow.

Note that a new Google Cloud Project will be automatically created to the Dialogflow Agent when created. The Google Cloud Project will be used to connect Dialogflow to respond.io.

Step 3: Create the Agent

When you are ready, press CREATE button to proceed with creating the agent.

Now, the Dialogflow Agent is created and you can proceed to connect Dialogflow to respond.io.

Connecting to Dialogflow

Connecting Dialogflow to the respond.io platform is simple as you will only need to retrieve a JSON file from Dialogflow and upload it to the respond.io platform.

Step 1: Login to Dialogflow

Using your Google account that is associated with Dialogflow, login to Dialogflow.

Step 2: Navigate to Agent Settings

Navigate to the Settings module by pressing on the ⚙ icon beside the Agents dropdown menu.

screenshot showing the Dialogflow agent settings

Step 3: Navigate to the associated Google Project

In the General tab, press on the link in the Service Account to view the associated Google Project.

screenshot showing how to navigate to the associated Google Project in Dialogflow

Step 4: Create Service Account

With the Google Project open, navigate to the navigation menu and locate IAM & Admin menu item. Select Service Accounts from the menu.

gif showing how to select Service Account

Step 5: Fill out the required information

Name the Service Account and assign Dialogflow API Client role to it.

screenshot showing how to fill out the service account information
screenshot showing how to give service account permissions to the Dialogflow API

Step 6: Generate Key

Locate the previously created Service Account and select Create Key from the actions menu. Select JSON when prompted which format of key preferred.

gif showing how to generate a Dialogflow API

Step 7: Navigate to respond.io Integrations

Login to respond.io with your user account and navigate to Settings > Integrations.

screenshot showing how to navigate to the respond.io integrations settings

Step 8: Connect Dialogflow

From the list, search for Dialogflow and press Connect.

Step 9: Choose language and upload JSON file

Select the language of your target audience and upload the JSON file downloaded from Google Project earlier.

screenshot showing how to put the API code in respond.io

Step 10: Complete the setup

Press CONNECT to complete connecting Dialogflow Agent to respond.io platform.

Your Dialogflow Agent is now connected to the respond.io platform. The Agent will start to respond to any incoming messages.
Having trouble with connecting to Dialogflow? Contact us here.

What's next?

The interaction between Dialogflow Agent and Contact is managed by intents. In summary, intents are used to describe the expected behavior for one conversation turn based on the prescribed incoming behavior.

Read more on how to manage intents:

IS THIS ARTICLE HELPFUL?

We'd love to hear from you!

Dialogflow Overview

Dialogflow: Creating a Chatbot

Can't find what you're looking for?

Talk to an expert here!

Contact Us
Powered by HelpDocs (opens in a new tab)

Powered by HelpDocs (opens in a new tab)