Technical

AI Agents for E-commerce Operations: What to Automate, What to Approve

A practical look at where AI agents help e-commerce teams today (abandoned carts, catalog enrichment, support triage and stock alerts) and a simple rule for deciding what runs on its own and what waits for a human.

Kalvyai Engineering · · Updated · 7 min read

AI Agents for E-commerce Operations: What to Automate, What to Approve (cover)
On this page

AI agents are useful in e-commerce operations right now. They are not useful everywhere, and they are not safe to run unsupervised everywhere. This post covers four areas where we see agents earn their keep (abandoned-cart follow-up, catalog enrichment, support triage and stock alerts) and a practical way to decide which actions run on their own and which wait for a person.

A simple rule for automate vs approve

Before looking at each use case, it helps to have one test you can apply to every action an agent might take. We ask four questions:

  1. Is it reversible? Tagging a ticket can be undone in a second. A sent email or an issued refund cannot.
  2. What is the blast radius? One draft product description affects one record. A bulk price change affects the whole catalog.
  3. Does it move money or make a promise? Discounts, refunds, credit notes and delivery dates all create obligations.
  4. Is it customer-facing and free-form? A pre-approved template is predictable. A message the model writes from scratch is not.

If an action is reversible, small in scope, does not move money and is not free-form customer communication, it is a good candidate for full automation. If it fails any of these, put it behind an approval step, at least until you have enough history to trust it.

This is the same pattern we use when we build agents inside Odoo, ERPNext and Shopify: the agent proposes, the system records the proposal, and a person approves anything that crosses a line you defined in advance.

Abandoned-cart follow-up

Abandoned carts are the most common starting point because the data is already in the system (cart contents, customer, timestamp) and the outcome is easy to measure.

Safe to automate fully

  • Detecting abandoned carts based on your own rules (for example, a cart with items and a known contact that has not converted after a set time).
  • Sending reminders from approved templates, filled with cart contents, product names and a link back to the cart.
  • Stopping the sequence when the customer orders, unsubscribes or replies.
  • Respecting consent and quiet hours. These should be hard rules in code, not instructions in a prompt.

Keep behind approval

  • Discounts and coupons. An agent that can invent a discount will eventually give away margin you did not plan for. Let it suggest one; let a person (or a fixed rule table) approve it.
  • Personalised free-form messages to high-value carts. Useful, but review them, at least at first.
  • New templates or changes to sequence timing. These affect every future customer.

A policy for this can be short and explicit:

YAML
abandoned_cart:
  trigger_after_minutes: 60          # example value
  channels: [email]
  require_consent: true
  quiet_hours: "21:00-09:00"         # example value
  auto:
    - send_template_reminder
    - stop_on_order
    - stop_on_unsubscribe
  needs_approval:
    - offer_discount
    - send_custom_message
    - edit_template
  approval_threshold:
    cart_value_above: 5000             # example value, in your currency

If you run Odoo, our Abandoned Cart Recovery & AI Sales Agent handles win-back and quotation follow-up for abandoned carts inside Odoo.

Catalog enrichment

Most catalogs have gaps: thin descriptions, missing attributes, inconsistent units, no alt text. This is slow, repetitive work, and language models are good at producing a first draft from what you already have (supplier data sheets, existing fields, product images).

Safe to automate fully

  • Generating drafts of descriptions, bullet points, meta titles and alt text, stored as proposals, not published values.
  • Normalising structured fields where the rule is deterministic, such as unit formats or capitalisation.
  • Flagging gaps: products with no image, no weight, no category or a description below a length you set.

Keep behind approval

  • Publishing anything to the live store. A wrong material, size or compatibility claim leads to returns and complaints.
  • Prices, tax categories and HS codes. Never let a model infer these.
  • Regulated claims: health, safety, certifications, origin. These need someone who knows the rules for your market.
  • Bulk changes. Approve a batch, not hundreds of silent edits.

The practical way to do this is to have the agent write a proposed change with the old value, new value and source, so the reviewer can see a diff:

JSON
{
  "record": "product.template:4821",
  "field": "description_sale",
  "old": "Steel bottle 750",
  "new": "Insulated stainless steel bottle, 750 ml. Keeps drinks cold or hot. Leak-proof screw lid.",
  "sources": ["supplier_sheet.pdf", "existing attributes"],
  "status": "pending_approval"
}

Notice the risk in that example: "Leak-proof" is a claim. If it is not in the supplier sheet, the reviewer should remove it. This is exactly why publishing stays behind approval.

Support triage

Support inboxes mix order-status questions, returns, complaints, pre-sales questions and spam. An agent can read each message, link it to the customer and order, and route it before a person opens it.

Safe to automate fully

  • Classifying and tagging tickets (order status, return, damaged item, billing, pre-sales).
  • Linking tickets to orders and customers in the ERP.
  • Routing and prioritising based on category, customer value or keywords.
  • Drafting a reply for the agent queue, with the order details already pulled in.
  • Answering read-only status questions from a fixed template, if the data comes straight from the system (order state, tracking number) and nothing is invented.

Keep behind approval

  • Refunds, replacements, cancellations and credit notes. These move money or stock.
  • Address changes after an order is confirmed. A common fraud pattern.
  • Anything that sounds like a complaint, legal threat or chargeback. Route to a person immediately.
  • Free-form replies that make promises about delivery dates, warranty or compensation.

One rule worth enforcing in code: if the agent's confidence is low or the category is unclear, it routes to a human queue instead of guessing.

Stock alerts

Stock problems are expensive in both directions: stockouts lose sales, overstock ties up cash. Agents are good at watching many signals at once and summarising them in plain language.

Safe to automate fully

  • Alerts when on-hand or forecast stock drops below a threshold you defined.
  • Daily summaries of items at risk, with sales velocity and open purchase orders.
  • Sync-mismatch alerts when stock in the store and the ERP disagree.
  • Late supplier alerts when a promised delivery date passes without a receipt.

Keep behind approval

  • Creating or confirming purchase orders. Let the agent draft the RFQ with quantities and reasoning; a buyer confirms it.
  • Unpublishing products or changing availability on the storefront.
  • Price changes in response to stock levels.
  • Messages to suppliers that change terms or quantities.

If supplier delays are a frequent cause of stockouts, the Kalvyai Supplier Promise Manager tracks supplier delivery promises in Odoo, traces downstream delay impacts and lets AI read WhatsApp replies from suppliers.

Summary table

Area

Automate fully

Keep behind approval

Abandoned carts

Detection, template reminders, stop rules

Discounts, custom messages, template changes

Catalog

Drafts, gap reports, deterministic cleanup

Publishing, prices, tax codes, regulated claims

Support

Tagging, routing, linking, draft replies

Refunds, cancellations, address changes, promises

Stock

Alerts, summaries, mismatch detection

Purchase orders, delisting, price changes

Guardrails that make this work

The split above only holds if the system enforces it. A prompt that says "do not issue refunds" is not a control. These are:

Permissions at the ERP level

Give the agent its own user with only the access rights it needs. If it should never confirm a purchase order, its user should not be able to, regardless of what the model decides.

An approval gate in code

Every action goes through a check before it runs. Something like this:

Python
AUTO_ACTIONS = {"tag_ticket", "route_ticket", "send_template_reminder", "create_draft"}
APPROVAL_ACTIONS = {"offer_discount", "issue_refund", "publish_product", "confirm_po"}

def handle(action, payload, audit_log, approval_queue):
    audit_log.record(action=action, payload=payload)
    if action in AUTO_ACTIONS:
        return execute(action, payload)
    if action in APPROVAL_ACTIONS:
        return approval_queue.add(action, payload)
    # Unknown actions are never executed
    return approval_queue.add(action, payload, reason="unlisted action")

The important line is the last one: anything not on the allow list goes to a person.

A spending cap

Model calls cost money, and a loop or a large catalog run can burn through a budget quickly. Set a hard monthly limit. Our AI Base app for Odoo and AI Base for ERPNext let you plug in the AI model you choose with a hard monthly cap.

An audit trail

Record what the agent saw, what it proposed, who approved it and what changed. When a customer asks why they got a message, or an auditor asks why a PO was raised, you need the answer in the system, not in a model's chat history.

A kill switch

One setting that stops all agent actions. Test that it works before you go live.

How to start

  1. Pick one area. Abandoned carts or support tagging are usually the easiest because the outcome is measurable and the risk is low.
  2. Write the policy first. List every action, and mark each as auto, approval or forbidden.
  3. Run in suggestion-only mode. For the first period, everything goes to approval. Track how often reviewers accept the proposal unchanged.
  4. Promote actions one at a time. When a type of action is consistently approved unchanged, consider moving it to auto. Keep money-moving actions in approval.
  5. Review the audit log weekly. Look for edge cases, wrong classifications and cost spikes.
  6. Measure against a baseline. Recovered carts, time to first response, catalog completeness and stockout counts, compared to before the agent ran.

What not to expect

Agents will not fix bad data. If your stock levels are wrong or product attributes are missing at the source, the agent will make confident decisions on wrong inputs. Clean up the sync between your store and ERP first. Agents also do not replace judgement on pricing, refunds or supplier negotiation. They make the people doing that work faster by doing the reading and drafting.

How Kalvyai can help

We build and connect Odoo, ERPNext and Shopify systems, and we add AI agents that work inside them with human approvals, budgets and an audit trail. We can help you decide which actions to automate, set up the approval gates and permissions, and connect the agent to your store and ERP data. Ready-made apps are available at store.kalvyai.com. For a custom setup, contact us.

Share this article

Last updated 28 Nov 2026

  • AI agents
  • e-commerce
  • Odoo
  • ERPNext
  • Shopify
  • automation
  • human approval

Kalvyai Engineering · Engineering team

The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.

Comments

No comments yet. Questions and corrections are welcome.

Rate this post or leave a comment

Your rating (optional)
Not rated

Comments appear after an editor approves them. See our privacy notice.

Read next

AI Bank Reconciliation: Suggested Matches a Person Confirms (cover)Technical
Kalvyai EngineeringAI agents

AI Bank Reconciliation: Suggested Matches a Person Confirms

How an AI matcher suggests bank reconciliation matches from descriptions and amounts, explains each one, sorts them by confidence, and leaves the final confirmation to a person.

7 min read

Claude Tool Use for ERP Tasks: Safe Read and Write Actions (cover)Technical
Kalvyai EngineeringAI agents

Claude Tool Use for ERP Tasks: Safe Read and Write Actions

How to give Claude function calling access to your ERP without giving it the keys: narrow tools, argument validation in code, approval gates for writes, and a log entry for every call. Includes a Python example against Odoo.

6 min read

Newsletter

Get new guides in your inbox.

Practical notes on Odoo, ERPNext, Shopify and AI agents, written by the engineers who build them. No spam, and you can ask to stop at any time.

Prefer a feed? Subscribe by RSS. We use your email only to send new articles. See our privacy policy.