Your First Query

A user typing a natural language query into the chat interface, and a chart being generated automatically on the dashboard.

Greppilot allows you to query your connected data sources using natural language. The AI agent interprets your requests, generates SQL queries, and visualizes the results on your dashboard.

To perform your first query, ensure you have at least one integration connected and active. Supported database integration types include PostgreSQL, MySQL, MSSQL, and ClickHouse.

Querying your Data

Interact with Greppilot through the chat interface. Your input will be processed by the AI agent, which leverages available tools to fulfill your request.

Show me the total sales by month for the last year.

When providing a manual SQL query, the agent will attempt to execute it against your primary or most relevant connected database integration. If you have multiple database integrations, you can specify the target connector explicitly, e.g., (connector: "mysql") SELECT ....

How it Works

Upon receiving your query, the AI agent performs the following steps:

  1. Tool Selection: The agent evaluates your request and selects the most appropriate action. For data visualization, this typically means creating a new chart or table.
  2. SQL Generation: For natural language queries, the agent generates optimal SQL based on your connected database schemas. For manual SQL, it directly uses your provided query.
  3. Execution: The generated SQL is executed against your connected data source.
  4. Visualization: The results are rendered as a suitable chart (e.g., a line-chart for time series, a bar-chart for categorical data, or a table for raw data).

When creating a chart, the agent uses the following key parameters:

ParameterTypeDescription
componentTypestringThe type of visualization to create (e.g., "bar-chart", "line-chart", "table", "kpi-card", "markdown-card").
configobjectConfiguration for the component, such as title, xAxis, yAxis, labelKey, valueKey, or syntax for diagrams.
dataarrayThe array of result rows from the executed query. This field MUST NOT be empty for data components.
queryobjectMetadata about the query, including connector (e.g., "postgres", "mysql", "csv", "none"), sql, and naturalLanguage.

The agent will respond with the generated chart directly on your dashboard, and a conversational summary in the chat interface. You can then further refine the chart, ask follow-up questions, or request additional analyses.