Skip to content
Google Vertex AI

How to use Google Vertex AI

Artificial intelligenceCost: 1 credit + 2 per runTop 100 · #78Full guide

What it is for

Google Vertex AI in flooows gives you access to Gemini models for text generation and Imagen for image creation, using your own Google Cloud project. Use it to summarize documents, classify messages, extract data or generate product images inside your flows.

This component has no triggers: it is used as an action inside flows started by other triggers, such as a new email or a form.

Set up the connection

Authentication type: Custom credentials

  1. 1In Google Cloud console create or pick a project and enable the Vertex AI API under APIs & Services.
  2. 2Under IAM & Admin > Service Accounts create a service account and give it the Vertex AI User role.
  3. 3Open the account, go to the Keys tab and add a new JSON key; the file downloads.
  4. 4In flooows click "Connect" and paste the entire file content into Service Account JSON.
  5. 5Save the connection.
Connection fieldTypeRequired
Service Account JSONLong textYes

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Generate Content: choose a Location (for example europe-west1) and Model; put instructions in System Message and map the text to process into User Message.
  • You can add Files, Image URLs or a YouTube URL for multimodal analysis.
  • Tune Temperature (lower for precise answers), Max Output Tokens and Thinking Level for the task.
  • Generate Image creates images with an Imagen model from a Prompt and its Model Configurations.

Tips

  • •Pick a European region in Location if you want processing to happen in Europe.
  • •Ask for a JSON answer in the System Message so later steps can use it easily.
  • •flooows can anonymize confidential data before it is sent to the model.

Actions (3)

Operations available as flow steps. Expand each one to see its fields.

Generate Content12 fields
FieldTypeRequired
LocationList (from your account)Yes
ModelList (from your account)Yes
System MessageLong textNo
User MessageLong textYes
FilesList of valuesNo
YouTube URLTextNo
Image URLsList of valuesNo
TemperatureNumberNo
Max Output TokensNumberNo
Thinking LevelFixed listNo
Thinking Budget (tokens)NumberNo
Include Thoughts in ResponseYes / NoNo
Generate Image4 fields
FieldTypeRequired
LocationList (from your account)Yes
ModelList (from your account)Yes
PromptLong textYes
Model ConfigurationsDynamic fieldsYes
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

Permission denied (403)

Grant the Vertex AI User role to the service account and confirm the API is enabled.

Model not available in the region

Change Location to a region where the model is offered.

Quota exceeded (429)

Add retries or a Delay, or request more quota in Google Cloud.

Invalid credentials JSON

Paste the whole file, including the opening and closing braces.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps