---
id: 16711
lang: en
title: "An AI manager for WB and Ozon got freedom, but capped at 8 steps and 150 seconds"
published_at: "2026-10-28 08:01:03"
source_name: "Хабр: Машинное обучение"
source_url: "https://habr.com/ru/articles/1100298/?utm_campaign=1100298&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/16711"
categories: ["business", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# An AI manager for WB and Ozon got freedom, but capped at 8 steps and 150 seconds

> **Краткая суть (BLUF):** The first version of the AI manager for Wildberries (WB), Ozon and Yandex Market sellers failed to understand 32 of 120 phrases like "why did sales drop." The second lets the model choose its own tools, but it gets at most 8 steps and 150 seconds per reply. Cabinet changes are allowed only after the owner's "yes" to a proposal no older than an hour. The takeaway: if an agent touches money, code should check write permissions, not the model.  • The marketer step shrank from 35 KB to 14.5 KB after the tools were grouped. • A proposal older than an hour expires, and the agent rebuilds it. • If the right tool is missing, the request lands on a list in the admin panel.

Imagine giving a neural network access to a seller's cabinet on Wildberries (WB), Ozon or Yandex Market, where prices and advertising budgets live. The key question here is not how smart the model is, but what it could break. The team building an AI manager for such sellers described on Habr how they rebuilt the first version almost from scratch. The new version is freer: the model decides what to do on its own. But it gets no more than 8 steps with tools and 150 seconds per reply, and any change to the cabinet is possible only with the owner's consent.

## Why the rules stopped working

The first version was simple. The owner's phrase went through regular expressions, turned into an operation from a closed list, and that operation was sent to the marketplace API. The model only helped guess which operation the person meant. Anything that changed the cabinet ran only when the owner pressed a button.

Real dialogues showed that expectations and reality diverged. Developers expected requests like "show stock on WB," but got "why did sales drop," "what to do with the hoodie," and "compare with last month, but without returns." The rules did not recognize such phrases: 32 of 120 got a generic answer.

What mattered more was something else. Sellers already see orders, stock and ad spend in the marketplace cabinet. They need a conclusion: the listing dropped out of search, ads are spent on queries nobody buys from, or the price is higher than competitors' in the results. Manager 1.0 honestly showed a table and left the conclusion to the person.

Moreover, every new request required a new code branch: a regex, a handler, a line in the operations list, a check in the smoke test. Owners asked for things faster than the team could write them. Two bugs also surfaced that readers of the previous article had found. If the owner named a platform that was not connected, the manager silently answered for the first connected one. And a button with a new price was built from a snapshot of the cabinet, and the current price was not reread before saving.

## The model chooses, the code constrains

The scheme was flipped. Now the model sees the conversation and a set of tools, decides itself what to call and in what order, looks at the result and continues until it is ready to answer. This is roughly how agents for programmers work. All operations of the first version became tools without being rewritten. Added were a comparison of sales over the last 7 days with the previous 7, a cabinet change log, planning of multi-step tasks, memory ("we no longer stock hoodies"), and deferred checking: the manager returns to a task on its own later.

Now, for the question "why did sales drop," the agent can itself find the fallen products, open the listing, check stock and ads, and only then answer.

The constraints look like this:

- No more than 8 steps with tools, 150 seconds for the whole turn, and 6 tool calls per step; when less than 25 seconds remain, the last step runs without tools, and the agent answers with what it has managed to learn;
- A failing tool does not abort the turn: the model gets the error in words and decides what to do;
- Data is trimmed before being fed to the model: tables up to 200 rows, names up to 60 characters, cells up to 120;
- Each tool has an instruction such as "up to 15 results" or "the limit is shared, do not call it in batches."

The most important part concerns writing. There are no buttons anymore: the agent asks "Doing it?" and the owner answers "yes." But code checks this, not the model. Only a specific proposal from the previous reply can be executed. A turn on a schedule applies nothing, because there is no one to agree. An explicit refusal blocks the action. A proposal older than an hour expires: the figures may have changed, and the agent rebuilds it. The model cannot invent an edit and execute it right away, do it at night on a timer, or apply yesterday's price.

## Skills, context savings and the benchmark

Freedom in choosing tools does not make the model an experienced seller. So the agent was given a knowledge library: a "from niche to finished listing" method, practitioners' articles on listing SEO and competitor analysis, a guide to MPStats analytics, and about two dozen pages of its knowledge base. The prompt holds only the table of contents, and the agent opens the needed articles itself. Summaries are compressed in advance by a stronger model so they do not eat the context.

The tools became numerous, and each step got heavier. They were grouped by category, and rare ones were hidden: the agent finds them via search. The step of a neighboring employee, the marketer, shrank from 35 to 14.5 KB. For those who count tokens, this is direct savings on every loop cycle.

There is also a useful detail. If the needed tool does not exist, the agent does not improvise. It calls a special "no tool" tool, describes what was missing, and honestly answers "I can't do that yet." Such requests are collected from all projects in the admin panel and suggest what to develop first.

Quality is checked on a benchmark of eight typical seller tasks. A judge model scores answers from 1 to 5, sees the data the agent retrieved, and can verify not only the tone but also the figures. They measure how deeply the agent digs before answering, how often it hits "I can't do that yet," and where the limits help and where they get in the way.

## What remains open

There are no test results yet; the authors promise to publish them later. They themselves acknowledge that the question is what the increased confidence of answers rests on. For practitioners the lesson is already clear: if an agent touches money, keep the boundaries in ordinary code. Step and time limits, the shelf life of proposals, and the consent check should not depend on the model's mood.

---
- **Первоисточник:** [Хабр: Машинное обучение](https://habr.com/ru/articles/1100298/?utm_campaign=1100298&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/16711
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
