packages/pieces/community/google-vertexai/README.md
Integrate your automation workflows with Google Vertex AI to leverage powerful AI models including Gemini and other advanced language models.
The Google Vertex AI piece enables you to:
This piece uses Service Account Authentication for secure access to Google Vertex AI APIs.
Create a Google Cloud Project
Enable Vertex AI API
Create a Service Account
Create and Download Service Account Key
Add the Key to Activepieces
Generate responses using Google Vertex AI's Gemini model.
Parameters:
us-central1) - Google Cloud region where your Vertex AI resources are locatedgemini-2.5-flash) - The Vertex AI model to use (e.g., gemini-pro, gemini-2.5-flash)Example Output:
{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{
"text": "The model's response here..."
}
]
}
}
]
}
Make custom authenticated requests directly to the Vertex AI API for advanced use cases.
Parameters:
https://aiplatform.googleapis.com/v1/projects/...)Example:
POSThttps://aiplatform.googleapis.com/v1/projects/{projectId}/locations/us-central1/publishers/google/models/gemini-2.5-flash:generateContentCommon Gemini models available on Vertex AI:
gemini-2.5-flash - Fast, cost-efficient model with thinking supportgemini-2.5-pro - Most capable model for complex reasoning tasksgemini-2.0-flash - Balanced speed and capabilitygemini-1.5-flash - Fast and versatilegemini-1.5-pro - Best performing 1.5 generation modelFor the full list of available models, check the Vertex AI documentation.
Use the Generate Content action with a detailed prompt to automatically create blog posts based on a topic.
Provide customer queries to Gemini for intelligent response suggestions.
Use the Generate Content action with code-related prompts to generate code snippets.
Send data to Vertex AI for analysis and insights.
Use the Raw API Request action for advanced Vertex AI features not covered by the basic actions.
Common errors and solutions: