cd /news/ai-agents/a-telegram-bot-that-sends-the-weekly… · home › topics › ai-agents › article
[ARTICLE · art-179456] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

A Telegram bot that sends the weekly sales report every Monday

A developer documented a three-step workflow that uses Claude Code skills to clean a sales spreadsheet, generate a formula-driven Excel report and dashboard, and then hands the weekly numbers to nanobot, a free open-source agent, which delivers them to Telegram every Monday and answers questions about the file. The setup splits roles because the author did not verify that nanobot accepts the Claude skill format, and it includes a self-audit step where Claude Code checks row counts, gaps and totals before the report goes to a client.

recommendation

Split agent roles by verified capability: let Claude Code build and audit the report, and use nanobot only for scheduled delivery and Q&A when skill-format compatibility is unconfirmed.

more in playbook: Designing agent systems
by read6 min views9 publishedDec 1, 2026

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?".

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.

A skill is a folder with a SKILL.md that tells Claude how to do one job. Three are used here:

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.

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.

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.

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
python
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.

nanobot not found.nanobot gateway status, then nanobot gateway logs. Create the automation from the chat where the reply should go.### in the dashboard. Data and access:

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

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.

── more in #ai-agents 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/a-telegram-bot-that-…] indexed:0 read:6min 2026-12-01 · —