> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# AI summary visualization

> Generate a summary of the current query's results with the AI summary visualization type.

<img src="https://mintcdn.com/omni-e7402367/LV2c4CXjbFMv1AXp/images/docs/visualization-and-dashboards/visualization-types/assets/images/ai-summary-plain-83c641389c0ef6060eedea9d31918361.png?fit=max&auto=format&n=LV2c4CXjbFMv1AXp&q=85&s=230b3cfc336db6c260ac681a7c3573be" alt="" width="675" height="446" data-path="images/docs/visualization-and-dashboards/visualization-types/assets/images/ai-summary-plain-83c641389c0ef6060eedea9d31918361.png" />

## Requirements

To use this visualization type, you'll need:

* A query built on [topic data](/modeling/topics)
* To have the **AI Visualization Summary** setting enabled in **Settings > AI**. This is enabled by default.

## Building the query

To get the best results in the summary, keep the following in mind when building the underlying query:

* **Avoid pivoting or swapping rows/columns in the query**. This significantly reduces the context window, leaving little available for the actual data.
* **Include calculations and totals in the query if you want the summary to reference them.** This approach will provide better results over relying on the AI for calculations in the summary itself.

## Adding context

You can provide additional context in the chart's **Options** to guide the AI in generating the summary.

### Example: Specific audience and content

This example was given this context: `Explain it to me like I am a ceo and give me 3 followup questions`

<img src="https://mintcdn.com/omni-e7402367/LV2c4CXjbFMv1AXp/images/docs/visualization-and-dashboards/visualization-types/assets/images/ai-summary-audience-883199fa04cf21613dcd6797f09b9c93.png?fit=max&auto=format&n=LV2c4CXjbFMv1AXp&q=85&s=11d2e6ddaaf5e56603241727ec531d2c" alt="Test?" width="668" height="487" data-path="images/docs/visualization-and-dashboards/visualization-types/assets/images/ai-summary-audience-883199fa04cf21613dcd6797f09b9c93.png" />

### Example: Specific tone

You can provide context to the AI that specifies the tone of the summary. For example, `Explain it to me like I am 5 in a pirate voice`

<img src="https://mintcdn.com/omni-e7402367/LV2c4CXjbFMv1AXp/images/docs/visualization-and-dashboards/visualization-types/assets/images/ai-summary-simple-5bf0064807768dcae27e48c9310f123f.png?fit=max&auto=format&n=LV2c4CXjbFMv1AXp&q=85&s=5f1fb288c4d3b3812d28b2fb038f44ff" alt="Test?" width="670" height="269" data-path="images/docs/visualization-and-dashboards/visualization-types/assets/images/ai-summary-simple-5bf0064807768dcae27e48c9310f123f.png" />
