It is eleven at night and your Instagram inbox has more unread messages than you want to count. Most ask the same three things: price, delivery to Karachi, and whether the navy one is left in medium. By morning, a fair share of those people have bought from a store that replied faster.
That gap is the problem an AI chatbot for Shopify is meant to solve. Not engagement, not innovation. Just the distance between when a customer asks and when you answer, plus the hours staff spend typing the same reply for the hundredth time.
Here is what these systems actually do, how a cash-on-delivery order gets created safely, what they cost, and what they will not fix.
What an AI sales agent actually does in a DM
An AI sales agent is software connected to your WhatsApp, Instagram and Facebook Messenger accounts. It reads incoming messages and replies the way a good shop assistant would. The word agent is the important part: it can take actions in your systems, not only produce sentences.
A properly built one does this:
- Searches your live catalogue, filtering the way customers speak, by category, colour, size or budget, and replies with real products.
- Checks stock per variant. A variant is one specific version of a product, such as medium in navy, or the 250g jar rather than the 500g. Availability is checked for that exact variant.
- Builds a cart across the conversation, so a customer can add a second item four messages later without repeating themselves.
- Collects delivery details such as name, phone, full address and city, and asks again when something is incomplete.
- Creates a cash-on-delivery order in Shopify, but only after showing a full summary and getting an explicit confirmation.
- Books the courier and writes the tracking number back onto the Shopify order.
- Sends WhatsApp updates from booking through to delivery, which heads off the "where is my parcel" messages before they arrive.
- Cancels an order before dispatch on request. After dispatch it stops and routes the customer to a person.
- Verifies identity before showing order details on Instagram or Messenger, since a social handle is not proof of who is typing.
- Hands over to a human whenever the customer asks, or when a conversation goes somewhere it should not handle alone.
- Replies in English, Urdu and Roman Urdu, which is how customers in Pakistan and the Gulf actually write in DMs.
Your team watches all of it from a staff dashboard showing live conversations, orders created, shipments booked and every chat waiting for a person. If you would rather see it than read about it, there is a working demo of the Shopify agent on our AI solutions page.
The catalogue and prices must come from Shopify, not the model
This is the most important design decision, and it is where cheap chatbots fail.
A language model generates plausible text. Paste your product list into its instructions and leave it there, and it will confidently quote last season's price or invent a size you never stocked. The customer screenshots that promise, and you either lose money honouring it or lose the customer refusing it.
The fix is structural. The agent must not answer product questions from memory. Every time stock, price or availability comes up, it queries Shopify through the API at that moment and reads back what the store says. Shopify stays the single source of truth; the model only handles language and sequencing.
The trade-off is that the agent inherits your catalogue's quality. If half your products are named "Design 42" with no colour and no size, there is nothing to search on. Tidying up titles, variants, tags and stock counts is the least glamorous and most valuable part of the project, and it is ordinary Shopify development work worth doing regardless.
Cash on delivery changes the whole flow
In Pakistan, the UAE and much of South Asia and the Middle East, most orders are still cash on delivery. That removes the checkout page as a safety net. There is no card authorisation forcing a correct address, and no payment confirming the customer actually meant to buy.
The confirmation step has to do that job instead. The agent shows a full summary before anything is created: each item and variant, quantity, unit price, delivery charge, total payable in cash, the address exactly as it will be printed, and the phone number the courier will call. Only after the customer explicitly confirms does the order get created in Shopify.
That rule is enforced in the backend, not in the prompt. The model cannot place an order by itself, whatever a customer tries to talk it into. Prompt instructions are guidance; backend rules are guarantees. For cash on delivery, you want the guarantee.
Courier booking and tracking updates
A confirmed order nobody books is just a to-do item. Once the order exists, the agent books the shipment with your courier and writes the tracking number back to the Shopify order, so support and the customer see the same reference.
It then sends WhatsApp updates as the status changes, from booking to out for delivery to delivered. This matters more in cash-on-delivery markets than prepaid ones: a customer who has not paid and has heard nothing for three days is the one who refuses the parcel. Keeping them informed is a return-rate measure as much as a service one.
One constraint worth planning for: on WhatsApp, any message your business sends outside a customer-initiated 24-hour window must use a message template approved by Meta. You write the templates, submit them and wait. Not difficult, but not instant either, and better in the plan than discovered in week three.
What to automate and what to leave to people
Automate the repetitive and factual: price and availability, product recommendations, size and material questions, delivery timelines, order status, tracking, cancellations before dispatch, and the ordinary path from question to confirmed order.
Leave to a human: complaints, damaged or wrong items, refund negotiations, exceptions to your own policy, wholesale enquiries, and any customer who is clearly annoyed. Also anything the agent is unsure about: one that says it will get a colleague to confirm is worth more than one that guesses well most of the time.
Which means someone still has to answer handed-over chats. An AI agent changes what support spends its day on rather than removing the need for it. If nobody watches the handover queue, the experience is worse than no bot at all.
How to measure whether it is working
Ignore message counts. They go up and prove nothing. Track four things instead.
- Cost per conversation. Total monthly cost, including platform fees and model usage, divided by conversations handled. Compare that with what a staff member costs per conversation.
- Orders per 100 chats. Your conversion rate for DMs. Measure it for a few weeks before launch so you have an honest baseline.
- Handoff rate. The share of conversations that end up with a person. A very high rate means the agent lacks information. A rate near zero usually means it is guessing when it should be escalating.
- Returns and refusals on agent-created orders. If they run higher than orders from your website, something in the confirmation flow is unclear.
The number that should improve slowly is orders per 100 chats, as you close catalogue gaps and rewrite the answers that are losing people. We looked at the wider picture in our piece on AI-powered ecommerce features that increase sales.
What an AI chatbot will not fix
An agent answers questions and takes orders. It cannot repair the business underneath it.
- Bad product pages. Missing sizes, one dim photo, no material detail. The agent has nothing to work with and neither does the customer.
- No traffic. Automating replies to almost nobody changes almost nothing. Fix demand first.
- Slow delivery. The agent tells customers exactly where their parcel is. If the answer is "still not dispatched", it just delivers your operations problem faster.
- An unclear returns policy. If your team cannot state it in two sentences, the agent cannot either, and the ambiguity becomes a dispute.
- Uncompetitive pricing. A fast, polite reply does not close a gap the customer can see on another store in ten seconds.
A realistic timeline and what it costs
For a store with a reasonably clean catalogue, expect a few weeks rather than a few days. The work divides into connecting Shopify and reviewing catalogue quality, getting WhatsApp Business API access and submitting templates for approval, wiring up the courier, then a supervised pilot where every conversation is reviewed before the agent runs unattended. Meta's approval steps are the part least under anyone's control, so start them early.
On cost, treat it as two things. There is a build cost, which depends on how many channels you connect, which courier you use and how much catalogue cleanup is needed. Then a running cost: model usage per conversation, WhatsApp conversation fees charged by Meta, and hosting. Running costs scale with volume, which is the point. Any agency quoting a single number before seeing your catalogue and your message volume is guessing.
The useful first step is not a demo but an honest look at a week of your own DMs: how many are pure product questions, how many are order status, how many genuinely needed a person. We do this as part of our AI and machine learning work, and you can send us a note about your store for a second opinion on the numbers.
Frequently Asked Questions
Will an AI chatbot for Shopify give customers the wrong price?
Not if it is built correctly. The agent should read prices and stock from Shopify through the API at the moment it answers, rather than from anything written into its instructions. Bots that quote wrong prices are usually ones handed a static copy of the catalogue.
Can it place a cash-on-delivery order on its own without me approving it?
It creates orders only after the customer has seen a full summary and explicitly confirmed it, and that rule sits in the backend rather than the prompt, so the model cannot bypass it. Every order appears in the staff dashboard and in Shopify as it is created, so your team can step in before dispatch.
Does it work on Instagram DMs and not just WhatsApp?
Yes, on WhatsApp, Instagram and Facebook Messenger, with the same catalogue and the same order flow. One difference: on Instagram and Messenger the agent verifies identity before showing order details, because a handle is not proof that the person messaging placed the order.
Can it reply in Urdu and Roman Urdu?
Yes, and in English, switching to whichever the customer uses. Roman Urdu matters in practice, because many DMs in Pakistan arrive that way and an agent that only reads formal Urdu script will miss them.
Do I still need staff answering messages?
Yes, fewer of them and for harder things. The agent handles product questions, order status and routine ordering, and hands over complaints, refunds and policy exceptions. Someone has to watch that handover queue during business hours, and stores that skip this end up worse off than before they automated.