Skip to content

Google Cloud Project and Dialogflow Agent Setup

Christopher Martin edited this page Jun 17, 2021 · 2 revisions

1. Navigate to https://console.cloud.google.com/ and agree to the Terms of Service

2. Navigate to https://dialogflow.cloud.google.com/ and sign in with your desired Google account

3. Accept the Terms of Service and click "CREATE AGENT"

4. Give the Dialogflow Agent a name, select the default language and timezone, and click "CREATE"

5. Click on the cog in the navigation sidebar to access the Dialogflow Agent settings

6. Copy the Project ID from the "GOOGLE PROJECT" section into your .env file

7. Enable beta features and APIs in the "BETA FEATURES" section

8. Click "SAVE"

9. Click on the Intent section of the navigation sidebar

10. Select the two default intents and click "DELETE"

11. Click "DELETE"

12. Navigate to https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts and select the Google Cloud Project whose name matches your Dialogflow Project ID

13. Click "Create Service Account"

14. Enter a name and description for the service account, then click "CREATE AND CONTINUE"

15. Open the role drop-down menu, select "Dialogflow API Admin", and click "CONTINUE"

16. Click "DONE"

17. Expand the menu under the Actions column and select "Manage keys"

18. Click "ADD KEY" and select "Create new key"

19. Select JSON and click "CREATE"

20. Place the downloaded credentials file in a secure location and enter its path into your .env file

{
  "type": "service_account",
  "project_id": "classroom-assistant",
  "private_key_id": "...",
  "private_key": "...",
  "client_email": "...",
  "client_id": "...",
  "auth_uri": "...",
  "token_uri": "...",
  "auth_provider_x509_cert_url": "...",
  "client_x509_cert_url": "..."
}
Clone this wiki locally