Create an New Agent or use existing one

To create an agent in the Dialogflow console, follow these steps:

  1. Open Dialogflow console and then sign in to your account.
  2. In the console, from the left pane, click Create new agent.
  3. Type the name of the new agent. Under the Google Project section, associate an existing Google project to the Dialogflow agent. If you leave the Google Project field empty, Dialogflow V2 automatically creates a Google project.
  4. Click Create to create the Dialogflow V2 agent.

Create a Google Service Account and Private Key

After you import the chatbot, you must create a Google service account and a private key. To do so, follow these steps:

  1. In the Dialogflow console, open the Settings menu and click the Service Account link associated with the Dialogflow agent. The Google Cloud Platform console appears.
  2. In the console, from the left pane, click Service Accounts and then click Create Service Account to create a new service account.
  3. Under the Service Account Details, add a name and description for the created service account.
  4. Click Create to create the service account.
  5. After service account has been created, you must grant the service account acces to your project. Under the Service Accounts Permissions section, click the Select a role drop-down list box and then select the Dialogflow API Admin option.
  6. Click Continue.
  7. Under the Create Key section, click + Create Key to create a new private key. This private key enables you to access the Dialogflow agent from the chatbot framework.
  8. Select JSON as the key type, and then click Create to download and save the private key to your computer.
    A dialog box shows up confirming that the private key has been downloaded, click Close.
  9. Click Done to save the service account changes in your console.
    The downloaded file contains information about the service account and private key.


Credits for the tutorial:

Once the file is downloaded, open it and copy all the content.

Go to your Tekos flow instance, double click on the Dialogflow node et paste the private key. 

Dont worry, the node will detect automatically the private key from the file.

Complete the project ID from the dialogflow settings 

Grab your Account ID from the JSOn key file and fill it in the Account ID section in the node settings.

And you are done.

Now you can send the data to dialogflow and process responses.