Connecting to Dialogflow

Connecting a Dialogflow Agent to Rocketbots.

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

Connecting Dialogflow to Rocketbots is simple as you will only need to retrieve a JSON file from Dialogflow and uploading 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.

Connecting Dialogflow

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.

Step 2: Review and Accept Terms of Service Review the terms and check the box. Press Accept to proceed.

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 act as the brain of your bot and the component that 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

Step 2: Name the Agent Give the agent a name for internal reference. Make any necessary changes to the default settings.

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 respond.io platform is simple as you will only need to retrieve a JSON file from Dialogflow and upload it to 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.

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.

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.

Step 5: Fill up the required information Name the Service Account and assign Dialogflow API Client role to it

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.

Step 7: Navigate to respond.io Integrations Login to respond.io with your user account and navigate to Settings > Integrations

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.

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 behaviour for one conversation turn based on the prescribed incoming behaviour.

Read more on how to manage intents: