Dialogflow V2 Setup

Dialogflow V2 Setup

Dialogflow agents can be integrated with your Webio organisation to utilise natural language understanding to identify the intent of a response, and use this intent to progress the conversation journey. Integrate each of your dialogflow agents to your Webio organisation to make them available to your bots.

Quick trick: Generate your JSON key for your dialogflow agent service account, then paste this key into your organisation screen, by selecting Integrations, Dialogflow V2.

Google Dialogflow ES (Global)

If you don't already have a Google Dialogflow account, you can login with your google account at https://dialogflow.cloud.google.com/#/login.  Once logged in, create a new agent, add your intents and for each intent add a few training phrases that would mean this intent.  You're now ready to link to your Dialogflow agent to your Webio organisation. 

Linking your Dialogflow agent to your Webio organisation

Generating the key

Before you can use your DF agent within a bot, it first needs to be intergated with your Webio organisation.  This is done using the JSON key for your agent.  To generate the key, within Dialogflow click the settings icon next to your agent name.  

You will see the Google Project ID highlighted in blue.  In the screenshot below it is webio-yes-no.  Click on this and you will be taken through to your project on the Google Cloud Platform.


In the Navigation menu, select IAM & Admin and then Service Accounts



Select Create a Service Account and complete the Service account name and description, select Create and Continue. 


The role you need to add is the Dialogflow API Admin. Click Continue and Done.


You can now generate the key you require.  For the service account you have just created, click into the actions dots and choose manage keys.  Under Add a Key, choose Create New Key, make sure it is on JSON and click create. 



Copy the entire key from the first { to the last }.  All of this needs to be pasted into your Webio organisation screen. 

Completing the integration

While logged into Webio, go to organisations and click into the organisation you want to integrate the agent to.

Go to integrations and select Add Integration.

Select DialogFlow V2.

Update the description.

Now paste the entire key into the JSON Authentication Key and click Create Integration.



Your agent can now be used in your bot building.  To see it go to Bots, edit and create a new bot and select a step type of Dialogflow V2.  Under Bot choose the description you set.



The intents from your dialgoflow agent will appear.  Set the step against each one you want the bot to progress to if the intent is returned. 

If you find the intents aren't being returned as expected, go into Dialogflow and train your bot by selecting training and then choosing the correct intent for the phrases it has matched incorrectly. 
    • Related Articles

    • Integrating a Dialogflow agent

      Dialogflow agents use natural language understanding to return intents.  When used as part of your Webio Conversational Middleware solution they allow your bots to manage conversations with natural fluency, allowing a conversational tone that will ...
    • Howto Setup SFTP to Webio

      SFTP is a secure method of transferring data.  Connecting via SFTP allows you to access API services as detailed in our Swagger document, or retrieve reports.  If you want to connect to Webio using SFTP then you can configure an SFTP connection for ...
    • Quickstart

      In this article we will see how you can create a basic outbound Bot and set up your first Once-Off Campaign. Outbound Conversation: To start an outbound conversation, you will need to import data into the system. This can be done by logging into the ...
    • Logging into Webio for the first time

      Once your user account has been created you will receive an email with a link to set your password.  If the email hasn't been received, check in your junk folder.  Clicking on the link will let you create your own password and ensure it meets the ...
    • Self-Service Studio - Settings

      Overview Self-Service Studio allows you to configure the settings of your customer portal. Configure ID&V Choose what information the customer has to provide when logging in to their personal area. Enable or disable Promise to Pay and Payment Plans ...