Creating a GCP service account

A GCP service account manages the permissions provided to access a GCP resource. The Dialogflow agent we created was a GCP resource and so to use it from the Python API, we'll need a service account:

  1. In the GCP console, from the left-hand side navigation menu, go to APIs | Services | Credentials.
  2. Click the Create credentials button to get the following options:

  1. Click on Service account key. In the page that comes up next, select Dialogflow Integrations as the service account and JSON as the key type. After clicking Create, a JSON file is downloaded to your computer.
  2. Note down the address of this JSON file—for ...

Get Hands-On Python Deep Learning for the Web now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.