Gemini
Use an approved Gemini model for selected conversation and reasoning steps.
Description
AIM AI can be configured to send approved call context to Gemini and return a response to the workflow. Model choice, prompts, retention, and permitted data are agreed before implementation.
Authentication
- A Google AI or Gemini API credential is required.
- Exact model access and approved actions are confirmed during workflow scoping.
Supported Actions (2)
These are the operations this integration can perform after the required credentials and permissions are approved.
- List available Gemini models
- Execute chat completions with Gemini models
Available Models
- Latest
- gemini-2.0-flash
- gemini-2.0-pro
- gemini-2.0-flash-8b
- Previous
- gemini-1.5-flash
- gemini-1.5-pro
- gemini-1.5-flash-8b
Examples
Use these representative payloads as a technical starting point, then replace the sample values with the approved workflow data.
Representative workflow configuration for Gemini - List Models.
{
"automationType": "ai_chat",
"nodeId": "ai-node-001",
"nodeParams": {
"action": "listModels",
"params": {
"provider": "gemini"
}
}
}Representative workflow configuration for Gemini - Chat Completion (Gemini 2.0 Flash).
{
"automationType": "ai_chat",
"nodeId": "ai-node-006",
"nodeParams": {
"action": "chat",
"params": {
"provider": "gemini",
"model": "gemini-2.0-flash",
"apiKey": "YOUR_GEMINI_API_KEY",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "List 3 fun weekend activities."
}
],
"temperature": 0.2,
"maxTokens": 64
}
}
}Representative workflow configuration for Gemini - Chat Completion (Gemini 2.0 Pro).
{
"automationType": "ai_chat",
"nodeId": "ai-node-gemini-pro-001",
"nodeParams": {
"action": "chat",
"params": {
"provider": "gemini",
"model": "gemini-2.0-pro",
"apiKey": "YOUR_GEMINI_API_KEY",
"messages": [
{
"role": "system",
"content": "You are an expert in software architecture."
},
{
"role": "user",
"content": "Explain microservices architecture and its benefits."
}
],
"temperature": 0.7,
"maxTokens": 800
}
}
}Representative workflow configuration for Gemini - Chat Completion (Gemini 2.0 Flash 8B).
{
"automationType": "ai_chat",
"nodeId": "ai-node-gemini-flash8b-001",
"nodeParams": {
"action": "chat",
"params": {
"provider": "gemini",
"model": "gemini-2.0-flash-8b",
"apiKey": "YOUR_GEMINI_API_KEY",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
],
"temperature": 0.1,
"maxTokens": 50
}
}
}Representative workflow configuration for Gemini - Chat Completion (Gemini 1.5 Pro).
{
"automationType": "ai_chat",
"nodeId": "ai-node-gemini-15-pro-001",
"nodeParams": {
"action": "chat",
"params": {
"provider": "gemini",
"model": "gemini-1.5-pro",
"apiKey": "YOUR_GEMINI_API_KEY",
"messages": [
{
"role": "user",
"content": "Write a short story about a robot learning to paint."
}
],
"temperature": 0.8,
"maxTokens": 500
}
}
}Representative workflow configuration for Gemini - Chat Completion (Gemini 1.5 Flash).
{
"automationType": "ai_chat",
"nodeId": "ai-node-gemini-15-flash-001",
"nodeParams": {
"action": "chat",
"params": {
"provider": "gemini",
"model": "gemini-1.5-flash",
"apiKey": "YOUR_GEMINI_API_KEY",
"messages": [
{
"role": "system",
"content": "You are a helpful coding assistant."
},
{
"role": "user",
"content": "Write a Python function to calculate factorial."
}
],
"temperature": 0.3,
"maxTokens": 200
}
}
}