Stock Agent for Sellers: InvenTree, Claude Code and nanobot — What to Build and Sell

A setup that sends a seller a Telegram message every morning: what is running out, what to reorder, what to clear out. Three install steps with ready prompts, a line to use with the client and the limits of what the agent may do.
A seller rarely has just one problem: the best-selling item runs out while something that does not sell sits on the shelf for months. The money is frozen, and the owner has no time to work out what to reorder and when. Below is a setup of four tools that sends three lists to Telegram every morning: what is about to run out, what to reorder now, and what is just sitting there. Here is how to build it in three steps, how to sell it, and where the line is between what an agent can do and what a person must decide.
In short, if you are in a hurry
What the client gets. A Telegram message every morning: what is running low, what to reorder, what to clear out. Plus an Excel dashboard with stock and the reorder point for every item.
What it is made of. An Excel export of stock and sales (or stock tracking in InvenTree, if the client has none), an inventory planning skill, an Excel dashboard skill and the nanobot agent that writes to Telegram on a schedule. The projects themselves are free. You pay for a Claude subscription for Claude Code and for requests to the model you connect to nanobot.
How it is priced. Clients pay for a removed problem, not for tools: money no longer frozen in goods that do not sell. Treat any figure as the market's, not as a promise of income.
The main limit. The agent calculates and suggests, but never places an order. A forecast is only as good as the export behind it, and the purchase decision stays with the owner.
Who to sell it to
Marketplace sellers and small shops with their own stock. Their pain is the same everywhere: what sells is missing, and what does not sell piles up. For a first client I would start with people you already know and with Telegram chats where sellers look for contractors, and I would skip freelance exchanges for the first order: at the start you compete on price there. According to data from our webinar, about 20 outreach attempts bring 5–7 replies, 2–3 calls and one client.
If naming a price feels scary, you can do the first job in exchange for a review. That becomes your portfolio.
This has been done at BSI (online retail): slow-moving stock dropped by 50 %, saving $1 million on storing excess. That is a large company, and your client's numbers will differ.
What is in the setup
| Tool | What for | Card |
|---|---|---|
| InvenTree | stock tracking, if the client has none | open |
| inventory-demand-planning | skill: works out when to reorder (adv.) | open |
| officecli-data-dashboard | skill: builds an Excel dashboard (adv.) | open |
| nanobot | an agent that writes to Telegram on a schedule | open |
For Open Source projects the description is visible to everyone, while the repository link in the card needs the Creator plan; the same goes for advanced skills ("adv." in the table). If you came from our Instagram reel, the bot has already sent you the links.
A skill is a folder of instructions that Claude Code reads before working. Claude Code is an AI agent that runs on your computer and executes commands itself, asking for permission; it needs a paid Claude subscription. It is convenient to hand the installation to it as well.
Step 1. Data: an export or InvenTree
Ask the client for an Excel file: stock for every item and sales for the last few months, at least by week. You need the name or SKU, the stock level, the date and quantity of sales; the purchase price is optional. The agent does not need buyers' names or addresses, so ask the client to remove those columns. The longer the history, the more reliable the forecast: the seasonal methods in the skill rely on a yearly cycle.
If there is no stock tracking, install InvenTree, a free open-source warehouse program (MIT license). It runs through Docker, a program that launches ready-made applications with one command (on Windows and Mac it is Docker Desktop). Open Claude Code in an empty InvenTree folder and paste:
```
Install InvenTree with Docker Compose following the official "Docker Production Server" guide. You need three files: docker-compose.yml, .env and Caddyfile from the contrib/container directory of the project repository: [repository link from the project card].
In .env set the data folder (INVENTREE_EXT_VOLUME), the database user and a long password (INVENTREE_DB_USER, INVENTREE_DB_PASSWORD) and the administrator (INVENTREE_ADMIN_USER, INVENTREE_ADMIN_PASSWORD, INVENTREE_ADMIN_EMAIL).
Run in order: docker compose run --rm inventree-server invoke update, then docker compose up -d. Check that the login page opens at the address inventree.localhost. After the first login, delete the administrator lines from .env. Do not print passwords in the chat. If Docker is not installed, tell me how to install it, and do not install anything without my "yes".
```
Open inventree.localhost in your browser and sign in. Then, in the interface:
- Add your items (Parts). For each one set the "Minimum Stock": when the stock falls below it, the program flags the item as low on stock by itself.
- Add stock (Stock Items) with quantity and storage location.
- Many items? Upload the list from Excel or CSV via Admin Center → Import data. Make a backup of the database before a bulk upload: an import cannot be undone.
- To get data back out, use the Download button in any table and choose the Excel format.
The address inventree.localhost opens only on the computer where the program is installed. For a client, it is installed on a server and the address is changed in .env (the INVENTREE_SITE_URL setting).
Step 2. The skill works out when to reorder
Put the export in a folder called Warehouse and open Claude Code in it. Install the skill (take the link from the card or from the bot's message):
```
Install the skill from this link: [skill link].
A skill is a folder with a SKILL.md file and possibly other files: copy it whole into the Claude Code personal skills folder (~/.claude/skills/). Before installing, read SKILL.md and tell me what the skill does and whether it runs commands. Do not install anything else without my "yes".
```
The skill is written for a chain of stores (the text describes retail with 40–200 locations), so in the task we ask it to take only what fits your scale:
```
Use the inventory-demand-planning skill. The Warehouse folder has a file [file name].xlsx with stock and sales. This is a [marketplace seller / shop], [N] items, one warehouse.
- First tell me which columns you found, what period the sales cover and what is missing. Ask me for each supplier's lead time and the share of items that must always be in stock; do not invent them.
- Split the items by contribution to revenue and by demand stability, as in the skill.
- For each item calculate average daily sales, safety stock and the reorder point. Pick the forecasting method based on the length of history and explain it in one line.
- Save reorder.xlsx: item, stock, reorder point, how much to reorder, status "reorder" / "fine" / "excess — clear out".
- List your assumptions and the items with too little history. Do not order anything and do not write to anyone.
```
For the dashboard, ask in a second task: "Use the officecli-data-dashboard skill and build one dashboard file from reorder.xlsx: the first tab shows how many items to reorder, how many are in excess and 2–3 charts, with the figures as formulas. Before installing the officecli program, tell me exactly what you will run." The skill installs this program with an install command from the internet. If the client does not need a dashboard, I would skip it: the reorder.xlsx table is enough.
Step 3. nanobot writes to Telegram every morning
nanobot is a free open-source agent: it lives on your computer or server, replies in Telegram and runs tasks on a schedule. It needs Python 3.11 or newer.
- In the terminal run
python -m pip install nanobot-ai, thennanobot webui. A page opens in your browser. Treat the full login link from the terminal (including the part after#) like a password. - Open Settings → Models → New preset → Provider → Add provider, paste the API key of the service you chose, pick a model labeled Tools and click Save. A ChatGPT or Claude website subscription does not give you an API key. Type Hello! in the chat: any normal reply means everything works.
- Start a new topic, choose the Warehouse folder and leave access set to Restricted: the agent will not leave that folder.
- In Telegram find @BotFather, send /newbot, choose a name and copy the token. In nanobot open Channels → Telegram, paste the token, save and enable it. Leave the allowed senders list empty and do not put
*there. Message your bot "Hi": it replies with a pairing code. Enter the code in the nanobot window and write again: you will get a normal reply. If Telegram is blocked where you live, set the proxy address in Settings → Advanced → Shared proxy. - A schedule is created in the chat where the replies should arrive. Write to the bot in Telegram:
```
Every day at 8:00 [your city or time zone] time, open reorder.xlsx and the fresh stock export stock.xlsx in the Warehouse folder. Compare stock with the reorder point and send three short lists to this chat: "Running out soon", "Time to reorder" (with quantities), "Sitting too long — clear out". If there is nothing to report, write "All fine". Do not change the files and do not send anything anywhere except this chat.
```
Three notes from the documentation. If nanobot was off at 8:00, the missed run is not repeated: for a client, install it on a computer or server that is always on (nanobot gateway --background keeps it running in the background). For an exact time, it is more reliable to set the schedule as a cron expression. You can check the state with the command nanobot gateway status.
One more thing: someone has to put a fresh export into stock.xlsx. Agree that the client does it every evening, or ask Claude Code to set up an export from InvenTree (it has an export through its API). There is no ready-made link between InvenTree and nanobot in the projects, so you build it yourself, which is why you should test everything on sample data first.
How to show it to the client
Take their file (with their permission) and do a trial run: show reorder.xlsx and one morning message with two lists, "running out" and "sitting too long". One phrase sells it: "You will stop freezing money in goods that do not sell." The word "neural network" is not in it: the client buys a removed problem.
Where the line is
- Decisions. The agent orders nothing and writes to no suppliers. The owner places the order.
- A forecast is an estimate. The skill itself names the cases where it breaks: a new item with no history, a sudden spike in demand, a change in lead time, and "phantom" stock, when the system says 200 and the shelf holds 40. Recount some items by hand.
- Client data. The sales file is a trade secret. It goes to the Claude model and to the model connected to nanobot. Agree on this with the client in advance and in writing. Do not take logins to marketplace accounts; work with the export. Keep the bot token and API keys only in settings, not in files and not in the chat.
- Promises. Do not promise savings. BSI's million is the result of a large company.
If it did not work
- Docker does not start. Send the error text to Claude Code and ask it to explain the cause in plain words.
- Silence in the morning. Check that nanobot is running (
nanobot gateway status), that the schedule was created in the chat with the bot (the Automations section) and that the computer was not asleep at 8:00. - The bot does not reply. Open Channels: it shows the Telegram status. The first message should return a pairing code.
- The numbers look odd. Ask Claude Code to show its assumptions and the items with short history, then check the export.
How to continue on AI SKILLS
If the setup was useful, the Ready-made services and platforms section has other projects you can deploy for a client, and Ready-made agents and automations has automation templates for typical tasks. A first trial can grow into a service: in Learning there are express courses at $9: "Freelancer Packaging" helps you choose a niche, and Freelance 2.0 gives you a system for finding clients and selling. The terms for access to links in the cards are on the Plans page.