Connecting to Dialogflow
Connecting a Dialogflow Agent to Rocketbots.
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.
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.
In order to set up Dialogflow, we will need to do the following:
Step 2: Review and Accept Terms of Service Review the terms and check the box. Press Accept to proceed.
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.
Step 3: Create the Agent When you are ready, press CREATE button to proceed with creating the agent.
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 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.
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: