Overview
Gemini for Data Analytics (Conversational Analytics API) enables natural language interactions with your data. Ask questions in plain English and get SQL queries, visualizations, and insights from BigQuery and Looker data sources. Key capabilities:- Natural language to SQL: “Show me sales by region” → automatic SQL generation
- Multi-datasource: Query BigQuery tables, Looker explores, and Looker Studio simultaneously
- Automatic visualization: Generate charts and graphs from query results
- Conversation memory: Follow-up questions maintain context
- Clarification prompts: Agent asks for clarification when needed
Gemini for Data Analytics is currently in Pre-GA. Provide feedback to [email protected]
Architecture
Quick Start
Enable APIs
Required APIs for your Google Cloud project:
Data Sources
BigQuery Tables
Looker Explores
Looker Studio
System Instructions
Provide context to improve answer quality:Basic Instruction
Advanced YAML Template
For complex schemas, use YAML format:Conversation Patterns
Stateful Conversations
Create conversations that maintain context:Handling Different Response Types
Streaming Responses
Inline Context (Stateless)
For one-off queries without creating agents:Advanced Options
Python Code Execution
Enable advanced analysis with Python:Custom Visualization Settings
Real-World Examples
Sales Analytics Agent
Multi-Datasource Analysis
Agent Management
Conversation Management
Best Practices
Provide Business Context
The more context you provide, the better the SQL generation:
- Define business terms in glossary
- Provide example queries for common patterns
- Explain relationships between tables
- Document sample values for enum fields
Leverage Conversations
Use stateful conversations for multi-turn analysis:
- Create conversation per analysis session
- Use follow-up questions to refine
- Delete conversations when done
Limitations
Resources
API Documentation
Complete API reference
HTTP API Example
REST API notebook
SDK Example
Python SDK notebook
Provide Feedback
Share your experience
Next Steps
Agent Engine
Deploy production agents
BigQuery
Learn about BigQuery
Looker
Looker documentation
Vertex AI
Explore Vertex AI