Boluwatife OsineyeBack to work
Klinfits

Klinfits ops agent

An AI assistant that turns WhatsApp orders into payment links.

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 Klinfits shop page with four products

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

  1. I paste the buyer's WhatsApp message into the Telegram bot, or send a screenshot of the chat.
  2. 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.
  3. 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.
  4. I tap Make link. The link is created and the bot sends back a ready-to-send WhatsApp reply in the brand's voice.
  5. 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

From the live test, 14 Nov 2026

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.
Telegram chat: a pasted WhatsApp order, the "Link made" confirmation for ₦66,499, and a ready-to-send reply
"Ada" and the phone number are test data, not a real customer.

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

  1. WhatsApp chat
  2. I paste it into Telegram
  3. Vercel webhook
  4. Claude agent loop
  5. Shop tools: products and stock, delivery zones, coupons
  6. Draft saved
  7. Approval card in Telegram
  8. I tap Make link
  9. Server re-prices and creates the Paystack payment link
  10. Reply with a Send on WhatsApp button
  11. Buyer pays
  12. The existing Paystack webhook records the order and alerts Telegram

Stack

  • Next.js 16 (App Router)
  • TypeScript
  • Anthropic API (Claude Haiku 5.5, tool use)
  • Telegram Bot API
  • Paystack
  • Neon Postgres
  • Vercel (after() for background work)
  • Vitest

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).