Picture a fashion or electronics shop that sells through Telegram and Instagram and keeps its inventory in MoySklad. A customer writes: "Do you have this dress in a size 10, in black?" Someone on the team opens MoySklad, finds the product, checks the right variant, makes sure the item is not already held for another order, and replies. If the message lands at 11 pm, the reply goes out next morning — by which time the customer has often bought elsewhere. And every order agreed in the chat is then typed into MoySklad by hand.
MoySklad is a cloud inventory and order management service with a public JSON API, which makes it easier to connect an AI agent to than an on-premise accounting system. Easier, though, does not mean automatic. This guide covers what the agent should read from MoySklad, how it matches a customer's words to the right size and colour, when to reserve stock, how to turn internal order statuses into messages a customer understands, and what permissions the agent should and should not have.
Why MoySklad is a good fit for chat-based selling
MoySklad runs in the browser and does not need its own server, which is one reason small shops selling through social media choose it. For an AI integration, that has three practical consequences:
- One official interface. MoySklad exposes JSON API 1.2, reachable from the cloud. There is no need to publish a database or build an intermediate copy, as is often the case with 1C.
- Webhooks. MoySklad can notify an external service when a document such as a customer order is created or changed. That is what lets the agent message the customer first.
- Rate limits. The API limits the number of requests in a short window and the number of parallel requests. For a single shop this is rarely a problem, but the agent must not scan the entire catalogue for every incoming message. Current limits are listed in the MoySklad developer documentation, which also notes that some API features are restricted on free plans.
Which stock figure the customer should see
MoySklad's stock report holds several numbers per item: physical stock, quantity reserved for orders, quantity expected from suppliers, and available quantity. Customers almost always need just one of them — available, meaning stock minus reservations. An agent quoting physical stock will happily promise an item already set aside for someone else.
Three further decisions belong to you, not the agent:
- Which warehouses count. A shop floor and an online-order warehouse can both be visible, or only one. Returns and damaged-goods locations should never be.
- Whether to show exact numbers. "Only 2 left" can help conversion but reveals your stock levels to competitors. Many shops prefer "in stock", "last few" and "available to order".
- How to talk about incoming stock. If a purchase order with a date exists, the agent can say a delivery is expected — but not present that date as a promise, because suppliers slip.
Matching what customers say to what is in the catalogue
Customers do not know your SKUs. They write "the black midi dress with the belt from your story" or "iPhone 15, 128, blue". In MoySklad, size, colour and storage are usually variants of one product, each with its own stock. "We have that dress" and "we have that dress in black, size 10" are different answers. What makes matching reliable:
- clear product names and variant characteristics ("Colour", "Size") rather than placeholders;
- a synonym list covering languages and slang — in Uzbekistan that usually means Russian, Uzbek and English names for the same thing;
- a link between social posts and products, such as a SKU in the caption or a simple post-to-product table;
- a firm rule: if two or three items match, the agent shows the options and asks, rather than choosing.
A sample exchange where the agent works with variants and available stock:
Customer: Hi, is the dress from yesterday's story available in a 10, black?
Agent: Hi! That is the "Mira" belted midi. Black in a 10 is not available right now, but we have black in a 12 — it runs one size looser according to the size chart. The 10 is also available in beige. Would you like the measurements, or should I show you the beige?
Customer: Beige 10 please, delivery to Chilanzar.
Agent: Great. To confirm: "Mira", beige, size 10, one item, courier delivery to Chilanzar. Is that right? If so, please share your name and phone number and I will place the order.
The agent did not stop at "out of stock". It offered two real alternatives drawn from available stock.
Creating the order in MoySklad
Once the customer confirms, the agent creates a customer order. The sequence we recommend:
- Find the customer by phone number. If none exists, create one and tag the source channel. If several match, hand over to a person instead of guessing.
- Add line items with the exact variant and the selling price from MoySklad. The agent never invents a price or discount; if a discount came up in the chat, a person decides.
- Set a status such as "New from chat", with the address, preferred time and a link to the conversation in the comment.
- Decide on reservation. Reserving removes the item from available stock, which prevents double-selling — but if the customer disappears, the item is stuck. A common approach is to reserve immediately and release unconfirmed orders after an agreed period.
- Notify the team in an internal chat with a short summary.
Turning statuses into customer messages
Your MoySklad statuses are written for staff. When someone changes a status, a webhook tells the agent, which checks a mapping table and decides whether to write to the customer.
| Status in MoySklad (example) | What the agent does | What stays with a person |
|---|---|---|
| New from chat | Confirms the order was received and gives the number | Checking items and customer record |
| Confirmed | Says the order is confirmed and explains delivery | Agreeing any non-standard delivery |
| Packed | For pickup, sends the address and opening hours | — |
| With courier | Says the order is on its way | Resolving delivery problems |
| Out of stock / partial | Sends nothing on its own; drafts a message | Offering a replacement or refund |
| Cancelled | Answers follow-up questions from a template | The cancellation decision and any dispute |
The rule of thumb: the agent delivers good news itself and drafts bad news for a person to send. If you have a dozen statuses, start with the three or four customers ask about most.
Permissions and launch checklist
Give the agent its own MoySklad user and a token with minimal rights, so the document history shows what the agent did and access can be revoked without affecting staff. It may read products, variants, selling prices and stock for the relevant warehouses, create customers and customer orders, and read order statuses. It should not see purchase prices or margins, delete or post shipment documents, change prices or stock, or touch finance. Phone numbers and addresses are personal data: collect only what the order needs.
Before going live, check that the agent:
- answers from available stock, not physical stock;
- asks a clarifying question when two items look alike;
- reads the order back and gets an explicit yes;
- never quotes a price that is not in MoySklad;
- never sends cancellation or shortage messages without a person;
- understands questions in every language your customers use.
The same principles apply to any system an agent writes into — see how we approach AI agents, or browse more integration guides.
FAQ
Do we need a developer to connect an agent to MoySklad?
The API is open and well documented, so reading stock is quick to set up. Variant matching, reservation rules and the status table almost always need tailoring to your catalogue. The effort depends on how many products, warehouses and sales channels you have.
Will the agent see stock that changed a minute ago?
Yes, if it reads stock through the API at the moment of the question. If stock is cached to save requests, the agent sees data as of the last refresh — choose the interval to match how fast you sell.
Does this work with marketplace orders too?
If marketplace orders flow into MoySklad, the agent accounts for them through available stock. Replying to buyers inside a marketplace is a separate integration with that platform's own rules.
How much does it cost?
It depends on catalogue size, channels and processes. The first conversation is to look at your setup and estimate. Reach us through the contact form.