TecnoStack
Start a projectالعربية
A Customer request card fans out with arrows to four cards: Answer only, Look up, Confirm, then act, and Staff only.
AI engineering

Sort your store’s customer messages into four permission levels: answer only, read-only lookup, act after the customer confirms, and staff only, with what the Salla and Zid APIs allow for each task.

In this article

AI customer service for ecommerce works when the agent handles repeated questions and read-only lookups, while money and exceptions stay with your team. Sort each task into four levels: answer only, look up, confirm then act, staff only. Then enforce each level in the integration code: read-only scopes for lookups, and narrow tools that check conditions before any change.

This guide assumes you have decided to try an agent that replies to your store’s customers in website chat or on WhatsApp. If you are still working out which chatbot type fits your questions, start there. Some suppliers call such an agent an “AI employee”: software that reads customer messages and uses your store’s tools with the permissions you set.

The four levels are: answering from content you approved, looking up order data without changing it, carrying out an action after the customer explicitly confirms it, and preparing a task that a member of staff decides. Risk rises with each level, and so do the controls you need.

LevelWhat the agent doesWhat it needs firstExample customer message
1. Answer onlyReplies from text you approvedCurrent content: sizes, shipping, returns“How long does delivery to Abha take?”
2. Look upReads an order, shipment or stock level and changes nothingAn identity check and a read-only permission“Where is my order?”
3. Confirm, then actChanges a record after reading the change back to the customer and getting a yesA written rule, an order status that allows the change, and a record of what happenedChanging the delivery address before the order is fulfilled
4. Staff onlyCollects the details and hands over with a summaryA named owner and a reply time you tell the customerA refund decision

Levels 2 and 3 differ in one thing: reading a record versus changing it. A customer’s yes alone is not enough for level 3: the action must also be reversible and inside your written policy.

Give the agent the requests that repeat and can be checked: product and policy questions, order status and delivery dates. Keep any task that moves money or needs an exception to policy with your team. Copy this table and adjust the levels to your store’s policy:

TaskSuggested levelWhat the agent reads or changesWhen it hands over to staff
Size, fabric or shipping policy questionAnswer onlySize chart, product page and published policyWhen the approved content does not cover the question
Where is my order, and when will it arrive?Look upOrder status, tracking number and shipment statusWhen order and phone do not match, or the shipment runs past your window
Alternative for an out-of-stock itemLook upAvailable quantities and items in the same categoryWhen the customer asks to reserve a piece or for a discount
Refund statusLook upOrder or return statusWhen the money has not arrived after the stated period
Cash-on-delivery confirmationConfirm, then actAdds the customer’s answer as an order note, or sets the status your rule namesWhen the customer declines or wants to change the order
Delivery address changeConfirm, then actShipping address, only before the order is fulfilledAfter fulfilment or once a shipment exists
Cancelling an order not yet preparedStaff onlyCollects the order number and the reasonAlways: a cancellation ends the sale, and a prepaid order also needs a refund
Return or exchange requestStaff onlyCollects order number, reason and photos for staff; creates nothing in the storeAlways: approval depends on the item’s condition and the policy window
Refund or compensationStaff onlyPrepares a summary with the amount and original payment methodAlways
Damaged or wrong item complaintStaff onlyCollects photos and the order numberAlways, with a reply time for the customer

Problems the customer never sees, such as a failed payment or a missing address on a new order, belong with your operations team, in back-office handling of order exceptions with an approval step.

As of November 2026, the Salla and Zid APIs let an integration read orders, customers and stock, change an order’s status, start a return and refund money. Each platform’s write permission is wider than any single task, so each level’s limits belong in the integration layer your supplier builds.

TaskSalla APIZid API
Read an orderOrder Details, scope orders.readView Order, scope orders.read
Find the customerList Customers, searching by mobile number, email or nameFind Customer By Phone Number
Track a shipmentShipment Tracking, scope shipping.readTracking number and status fields in View Order
Check stockProduct quantities list, scope products.readRetrieve Product Stock, scope products.read
Change order statusUpdate Order Status, scope orders.read_writeChange Order Status, scope orders.read_write
Edit the order addressUpdate Order, only before the completed statusNo address-edit endpoint found in the reference
Start a returnReturn Shipment for a specific shipment, scope shipping.read_writeCreate Reverse Orders, scope orders.read_write
RefundUpdate Transaction (refund, void or reverse a transaction, including partial refunds), scope transactions.read_writeCreate refund for reverse order

Keep transactions.read_write out of the agent’s integration: refunds stay staff only.

In Salla, the same orders.read_write scope that allows an order status update also allows editing the order and adding a note to its history. In Zid, orders.read_write covers both status changes and creating a reverse order. So do not hand the agent the whole API. If you are scoping an AI agent for a Salla store, give it narrow tools with plain names, such as “read order status after verification” and “change address if the order is not yet fulfilled”, and have the code check the conditions before every call.

Two agent tools, Change address before fulfilment and Add confirmation note, pass through a Code check into the Salla scope orders.read_write, which fans out to Edit order, Add history note and a dashed Change status card marked No agent tool.

One Salla write scope allows several actions; in this sample setup the agent sees two narrow tools, each checked in code.

OWASP’s guidance on excessive agency recommends this: downstream systems validate every request against security policies, instead of relying on the model to decide whether an action is allowed. Our guide on how to bound an agent’s autonomy covers the pattern for technical teams.

The agent matches two things before it reveals any detail: the order number and the mobile number on that order. On WhatsApp it compares the number the customer is writing from; in website chat it asks for the number and checks it against the order. If they do not match, it shares no status, address or items, and offers to pass the chat to a person. An order status chatbot that skips this check will show an address to anyone who has the order number.

Watch for Zid orders that come from external marketplaces. As of November 2026, Zid’s View Order documentation says the customer’s name, email and phone are partly masked on these orders, so a phone number shows as ***00, and it may be missing. The agent cannot match these orders, so route them straight to staff.

As of November 2026, Salla’s documentation limits the customers endpoints to 500 requests per 10 minutes. On a sale night, read customer details from the order instead of searching the customer list on every message. If WhatsApp is your channel, number setup, templates and Meta’s fees are covered in WhatsApp Business API setup for stores.

The agent acts on its own when four conditions hold: the action is reversible, your written policy allows it, the order’s current status on the platform allows it, and the customer confirms a summary of the change. Anything that moves money, needs an exception or depends on judging an item’s condition goes to a person.

The same OWASP guidance recommends human approval of high-impact actions, and we apply that on every plan: no agent we build makes high-risk decisions alone.

A change of address shows how level 3 works. As of November 2026, Salla’s Update Order endpoint lets an integration edit the receiver and shipping details while the order status is not completed. Since 5 January 2026, National Address fields such as building number and postal code have been mandatory in the shipping address. So the agent collects the full address, reads it back for the customer to confirm, then saves it and adds a note to the order history. If the customer does not confirm, nothing changes and the agent offers a person. We found no address-edit endpoint for existing orders in Zid’s reference, so on Zid that task stays with staff unless your supplier shows you one.

Flow from left to right: Order and phone match, then Before fulfilment, then Customer confirms, then Address updated, with a No arrow from each question down to a Hand to staff card.

A hypothetical address change: two questions decide whether the agent finishes the task or hands it to staff.

On handover, the agent sends staff a summary so nobody asks the customer again:

  1. The order number, and whether it matched the phone.
  2. The customer’s request in their own words.
  3. What the agent checked and what it found.
  4. The action it proposes, and why.
  5. What it told the customer about the reply time.

Imagine an abaya store in Riyadh, running on Salla, with two staff answering WhatsApp. The store and its figures are invented for illustration. It exports one week of chats, finds 220 conversations and sorts them with the task table:

Request typeConversationsLevel
Where is my order and when will it arrive?70Look up
Size or fabric question45Answer only
Cash-on-delivery confirmation30Confirm, then act
Return or exchange request20Staff only
Alternative for an out-of-stock item15Look up
Address change14Confirm, then act
Damaged or wrong item complaint14Staff only
Refund status12Look up
Total220

By level, that gives 45 answer-only chats, 97 lookups, 44 confirm-then-act and 34 staff-only. The store starts with levels 1 and 2: 142 of the 220 chats, about 65%, and the agent runs for four weeks with no write permission at all.

After reviewing handovers and errors, the store adds cash-on-delivery confirmation and address changes, and the agent’s share rises to 186 chats, about 85%. Staff keep the 34 staff-only chats, plus every chat the agent hands over because the details did not match.

The first phase is one use case with five intents: product and policy questions, order status, alternatives, refund status and asking for a person, which also routes returns and complaints to staff. That fits our Agent pilot plan, which covers up to 3 flows and 5 intents. The second phase adds two intents, which are quoted separately.

Ask for written answers; named tools and permissions show what the supplier will build:

  1. Which permissions (scopes) will the integration app request from Salla or Zid, and why does it need each one?
  2. Which tools can the agent itself see, and what does each one do?
  3. Where are each level’s limits enforced: in code, or in the model’s instructions?
  4. How does the agent verify the customer, and what does it do with orders whose customer data is masked?
  5. What does the agent write to the order history after each action, and does the entry show it was automated?
  6. How does a handover reach your team outside working hours, and what is the customer told?
  7. How many scenarios will be tested before launch, and do they include Saudi dialect and misuse attempts?
  8. Who owns the accounts and the conversations, and how do you export them?
  9. What will it cost to run each month, and what written assumptions sit behind that figure?

Start with levels 1 and 2 on one channel, review conversations weekly, and add one level-3 task once errors and needless handovers fall. Measure the tasks completed correctly, the actions the agent should not have taken and the quality of its handovers.

With our AI agent development service, Agent discovery starts from SAR 4,000 before VAT and includes an evaluation plan with 20 example tasks in Arabic and English, plus a check on whether a ready-made tool would do the job. Agent pilot starts from SAR 18,000 before VAT for one channel and 2 documented integrations, such as your store and one other system. Model usage, WhatsApp provider fees and Meta’s messaging charges sit outside that price.

Customer questions shift with seasons and sales, so plan for monitoring an AI feature after launch from day one.

Next step: export a week of chats from your busiest channel, sort them with the task table and decide what goes into phase one. If you would like us to review the list with you, send us the details.

Discuss your website, store, app or AI project in Arabic or English. We agree the scope before work starts.

Book a free scoping callCompare services and prices