Using the AI Assistant
Ask a question
Type a question in natural language. For example:
- “What were our top 10 products by revenue last month?”
- “Show me daily order count for the past 30 days”
- “Compare this quarter’s sales to last quarter”
- “What’s the average order value by customer segment?”
Review the results
The assistant generates a SQL query, executes it against your connected data source, and displays the results as a chart or table. You can see:
- The generated SQL query
- A visualization of the results
- The raw data in table format
Model selection
The AI Assistant can use different models depending on your preference and available API keys:| Provider | Models |
|---|---|
| Anthropic | Claude Sonnet 4.6, Claude Haiku 4.5, Claude Opus 4.6 |
| OpenRouter | GPT-4o, GPT-4.1, Gemini 2.5 Flash/Pro, Llama 4, DeepSeek V3 |
| AWS Bedrock | Claude Sonnet 4.6, Claude Haiku 4.5 |
How it works
- Your natural language question is sent to the selected AI model
- The model generates a SQL query based on your database schema
- The query is executed against your connected data source (read-only)
- Results are returned and automatically visualized as the most appropriate chart type
- You can modify the chart type, formatting, or query as needed
Tips for better results
- Be specific — “Revenue by product category for Q1 2025” is better than “show me revenue”
- Mention time ranges — The assistant handles dates well when you specify them
- Reference table names — If you know your schema, mention specific tables for more accurate queries
- Iterate — Follow up with refinements like “break that down by month” or “add a filter for orders over $100”
The AI Assistant only executes read-only queries. It cannot modify your data.