# Ask Your Sales Data: Exact Answers & Charts

> Ask questions about your sales in plain English or French ("top 5 cities this quarter vs last year") and get exact numbers, tables, charts and dashboards from your CSV or Excel file. Computed by a local script, never guessed. 100% offline.

Ask Your Sales Data: Exact Answers & Charts is a free AI agent skill on Agensi by Youssef Hmidi, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Youssef Hmidi](https://www.agensi.io/creators/youssef-hmidi)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ask-your-sales-data-exact-answers-charts
- Tags: research, python, pandas, business-intelligence, data-analysis, sales-analytics, dashboard, csv

## About this skill

Ask your agent business questions about your sales and get answers you can trust. The AI reads your question; a local Python script computes the answer from your file. The AI never does the arithmetic, so every number is exact and repeatable.

### What you can ask
- **Rankings:** "top 10 products by margin", "worst 3 cities this quarter"
- **Breakdowns:** "revenue by category and customer type", "orders by channel"
- **Trends:** "monthly revenue in 2026", "weekly orders since September"
- **Comparisons:** "this quarter vs the same quarter last year", "October vs September"
- **Ratios:** "average order value by channel", "margin % by category"
- **Dashboards:** "tableau de bord 2026 pour Facebook et Instagram" (4–6 panels with the same filters on each)
- **Refinements in plain words:** "as a pie", "top 5 only", "by month instead", "en camembert"

### Why you can trust the numbers
- **No silent guesses:** ask for a city, product or column that isn't in your data and you get an error with the closest real values ("'Sfx' does not exist. Closest: Sfax"), never a quiet zero
- **Honest comparisons:** periods that run past your data are trimmed to equal lengths, and you're told
- **Percentage changes in points**, not as a "% of a %"
- **Correct ratios:** average order value and margin % are ratios of totals, not averages of row ratios

### Works with real-world files
CSV with comma or semicolon separators, comma decimals, Excel BOM and Windows encodings; dates like 2026-03-31, 31/03/2026 or 31.03.2026; Excel .xlsx; any currency. Column names and values match without regard to case or accents ("epicerie" finds "Épicerie").

### Private by design
No network calls, no API keys, no telemetry. Your sales data stays on your computer. Plain, commented Python with no eval and no obfuscation.

### What's included
SKILL.md with an answer format, the query engine, a reference with 9 tested English/French examples, a full example dashboard with charts, and 22 months of demo sales data.

### Limits
Needs Python 3.9+ and pandas (matplotlib for charts, openpyxl for Excel). Answers cover only the rows in your file; it doesn't forecast or explain causes. At most 2 breakdown columns plus time.

**Pairs well with:** Shop Inventory & Profit Analyst, for stock levels, reorder alerts and net profit.

## Requires

- Python 3.9+
- pandas
- Optional: matplotlib (charts)
- Optional: openpyxl (Excel files)

Fully offline: no network access, no API keys. Includes demo sales data, so you can try it with "run the ask-your-sales-data demo".

## Known limitations

No forecasting or root-cause analysis. Supports max 2 breakdown columns plus time. Requires Python 3.9+ and pandas. Charts require matplotlib.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Ask Your Sales Data: Exact Answers & Charts skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill ensure my sales figures are accurate and not 'hallucinated'?

The agent only interprets your question. A local Python script computes every number from your file, so results are exact and repeatable. If you ask about a column, city or product that isn't in your data, you get an error with the closest real values instead of a guess.

### What file formats and environments are required to use this skill?

Python 3.9+ and pandas. Optional: matplotlib for charts and openpyxl for Excel files. It reads CSV (comma or semicolon separators, comma decimals, common encodings) and Excel .xlsx. One row per sale or order line works best; the agent profiles your file first and maps your question onto its actual columns.

### What is included in this skill?

SKILL.md with step-by-step agent instructions and an answer format, the Python query engine (scripts/query.py), a reference with 9 tested English and French example questions, an example dashboard and comparison with charts, 22 months of demo sales data, a README and an MIT license.

### Can I query my data in languages other than English?

Yes. Ask in English or French. Column names and values are matched without regard to case or accents, so "epicerie" finds "Épicerie".

### Are there any types of analysis that this skill cannot perform?

While it provides exact historical reports and period-over-period comparisons, it does not perform predictive forecasting or 'why' analysis, such as guessing why a specific sales dip occurred.

### How do I get updates?

When the creator publishes a new version on Agensi, it appears in your library. The skill has no automatic network updates; it never connects to the internet.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
