# Ask your data demo

> Ask sales questions and a dashboard draws the answers from what the agent’s functions return.

Pattern: Dashboard copilot. Brand: Northwind Analytics. Tags: UI-less client, built-in charts, page tools, situational awareness, functions.

## What it shows

- **Functions**: two pure functions answering questions from a literal demo dataset: group, filter and total, with no database
- The agent's built-in `render_chart`, `show_table` and `show_ui` output drawn in the dashboard's main panel, in the page's own style
- Page tools that move the date range and filters (`set_date_range`, `set_dashboard_filter`) and pin a chart (`pin_insight`)
- Situational awareness sending the range, filters and the KPIs on screen with every turn

## Files

- `demos/ask-your-data/demo.json`
- `demos/ask-your-data/functions/ask-your-data-query-sales.json`
- `src/demos/ask-your-data/index.tsx`
- `src/demos/ask-your-data/insights.ts`
- `src/demos/ask-your-data/pageTools.ts`

## More

- [Source](https://docs.mindset.ai/demos/ask-your-data/source)
- [How it works](https://docs.mindset.ai/demos/ask-your-data/how)
- [The UI-less client](https://docs.mindset.ai/docs/the-ui-less-client)
- [Events reference](https://docs.mindset.ai/docs/events-reference)
- [Add a function](https://docs.mindset.ai/docs/build-a-function)
- [Put an agent on your page](https://docs.mindset.ai/docs/put-an-agent-on-your-page)
- [Test behavior](https://docs.mindset.ai/docs/test-an-agents-behavior)
