Table of Contents

Dialogflow & Landbot lesson 2: Get the JSON Key

Pau Sanchez Updated by Pau Sanchez

Prefer watching than reading? No problem, we've got you covered πŸ‘‡

This lesson is just about how to get a key that will make Landbot be able to connect with a specific agent you create in Dialogflow.

This process only needs to be done once per Dialogflow agent. After this process is done, you won't need to repeat it for this agent in your Landbot account.

Here is how you can get the JSON key you need to connect Landbot with your Dialogflow agent:

  1. Create a Dialogflow Agent (if you already have one created skip this step)

  1. Once created, go to settings section of the Agent, by selecting the wheel next to the Agent Name:

And you will see this screen:

  1. Press in the link of the Google Project:

It will open the Google Cloud Console for this project:

  1. From this section "Getting started" select "Explore and enable APIs"

  1. And now select "Credentials"


And this dropdown will be displayed:

  1. Select "Service account":

  1. Now we will create a Service Account to be able to generate the API Key.

Add a name to the service account, and press CREATE

  1. In the next step select Owner, and press CONTINUE:
  2. Here you don't need to fill in any more details, just press DONE

You will return to the Credentials section:

  1. Press on the email that is located in the Service Accounts:

  1. In the new screen, scroll down press "ADD KEY" and after select "Create new key"
  2. Make sure the "JSON" is selected, and press CREATE:
  3. Now, a file will be generated and downloaded:

This is the JSON key, that you need to connect your Dialogflow Agent (project) with Landbot.

  1. Go back to Landbot, and in the Dialogflow select to add a new JSON key:

  1. A screen to add your recently downloaded JSON key will display, browse and select the file to be uploaded:

  1. And finally, your Dialogflow Agent, will be ready in Landbot

You can also upload an JSON Key from the Dialogflow Integration Dashboard (Link)

Next Lesson

Dialogflow & Landbot course 3: Setting up of Dialogflow in Landbot Link to lesson

How did we do?

Dialogflow & Landbot lesson 1: Create your first agent and intent in Dialogflow

Dialogflow & Landbot lesson 3: Setting up of Dialogflow in Landbot