cs-icon.svg

Google Vertex

The Automation Hub Google Vertex connector uses Google Vertex’s Gemini API model which enables response generation for a given prompt within your automations.

Set up Google Vertex

Perform the following steps to set up the Google Vertex action connector:

  1. Click Configure Action Step from the left navigation panel.
  2. Click Action Step to configure third-party services.
  3. Within the Configure Action Step, click the Google Vertex connector.

    Note: You can sort and search the connector(s) based on the filter.

    Select_Connctor.png
  4. Under Choose an Action tab, select the Send Prompt action.
    Select_Action.png
  5. Click the + Add New Account button to add your Google Vertex account.
    Add_Account.png
  6. In the Authorize modal, provide details such as Title, and Service Account Key.
    To create a service account key, follow the steps below:
    1. Go to the Google Cloud Platform.
    2. Navigate to the IAM & Admin page. Select the Service Accounts section in the left navigation. You can use a pre-existing account or create a new Service Account to get the Service Account Key.
    3. Once done, provide the permission to access the Vertex API.
  7. Click the Authorize button.
    Authorize_Button.png
  8. In the Select Project dropdown, select a project to use the Vertex API.
  9. In the Prompt Text field, enter a text to generate a response. 
    Select_Fields.png
  10. Optionally, enable the Show Optional Fields toggle to view the optional fields.
  11. Enter the Number of Tokens to generate the content. This must be within the range of 1 to 8192.
  12. Enter a value for the Randomness of Responses of the generated content. 0 being the most precise and 1 being the most random content predictions. This must be within the range of 0 to 1.
    1. Optionally, enter the Top-K value to define how the model selects tokens for output. Entering a Top-K value of 1 implies that the next chosen token is the most likely among all tokens in the model's vocabulary. Top-K value of 3 means that the next token is selected from the three most probable tokens using temperature. This must be within the range of 1 to 40.
    2. Optionally, enter the Top-P value to define how the model selects tokens for output. For instance, if tokens A, B, and C have probabilities of 0.3, 0.2, and 0.1; then entering a Top-P value as 0.5, the model chooses either A or B as the next token using temperature and excludes C. This must be within the range of 0 to 1.
    3. Optionally, mark the Sanitize text checkbox to remove special characters or spaces from the chat response. By enabling this checkbox, any special characters or spaces in the chat response will be eliminated, resulting in a clean and compatible text.
      Show_Optional_Fields.png
  13. Click Proceed.
  14. Click the Test Action button to test the configured action.
    Test_Action.png
  15. Click Save and Exit.
    Save_and_Exit.png

This sets the Google Vertex action connector.

Was this article helpful?
^