Plenty of small teams still get their sales numbers when someone has time to assemble the report by hand, usually Friday evening.
This is a three-step setup that replaces that. Claude Code cleans a sales spreadsheet and builds an Excel report plus a dashboard. nanobot, a free open-source agent, sends the week's numbers to Telegram every Monday and answers questions like "how much did we sell in October?".
What you need
- Claude Code (a paid Claude plan)
- An API key from any model provider for nanobot. The program is free, the model is billed by usage.
- Python 3.11 or newer
- A computer that is switched on on Monday morning
- A sales export in Excel or CSV
No real data yet? Ask Claude Code: "Create a made-up sales export for 12 months, 300 rows: date, manager, product, region, amount". Strip buyer names and phone numbers from real exports.
Step 1: install the skills
A skill is a folder with a SKILL.md that tells Claude how to do one job. Three are used here:
- analyze answers data questions, from a quick lookup to a formal report. Before answering it checks the row count, empty values, order of magnitude and whether totals add up.
- data-analyst takes a raw table through cleaning, formulas and charts. Output: an Excel file with the cleaned data on sheet 1 and a formula-driven summary on sheet 2.
- officecli-data-dashboard builds an Excel dashboard with figure cards, charts and highlighting. It needs a separate program,
officecli. The skill has an install command in its Setup section.
Open Claude Code and paste this with your own links:
I am giving you links to folders with skills for Claude Code: 1. [link to analyze] 2. [link to data-analyst] 3. [link to officecli-data-dashboard] For each link: download only that folder, not the whole repository; read SKILL.md and briefly say what the skill does and which programs it needs; put the folder into ~/.claude/skills/<folder name>/. Do not run anything and do not install anything beyond this until I say "yes". At the end, show the list of installed skills and the list of programs they ask me to install. officecli is an installer from the internet, so ask to see its install command and the download address before you say "yes". Read scripts inside third-party skills before running them. If a skill is not picked up, restart Claude Code.
Step 2: build the report
Use the data-analyst skill. The client's sales file: [path to the file]. First look at the data: what is in the columns, how many rows, where there are empty cells, duplicates and different date or amount formats. Ask me if anything is unclear. Then build an Excel file report.xlsx: a "Data" sheet with the cleaned table and a list of what you excluded; a "Summary" sheet with sales by week and by month, comparison with the previous period, the top 5 products and managers, all with formulas rather than typed-in numbers; charts: a line by week and columns by product. In the reply give 3-5 conclusions: what is visible, the figure, a possible reason. If there is too little data for a conclusion, say so. Claude Code asks clarifying questions, then report.xlsx appears. If it asks to install a Python library or a free program for recalculating formulas, that is normal. Look at what exactly it installs.
Then have it audit its own output:
Use the analyze skill. Check report.xlsx before it goes to the client: the number of rows in "Data" and in the source file, empty values, the order of magnitude, whether there are gaps between weeks, whether the totals by parts add up to the overall total. Write what you checked and what raises doubts. Still verify two or three figures yourself: filter the source in Excel and compare a month's sum. Then the dashboard:
Use the officecli-data-dashboard skill. Take the data from the "Data" sheet of report.xlsx and build a separate file dashboard.xlsx. The first sheet is Dashboard: cards [sales for the week, for the month, change against the previous period], two charts, declines highlighted in red. All figures are formulas. At the end, check that there are no ### marks or errors anywhere. Per the skill's description, dashboard size adapts to the row count: a small table gets one or two cards and one chart.
Step 3: the Monday bot
nanobot runs on your computer or a modest server and talks through a browser, a terminal or Telegram. It reads Word, Excel and PDF files and can run on a schedule. We did not check whether it accepts the Claude skill format, so the roles are split: Claude Code builds the report, nanobot sends it and answers questions about the file.
Install.
python -m pip install nanobot-ai nanobot webui If pip says "externally-managed-environment", use uv tool install nanobot-ai. After a pip install nanobot stops together with the terminal. To keep it running:
nanobot gateway --background Model. In the web UI: Settings, Models, New preset. Pick the provider, add the API key, set the model, save. Send "Hello!" in the chat. A normal reply means it works. A local model through Ollama also works.
Telegram. In Telegram message @botfather, send /newbot, answer the questions and copy the token. In nanobot open Channels, then Telegram, paste the token, save and enable. Leave the allowed-senders list empty. Write "Hi" to your bot. It replies with a pairing code. Enter the code in the nanobot window and confirm. If Telegram is blocked for you, set a proxy in Settings, Advanced, Shared proxy, and turn on Use proxy in the Telegram settings.
Files. Put report.xlsx and the fresh export into ~/.nanobot/workspace/. In Telegram ask: "Which files do you see in your working folder?" Move on when it names both.
Schedule. Create the automation in the Telegram chat where the reports should arrive:
Every Monday at 9:00 in my time zone, open the file report.xlsx in the working folder and send a short report for the previous week here: sales, comparison with the week before, the top 3 products, what dropped. No more than five lines. Do not invent figures: if something is not in the file, say so. Do not wait for Monday. Ask "send the report right now", then ask "how much did we sell in October?" and compare with Excel.
Optional: ask a table questions in plain words
PandasAI answers questions over a table and can draw charts. It needs Python 3.8 to 3.11 and a model key.
pip install pandasai pandasai-litellm import pandasai as pai from pandasai_litellm.litellm import LiteLLM llm = LiteLLM(model="gpt-4.1-mini", api_key="YOUR_OPENAI_API_KEY") pai.config.set({"llm": llm}) df = pai.read_csv("sales.csv") print(df.chat("What is the average revenue by region?")) Swap in your own model and key. The library runs code the model writes, so its description includes a Docker sandbox mode. Never leave the key in a file you hand to someone.
Where it breaks
- Missed reports. Per the nanobot docs, if the program was off on Monday, the report does not arrive later.
- Stale data. Someone has to drop the fresh export into the folder. That is a separate automation.
-
nanobotnot found. Reopen the terminal, or ask Claude Code to find the install location. - No report arrived. Check
nanobot gateway status, thennanobot gateway logs. Create the automation from the chat where the reply should go. - Empty formula cells. Ask Claude Code to recalculate and save.
-
###in the dashboard. The column is too narrow. Ask to widen it.
Data and access:
- The data goes to the model provider: Anthropic via Claude Code, and whoever's key you put in nanobot. Get the data owner's consent.
- The agent makes mistakes. Check the first reports by hand, especially the answers to questions.
- Keep the bot on pairing codes. Do not open it to everyone, since a profit report should not be readable by a stranger.
- Never paste the bot token or model key into a chat.
Result
report.xlsx, dashboard.xlsx, and a Telegram bot that posts a five-line weekly summary on Monday at 9:00 and answers questions about the file.
The full walkthrough with all prompts is on our blog: Monday sales report bot with Claude Code and nanobot
Your turn
Generate the made-up 300-row export, run step 2, then do step 3 up to the schedule. Use "send the report right now" and check one figure against Excel. Today is enough for all of it.
This article was written with the help of AI and fact-checked by the AI SKILLS team.
