...
Go to https://console.cloud.google.com/iam-admin/serviceaccounts .
orClick on the gear icon from the Dialogflow agent page and then click on the Google Cloud link as shown below.
Project ID link.
The google console page will load on a new tab.
Select the Agent from the dropdown at the top of the page.
Click on the hamburger menu to open the side menu. Select IAM & Admin and then select Service Accounts from the child dropdown.
Make sure your Agent is selected and click on “Create Service Account“.
Choose a name for your service account and click on Create and Continue button.
Select Search and select the Dialogflow API Admin rolefrom the dropdown and click on ‘Continue’.
You can skip the next third step and click on Done.
Generate a key
Click on the verticle ellipses button against the Service Account .
Select Create Key and select Manage Keys from the dropdown menu.
In the pop-up window, select JSON and click on Create.
The key will be downloaded to your computer.
...