Dialogflow

How to create a bot using Dialogflow on Gupshup platform

  • When you create a Dialogflow agent, a Google Project is created automatically or you can choose an existing Google project.
  • Along with this Google Project, a Google Service account is also created which has all permissions to communicate with the Dialogflow.
1443

Step 1: ##Get the Google Project ID

  • Log in to your Dialogflow account and select your agent.
  • Then click on Gear Icon next to your agent name and copy Project ID as shown in the image below.
1444

Step 2: Generate Dialogflow JSON

  • In the Dialogflow console, click on the gear icon.
  • Click on the Google Project.
593
  • In the Google Console, click on the hamburger icon in the top left corner.
297
  • In the menu that appears on the left, click on IAM & Admin.
297
  • Click on Service Accounts.
220
  • Create a new service account by clicking on the + Create Service Account button.
216
  • Make sure to provide Viewer access in Quick access settings.
395
  • After the creation of the service account, click on Manage Keys in the list of service accounts.
1640
  • Click on Add Key For that service account.
1633
  • Select key type as JSON.
559
  • Then a JSON file will be downloaded to your local machine. Copy the content of the JSON for later use.

Step 3: Create a bot using Dialogflow method

  • Sign up/Log in to the Gupshup website.
  • Go to Dashboard tab > My Bots section.
  • Click the + button in the top right corner to create a new bot.
1893
  • Enter a name and description for the bot and click Next.
891
  • In the Select Method tab, select Dialogflow and enter the JSON you copied earlier in the JSON field that appears.
  • Click the Create Bot button. Your Dialogflow agent will be linked to the bot.
886