Skip to content
AGNT
All guides

Connect your Shopify store and let an AGNT agent manage products, orders, customer support, and inventory around the clock.

businessintermediate

How to run your Shopify store with an AGNT agent

Connect your Shopify store and let an AGNT agent manage products, orders, customer support, and inventory around the clock.

An AGNT agent is not a chatbot bolted onto your store — it is a skilled worker that reads your catalog, processes orders, handles returns, answers customers on WhatsApp, and alerts you when stock runs low. This guide walks you through connecting Shopify and configuring the agent to run your e-commerce operations end to end.

AGNT Operator Experience15 min6 sections
shopifye-commerceautomationbusiness

Prerequisites

  • A Shopify store with at least one published product.
  • Shopify Admin API access (custom app or private app credentials).
  • An AGNT account with a business-tier subscription.
  • A WhatsApp Business number if you want customer support via WhatsApp.

Step 1 — Connect the Shopify Admin API

In your AGNT dashboard, navigate to Integrations and select Shopify. You will need your Shopify store URL (yourstore.myshopify.com) and an Admin API access token. Create a custom app in Shopify Admin → Settings → Apps and sales channels → Develop apps, grant it read/write access to Products, Orders, Customers, and Inventory, and copy the Admin API access token.

Paste the token into AGNT. The agent immediately pulls your product catalog, active orders, and inventory levels. This initial sync takes under a minute for stores with fewer than 10,000 SKUs.

bash

# Verify the connection from AGNT's API
curl -H "Authorization: Bearer $AGNT_TOKEN" \
  https://api.agntdot.com/v1/integrations/shopify/status
# → { "connected": true, "products_synced": 847, "last_sync": "2026-04-12T09:00:00Z" }

Step 2 — Configure product catalog knowledge

The agent needs to understand your products the way a senior sales associate would — not just titles and prices, but use cases, sizing guidance, material details, and common customer questions. AGNT chunks your Shopify product descriptions, metafields, and variant data into an embedded knowledge pack.

Review the auto-generated knowledge pack in the AGNT dashboard. Add supplementary context where Shopify descriptions fall short: sizing charts, care instructions, bundle recommendations, cross-sell pairings. Each addition is chunked, embedded, and available to the agent within seconds.

The agent uses this knowledge when answering customer questions ('Is this dress true to size?'), when generating product recommendations, and when writing order confirmation messages that reference specific product details.

Step 3 — Set up order management rules

Define the rules the agent follows for order lifecycle events. In the AGNT rules editor, configure policies for: order confirmation messages (channel and tone), fulfillment updates (ship notification, tracking link delivery), payment failure retries, and cancellation windows.

Example rule set: - On new order: send WhatsApp confirmation within 30 seconds with order summary and estimated delivery. - On fulfillment: send tracking link via the customer's preferred channel. - On payment failure: retry once after 2 hours, then notify customer with a payment update link. - On cancellation request within 24 hours: auto-approve and process refund. After 24 hours: escalate to human.

The agent executes these rules autonomously. Every action is logged in the AGNT activity feed with the Shopify order ID for full traceability.

Step 4 — Automate customer support via WhatsApp

Connect your WhatsApp Business number through the AGNT WhatsApp integration (360Dialog). Once connected, the agent answers inbound customer messages using your product knowledge pack and order data. It handles: 'Where is my order?', 'Can I change the size?', 'Do you have this in blue?', 'I want to return this item.'

The agent resolves order-status queries by pulling real-time data from Shopify's Orders API — no canned responses, no stale information. For product questions, it searches the knowledge pack and responds with specifics from your catalog.

Set up escalation rules so the agent hands off to a human when it encounters edge cases: high-value complaints, warranty claims, or anything it cannot confidently resolve. Escalations appear in the AGNT inbox with full conversation context.

Step 5 — Handle inventory alerts

Configure inventory thresholds per product or per collection. When stock drops below the threshold, the agent sends an alert to your designated channel (Slack, WhatsApp, email) with the product name, current stock, and a reorder recommendation based on your 30-day sales velocity.

For stores using Shopify's multi-location inventory, the agent tracks stock per location and can alert per warehouse. It also flags inventory discrepancies — when available quantity does not match committed quantity — so you catch sync issues before they become oversells.

bash

# Example inventory alert payload
{
  "product": "Organic Cotton Tee - Black / M",
  "location": "Bali Warehouse",
  "current_stock": 3,
  "threshold": 10,
  "avg_daily_sales": 2.4,
  "days_until_stockout": 1.25,
  "recommended_reorder": 50
}

Step 6 — Manage returns and refunds

Define your return policy in the agent's rules: return window (days), condition requirements, restocking fees, exchange vs refund preference. The agent enforces these rules consistently across every customer interaction — no exceptions unless a human overrides.

When a customer initiates a return via WhatsApp or any connected channel, the agent checks eligibility against the policy, generates a return label (if you use a supported shipping provider), and processes the refund or exchange through Shopify's API. The entire flow is hands-free for qualifying returns.

Non-qualifying returns — outside the window, worn items, final-sale products — are declined with a clear explanation referencing your policy. The customer can escalate, which routes to your human support queue with full context.

Key terms

Next steps

FAQ

Guide FAQ.

Common questions about this business guide.

Connect your Shopify store and let an AGNT agent manage products, orders, customer support, and inventory around the clock.

People also ask.