AI agents
WhatsApp AI agents for distributors: taking orders safely
How an order sent on WhatsApp becomes a stock reservation, where an AI agent may reply on its own, and where a person approves a draft first.
5 min readMandelbrot Labs
A WhatsApp AI agent for a distributor reads customers' messages, recognises an order, checks it against real customers, products and stock, and either confirms it or prepares a reply for a person to approve. Done safely, the agent replies on its own only in the chats where the business has allowed it, every other reply waits for a person, and every order lands as a reservation against stock that exists.
This article follows one order from a customer's message to the warehouse, and sets out where the agent acts alone, where it drafts, and where a person takes over.
Why distributors take orders on WhatsApp
Across Southeast Asia, many trade customers order by message. A restaurant owner writes "20 trays of AA eggs for tomorrow" at eleven at night. A minimart owner sends six items in one message. A caterer asks whether the usual rice is in stock before committing to a function.
These orders are short, informal and frequent. Someone has to read each one, find the customer, check stock, confirm and key the order in. Doing that by hand is slow at peak times and easy to get wrong late at night. An AI agent can do most of the reading and checking, provided it is bound to the business's own records and rules.
How an order arrives on WhatsApp, end to end
Here is the path of a single order through Argo, the agentic CRM, and Mercury, inventory and orders.
- The customer writes. "20 trays of AA eggs for tomorrow" arrives in the business's shared WhatsApp inbox.
- The agent identifies the customer and the product. It looks them up in Phanes, the model of the business, where customers, products and their relations are defined. It does not guess from the wording alone.
- The agent checks stock. It asks Mercury whether 20 trays of that grade are free for tomorrow.
- The agent checks whether it may reply by itself in this chat. This is a setting, decided per chat by an admin, and enforced by Daedalus, the platform underneath.
- It replies, or it drafts. If the business lets the agent send in this chat, it confirms the order to the customer. If not, it writes a draft reply for a member of staff, who approves it and sends it.
- The order lands in Mercury and the stock is reserved. The trays are no longer free for anyone else to promise.
- The warehouse sees it on the Today board the next morning, as something to send.
- The order is dispatched, and the movement is recorded in Mercury's stock ledger, which is never edited.
The owner then sees free stock, short orders and stock value on the overview. At every step, permissions decide who sees what. The warehouse sees the order and the delivery address, and does not see the price or the customer's phone number.
Where the agent may send alone
The agent sends on its own only in the chats where an admin has turned that on. Everywhere else, it drafts.
That gives the business a simple way to start. One way to start is with drafts everywhere, so staff see every reply before it goes. Once the team is comfortable with how the agent handles a set of regular customers, an admin can let it reply on its own in those chats, and keep drafts for new customers, large orders or anyone the team prefers to handle personally.
The decision belongs to the business, chat by chat, and can be reversed at any time.
How drafts work
A draft is a reply the agent has prepared and nobody has sent. It appears in the shared inbox for staff to check. A person reads it, edits it if needed, and sends it. Until then the customer sees nothing from the agent.
Drafts are useful well beyond caution. They save the typing and the looking-up: the agent has already found the customer, matched the product and checked stock, so the person approving the reply is checking a prepared answer, which is faster than writing one.
Handovers between the agent and the team
The inbox is shared by the whole team, so staff see the same conversations the agent sees, and can reply in any of them themselves. Argo keeps a record of what the AI agent did, so anyone picking up a conversation can see what was said, what was checked and what was prepared.
Handing over is therefore a matter of a person stepping in. In chats where the agent only drafts, a person is already in the loop on every message. In chats where it may send alone, staff can still read along and take over a conversation when it needs judgement: a complaint, a special price, an unusual request.
Why the agent cannot overstep
Three rules keep a WhatsApp agent safe on real orders.
- It acts only through the model of the business. The agent can only take the actions that Phanes defines, such as reserving stock or sending a message, and each action carries the permission it needs.
- It acts with a person's permissions. Every AI answer is filtered by the permissions of the person the agent works for, before the model sees the data.
- Its freedom to send is explicit. Sending without review is switched on per chat by an admin, and off everywhere else.
These rules are part of the platform, so they apply to every agent in every app.
What else the agent does in Argo
Taking orders is one task among several. In Argo, AI agents also answer customers' questions, keep records current and move deals forward. Email comes into the same inbox, so a team sees both on one record. For buying, Argo can send an inquiry to several suppliers at once and track their replies and quotes.
Argo is sold on its own. Mercury can be added for stock and orders, or bought alone by a business that only needs stock control. With both, the order the agent takes on WhatsApp becomes a reservation against real stock, and the warehouse works from it the next morning.
Questions to ask before switching an agent on
- Does the agent check real stock before it confirms anything?
- Can you choose, chat by chat, where it may send without review?
- Can staff see and edit every draft before it goes?
- Is there a record of what the agent did in each conversation?
- Does the warehouse see what it needs and nothing more?
For the model underneath all of this, see What is an ontology, and why do AI agents need one?