Create API credentials for Google Vertex AI

  • Release version: Xanadu
  • Updated August 1, 2024
  • 1 minute to read
  • Configure your API credentials to use Google Vertex AI in custom workflows and Virtual Agent Designer topics.

    Before you begin

    You must have a Google Cloud project and the permissions to generate new OAuth credentials.

    Role required: admin

    About this task

    In order to use Google Vertex AI as your LLM provider for Generative AI Controller capabilities, you must have an active connection configured.

    Procedure

    1. Navigate to All > Connections & Credentials > Connections & Credentials Aliases.
    2. Open the record for Google Bard Vertex AI.
    3. Select the Create New Connection & Credential related link.
      Create New Connection & Credential related link highlighted on the screen.
    4. Fill in the required fields.
      Table 1. Google OAuth Connection

      Field

      Value

      Project ID The Project ID found in the Google Cloud console
      Credential Name The name of your credential, such as Google OAuth Credential
      OAuth Name The name of your OAuth authentication, such as Google Registry
      OAuth Client ID To get the OAuth Client ID, create a new OAuth Client ID with the Google Cloud console with the following attributes:
      1. Application type: Web application
      2. Authorized redirect URI: URL in the OAuth Redirect URL field, usually <instance>.service-now.com/oauth_redirect.do
      For more information, see the Google documentation for creating OAuth client IDs. Once you have created the OAuth client, a pop-up window will have the Client ID and Client secret for you to copy into your clipboard.
      OAuth Client Secret Client secret from your OAuth Client ID found in the Google Cloud console
    5. In the pop-up window, log in to a Google Account with access to the project.
    6. When prompted for Google Cloud access for gsuite spokes, select Allow.

    Result

    You can now use Completions – Vertex AI and Chat Completions – Vertex AI in Flow Designer, Virtual Agent Designer, and scripts to create custom experiences with generative AI.

    Complete connection for Google Bard Vertex AI.

    What to do next

    Use your LLM provider to create flows with Flow Designer, topics with Virtual Agent Designer, or scripts to provide the benefits of generative AI to your users.