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.
For identification purposes. This name will be used for internal reference only
The language to be used for Dialogflow's natural language processes. Choose the language of your target audience.
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!
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.