Create a service account and private key in Google Dialogflow ES

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • To use Google Dialogflow as your NLU provider for Virtual Agent, create a service account and private key for your agent in Google Dialogflow.

    Avant de commencer

    Create an agent in Google Dialogflow.

    Role required: admin

    Procédure

    1. Log in to your Google Dialogflow account.
    2. Select the agent settings icon, and then select the project ID on the General tab.
      Select settings, and then find the Google Project ID on the General tab.
    3. On the Google Cloud dashboard, select Go to project settings.
      On the Google Cloud Home dashboard, Go to project settings displays on the Project info card.
    4. On the IAM & Admin page, select Service Accounts.
    5. Select + Create Service Account.
      When you select the Service Accounts option in the side menu, the Create Service Account option appears in the header bar.
    6. Provide a name, and then select Create and Continue.
    7. Under the Grant this service account access to project section, select Owner as the role.

      Select Owner from the Role list.

    8. Select Continue.
    9. Select Done.
    10. In the Email column, select the link for the record.
      The Service accounts screen displays the email, name, and description. Select the Email address displayed in the column to open the Details page for the service account.
      The Service account details page opens.
    11. Copy the Email and the Unique ID and save them for a later step.
      The email address and unique ID are displayed on the Details tab for the service account.
    12. On the Service account details page, select the Keys tab.
    13. Select Add Key > Create new key.
      The Add Key option is on the Keys tab for the service account.
    14. When prompted for the key type, select P12, and then select Create.
      The P12 file is downloaded to your computer.
    15. Make note of the private key password (notasecret).

      You will need this password in a later step.

      Figure 1. Private key password example
      The private key password is shown onscreen when you download the P12 file.