GluonDB Agent
GluonDB Agent is an AI-powered assistant that enables natural language interactions with your data. It can analyze datasets, generate visualizations, create dashboards, and execute SQL queries through conversational requests.
What the Agent Can Do
The GluonDB Agent is designed to help users interact with their data through natural language. The agent can:
Data Analysis
- Execute SQL queries: Run queries against connected datasources (PostgreSQL, DuckDB, MySQL)
- Explore data: Inspect table schemas, column types, and relationships
- Statistical analysis: Generate descriptive statistics, identify patterns and trends
- Data summarization: Create concise summaries of large datasets
Visualizations
- Generate interactive charts: Create bar, line, pie, scatter, area, and other chart types
- Custom styling: Apply dark mode themes with professional color palettes
- Multiple libraries: Support for Chart.js, D3.js, Plotly.js, and ApexCharts
Dashboards
- Multi-component layouts: Combine KPIs, charts, and tables in unified views
- Automatic file generation: Save dashboards as standalone HTML files
- Responsive design: Generate layouts that adapt to different screen sizes
File Operations
- View and edit files: Read, create, and modify project files
- Navigate file structure: Explore project directories
- Generate reports: Create HTML files with analysis results
Memory and Context
- Session continuity: Maintain conversation context within a session
- Long-term memory: Remember user preferences and important facts across sessions
- Query history: Track executed queries for reference and dashboard generation
How to Use
Starting a Conversation
Open the chat interface and type your request in natural language. The agent understands context from previous messages, so you can build on prior interactions.
Example requests:
Show me the schema of the users table
Create a bar chart showing sales by region
Analyze the distribution of customer ages and identify any outliers
Generate a dashboard with monthly revenue trends and top products
Query Execution
To run SQL queries, simply describe what data you need:
Get the top 10 customers by total purchases
The agent will:
- Identify the appropriate datasource
- Generate and execute the SQL query
- Return the results with relevant insights
Run this query: SELECT category, COUNT(*) FROM products GROUP BY category
Creating Visualizations
Request charts by describing what you want to see:
Create a line chart showing monthly sales for 2024
Generate a pie chart of market share by product category
The agent will:
- Fetch the required data
- Generate the appropriate chart configuration
- Create an interactive HTML visualization
- Save the file and display it in the chat
Building Dashboards
For comprehensive views, request a dashboard:
Create a sales dashboard with revenue KPIs, monthly trends, and top performers
The agent will generate a complete HTML dashboard with multiple components arranged in a professional layout.
Reviewing History
You can ask about previous queries in your session:
What queries have I run in this session?
Show me the last 5 queries for the PostgreSQL database
Scope and Capabilities
Supported Datasources
| Datasource | Status | Notes |
|---|---|---|
| PostgreSQL | Supported | Full schema inspection and queries |
| DuckDB | Supported | In-browser execution for local files |
| MySQL | Coming soon | Requires configured connection |
| CSV, JSON, Excel | Supported | Via DuckDB import |
Supported Chart Types
- Line charts
- Bar charts (horizontal and vertical)
- Pie and donut charts
- Scatter plots
- Area charts
- Combo charts
- Gauge charts
- Heatmaps
Limitations
While the agent is capable of many tasks, there are some limitations to be aware of:
Data Processing
- Result set limits: Large queries may be truncated to prevent memory issues (default: 1000 rows)
- Complex joins: Very complex multi-table joins may require manual SQL refinement
- Real-time data: The agent queries data at request time; it does not maintain live connections
Visualization
- Custom styling: While the agent follows a design system, highly specific styling requests may need manual adjustment
- Complex interactivity: Advanced interactive features (linked charts, custom tooltips) may have limited support
- Export formats: Charts are generated as HTML; direct PNG/PDF export is not currently supported
Analysis
- Statistical depth: Advanced statistical tests (regression, hypothesis testing) have limited support
- Machine learning: The agent does not perform ML model training or prediction
- Large datasets: Analysis is optimized for datasets that fit in memory
General
- Language: The agent works best with English prompts, though it may understand other languages
- Ambiguous requests: Vague or incomplete requests may require clarification
- Schema knowledge: The agent must query the datasource to understand table structures; it does not have pre-existing schema knowledge
Best Practices
To get the best results from GluonDB Agent:
Be Specific
Clear, specific questions yield better results:
| Instead of | Try |
|---|---|
| "Show me some data" | "Show the top 10 products by revenue" |
| "Make a chart" | "Create a bar chart of monthly sales for Q4 2024" |
| "Analyze this" | "Analyze the age distribution of customers in the US" |
Provide Context
Reference specific tables, columns, or previous results when relevant:
Using the orders table, show me the average order value by customer segment
Based on the previous query, create a chart showing the trend over time
Iterate with Follow-ups
Build on previous responses to refine your analysis:
Now filter that to only show the top 5 categories
Add a trend line to the previous chart
Use Datasource Information
When working with new databases, start by exploring the schema:
What tables are available in the database?
Show me the columns in the orders table
Verify Results
For important analysis, verify the underlying queries:
What SQL query did you use for that chart?
Show me the raw data behind this visualization
Troubleshooting
Common Issues
"Tool timed out"
The query or operation took longer than expected. Try:
- Adding more specific filters to reduce data volume
- Breaking complex operations into smaller steps
The query executed but returned no results. Verify:
- Table and column names are correct
- Filter conditions match existing data
The specified datasource was not found. Use:
What datasources are available?
Empty or incomplete charts
The visualization may have insufficient data. Try:
- Verifying the underlying query returns data
- Specifying explicit column mappings
Getting Help
If you encounter issues:
- Rephrase your request: Try a more specific or differently worded prompt
- Check the schema: Ensure you are referencing correct table and column names
- Break it down: Divide complex requests into simpler steps
- Ask for clarification: Request the agent explain what went wrong
Related Resources
- Getting Started - How to connect your database to the agent
- gluonDB SDK - How to build custom dashboards and visualizations