How to set up Google Gemini
Authentication
Google Gemini uses API key authentication:- Go to Google AI Studio
- Sign in with your Google account
- Create an API key
- Copy the API key and paste it in Cargo when connecting
Google Gemini actions
Instruct
Generate text responses using Google’s Gemini models. Required fields:- Model: Select the Gemini model
- Prompt: Your instruction or question
Advanced settings:
- System prompt: Set context for the model’s behavior
- Maximum output tokens: Limit response length
- Temperature: Control randomness (0-2, default 1)
- With Google Search: Enable real-time information retrieval
- Text: Plain text response
- JSON object: Unstructured JSON output
- JSON schema: Structured output matching your schema
Use cases
- Lead qualification: Analyze lead data and provide scoring insights
- Email generation: Create personalized outreach at scale
- Data parsing: Extract structured data from unstructured sources
- Translation: Translate content for international campaigns
- Summarization: Condense long documents or conversations
Credits and pricing
Costs vary by model (per 1,000 tokens):Rate limits
Best practices
- Use Flash models for simple, high-volume tasks
- Use Pro models for complex reasoning and analysis
- Enable Google Search for questions requiring current information
- Define JSON schemas for consistent, structured outputs
- Adjust temperature based on task (lower for factual, higher for creative)
- Leverage the large context windows for processing lengthy documents

