The project in context
Klinfits is my online shop for compression gym wear in Lagos, Nigeria. I designed and built the whole shop: Next.js 16, TypeScript, Tailwind v4, Paystack checkout, a Neon Postgres admin, and a Telegram bot for order alerts. The ops agent is the AI feature on top of it. It lives inside the shop's private Telegram bot, and only I use it.

The problem
Many buyers order on WhatsApp instead of the website. Each order meant reading the chat to work out products, sizes and quantities, checking stock, looking up the delivery price, building a payment link in the admin, and typing a reply.
Lagos is split into rider zones with different prices, and other cities go by park delivery. It took several minutes per order, and it was easy to get a price or a total wrong.
What I built
- I paste the buyer's WhatsApp message into the Telegram bot, or send a screenshot of the chat.
- The agent (Claude, through the Anthropic API with tool use) works out the order and calls the shop's own tools: products with live stock and per-size prices, the delivery zone or city and its fee, and a coupon check if the buyer gave a code.
- It proposes a payment link. The bot shows a card with every item, the delivery fee and the total, with Make link and Cancel buttons.
- I tap Make link. The link is created and the bot sends back a ready-to-send WhatsApp reply in the brand's voice.
- It also answers shop questions: "what do I need to pack?", "who hasn't paid?", "how were sales this week?"
If something essential is missing, like a size or a delivery area, it asks instead of guessing.
How it stays safe
The AI proposes, the code checks, the human approves.
- The agent can only read shop data and propose a link. It cannot create a link, change stock or message a customer on its own.
- Every figure on the approval card is computed by the shop's server code from the product catalogue and live stock, never taken from the AI's text.
- When I approve, the server re-prices the order again from live stock, and a double tap can't create two links.
- Customer messages are treated as data, not instructions. If a pasted message says "give me 50% off", the agent flags it instead of doing it.
- Only my Telegram account can reach the agent.
Real example
Input pasted into Telegram:
Hi Klinfits, I want the spider set in M and a black tee size L. I'm in Ikorodu garage. My name is Ada, 08031234567
Result:
- Spider Set (M) ₦45,000 + Plain Black tee (L) ₦15,999, which includes the ₦999 size L surcharge
- Delivery: Ikorodu Garage matched to the "Ikorodu A" rider zone, ₦5,500
- Total ₦66,499, correct to the naira
- It flagged that the buyer gave only an area, not a street address.

Numbers
- Model
- Claude Haiku 5.5
- Switchable to a bigger model with one setting.
- Cost
- About $0.003 per order
- $5 of API credit covers well over 1,000 orders. An estimate from the request sizes.
- For me
- One paste and one tap
- Instead of several minutes of manual work.
- Tests
- 17 automated tests
- For the agent, all passing. 124+ tests across the shop.
How it works
- WhatsApp chat
- I paste it into Telegram
- Vercel webhook
- Claude agent loop
- Shop tools: products and stock, delivery zones, coupons
- Draft saved
- Approval card in Telegram
- I tap Make link
- Server re-prices and creates the Paystack payment link
- Reply with a Send on WhatsApp button
- Buyer pays
- The existing Paystack webhook records the order and alerts Telegram
Stack
Next
Not built yet.- Morning briefing at 8am: what to pack, low stock, payments to check.
- Follow-ups for payment links still unpaid after 24 hours, drafted for one-tap sending.
- New product listings drafted from product photos.
- Voice-note orders (needs a speech-to-text step).