Skip to main content

Overview

Quail’s Chat interface allows you to explore and analyze your data using natural language. Simply ask questions in plain English, and Quail will automatically generate SQL queries, execute them against your database, and present results in the most appropriate format—whether that’s a table, chart, or summary.

Getting Started

1

Open Chat

Click on Chat in the main navigation menu to access the chat interface.
2

Select Connection

Make sure you have at least one database connection set up. The chat will use your currently selected connection, which you can change from the dropdown at the top.
3

Ask a Question

Type your question in the chat input field at the bottom of the screen.
4

Send

Press Enter or click the Send button to submit your question.
The Chat interface works best when you have a clear understanding of your data structure. If you’re new to your database, explore the Schema Explorer first.

Asking Effective Questions

The quality of your results depends on how you phrase your questions. Here are examples organized by complexity:
Start with straightforward questions to explore your data:Counting and Totals:
  • “How many customers do we have?”
  • “What’s the total revenue this year?”
  • “How many orders were placed today?”
Basic Aggregations:
  • “What’s our average order value?”
  • “Show me the most expensive product”
  • “What’s the lowest price in our catalog?”
Recent Data:
  • “Show me sales for the last 30 days”
  • “What are today’s orders?”
  • “List new customers from this week”

Understanding Chat Responses

Quail provides comprehensive responses that help you understand both the query and the results.

Query Explanation

For each question, Quail shows you:

Generated SQL

The exact SQL query that was generated from your natural language question.

Plain English Explanation

A clear explanation of what the query does and how it answers your question.

Assumptions

Any assumptions made during query generation (e.g., date ranges, filters, or table joins).
Always review the generated SQL and assumptions to ensure the query matches your intent. You can ask for modifications if needed.

Results Display

Quail automatically chooses the best way to display your results:
Best for:
  • Detailed data exploration
  • Viewing individual records
  • Exporting data
Features:
  • Sortable columns
  • Pagination for large datasets
  • Copy individual cells
  • Export to CSV

Refining Your Results

If the initial results aren’t quite what you wanted, you can refine them through conversation:
1

Review Results

Look at the generated query, assumptions, and results to identify what needs adjustment.
2

Ask for Modifications

Send a follow-up message with your refinement:
  • “Can you add profit margin to that?”
  • “Show only the top 10 results”
  • “Group by month instead of week”
  • “Exclude cancelled orders”
3

Iterate

Continue refining until you get exactly what you need. Quail maintains context from previous messages in the conversation.

Examples of Refinements

Original question:
“Show me monthly sales”
Follow-up refinements:
  • “Make it a line chart instead”
  • “Add last year’s data for comparison”
  • “Show only the top 5 product categories”
  • “Break it down by region”
  • “Exclude returns and refunds”

Working with Charts

When Quail generates a chart in response to your question, you have several options:

Modifying Charts

1

Request Changes

Ask Quail to modify the chart:
  • “Change this to a bar chart”
  • “Make it a stacked area chart”
  • “Show percentages instead of absolute values”
  • “Change the colors”
2

Adjust Data

Modify the underlying data:
  • “Sort by highest to lowest”
  • “Show only the last 6 months”
  • “Add a trend line”

Saving Charts

When you create a chart you want to keep:
1

Click Save Chart

Click the Save Chart button that appears above the visualization.
2

Add Details

Provide:
  • Name: Descriptive name for the chart
  • Description: Optional details about what the chart shows
  • Tags: For organization
3

Choose Destination

Select where to save:
  • Standalone chart: Save to your charts library
  • Add to dashboard: Place directly on a dashboard
4

Save

Click Save to store your chart.

Exporting Data

Export chat results for use in other applications:

Export to CSV

Click Export CSV to download table data as a comma-separated values file.

Copy to Clipboard

Click Copy to copy the current results to your clipboard for pasting into spreadsheets.

Share Results

Click Share to generate a shareable link to the current chat and results.

Download Chart

For chart results, click Download to save as PNG or SVG.

Chat History and Sessions

Managing Conversations

Your chat sessions are automatically saved:
  • Recent chats: Access from the sidebar
  • Search conversations: Find previous questions and results
  • Continue sessions: Pick up where you left off
  • Delete chats: Remove conversations you no longer need

Starting a New Session

To start fresh:
  1. Click New Chat in the top right
  2. Previous context is cleared
  3. You can switch between active sessions from the sidebar

Tips for Better Results

Be Specific

Vague

“Show me sales”

Specific

“Show me daily sales for the past 30 days grouped by product category”

Include Context

Unclear

“What’s the average?”

Clear

“What’s the average order value for premium customers in Q1 2026?”

Use Follow-ups

Less Efficient

Starting a new conversation for each related question

More Efficient

Building on previous questions in the same conversation

Common Patterns

Exploring New Data

  1. “How many records are in the [table_name] table?”
  2. “Show me a sample of 10 rows from [table_name]”
  3. “What columns are in the [table_name] table?”
  4. “What’s the date range of data in [table_name]?”

Monitoring Metrics

  1. “What’s [metric] today compared to yesterday?”
  2. “Show me [metric] trend for the last 7 days”
  3. “What’s the month-to-date [metric]?”
  4. “How does this week’s [metric] compare to last week?”

Finding Issues

  1. “Show me orders with no customer information”
  2. “Find duplicate entries in [table_name]”
  3. “List products with no sales in the last 90 days”
  4. “Show me failed transactions from today”

Limitations and Best Practices

The Chat interface generates SQL queries based on your database schema. It works best when:
  • Your tables and columns have descriptive names
  • Your database has clear relationships defined
  • You ask questions about data that exists in your database

What Works Well

  • Analytical queries (aggregations, trends, comparisons)
  • Exploring data structure and content
  • Creating visualizations from query results
  • Iterative refinement of queries

What to Use SQL Editor For

  • Complex multi-step queries
  • Queries requiring custom functions or procedures
  • Fine-tuning query performance
  • Queries with very specific, complex joins
When you need more control, you can always copy the generated SQL from Chat and modify it in the SQL Editor.

Build docs developers (and LLMs) love