To use Google Dialogflow as your NLU provider for Virtual Agent, create a service account and private key for your agent in Google Dialogflow.

Before you begin

Create an agent in Google Dialogflow.

Role required: admin

Procedure

  1. Log in to your Google Dialogflow account.
  2. Click the agent settings icon, and then click the project ID on the General tab.
    Click settings, and then find the Google Project ID on the General tab.
  3. On the Google Cloud dashboard, click 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, click Service Accounts.
  5. Click + 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 click 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. Click Continue.
  9. Click Done.
  10. In the Email column, click the link for the record.
    The Service accounts screen displays the email, name, and description. Click 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, click the Keys tab.
  13. Click 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 click 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.