Skip to main content

Shopify Integration

The Shopify integration connects your store's product catalog, order data, and customer profiles to Agent Red's knowledge base. Once connected, the AI agents can answer product questions, look up order status, and reference your inventory — all using live data from your store.

Shopify is included in all Agent Red plans. No add-on purchase is required.

Prerequisites

Before connecting Shopify, confirm you have:

  • An active Shopify store (any plan — Basic, Shopify, Advanced, or Plus)
  • Shopify admin access (you need permission to approve app installations)
  • An active Agent Red account with your API key

How the connection works

Agent Red connects to Shopify through OAuth 2.0, the same authorization flow that all Shopify apps use. You approve specific data permissions, and Agent Red receives a scoped access token. Agent Red never sees your Shopify admin password.

Requested permissions

Agent Red requests read-only access to four data scopes. It does not request write access to your store.

ScopeWhat Agent Red readsWhy
read_productsProduct names, descriptions, prices, images, variants, availabilityAnswer product questions, recommend products, check pricing
read_ordersOrder status, tracking numbers, delivery dates, line itemsHandle "where is my order?" and order-related queries
read_customersCustomer names, email (for matching), order historyIdentify returning customers, personalize responses, feed Persistent Customer Memory profiles
read_inventoryStock levels by location and variantAnswer availability questions ("is this in stock?")
Read-only access

Agent Red never modifies your Shopify data. It cannot create orders, change prices, update inventory, or modify customer records. The integration is strictly read-only.

Data sync

After you approve the connection, Agent Red performs an initial sync and then keeps data current through webhooks.

Initial sync

The initial sync imports your complete catalog and recent order history. Timing depends on your catalog size:

Catalog sizeApproximate sync time
Under 500 products2–5 minutes
500–5,000 products5–15 minutes
5,000–50,000 products15–45 minutes
Over 50,000 products45–90 minutes (batched)

During the initial sync, the system:

  1. Fetches all active products with their variants, descriptions, and images
  2. Imports order data from the past 90 days
  3. Loads customer profiles associated with those orders
  4. Generates vector embeddings using text-embedding-3-large
  5. Builds the Cosmos DB vector search index

You can start handling conversations as soon as the initial sync completes. You do not need to wait for any manual step after sync finishes.

All synced customer data — profiles, order history, and product interactions — is automatically indexed into Agent Red's Persistent Customer Memory system, enabling personalized responses from the very first conversation.

Ongoing sync (webhooks)

After the initial import, Shopify sends webhook notifications to Agent Red whenever data changes. This keeps the knowledge base current without polling.

Webhook eventWhat triggers itAgent Red actionLatency
products/updateProduct edited in Shopify adminRe-index product embeddingsUnder 60 seconds
products/createNew product publishedAdd to knowledge base and indexUnder 60 seconds
products/deleteProduct removed or archivedRemove from knowledge baseUnder 60 seconds
orders/updatedOrder status changes (shipped, delivered)Update order status cacheUnder 30 seconds
inventory_levels/updateStock level changesUpdate availability dataUnder 30 seconds

Catalog sync schedule

For data that does not trigger webhooks (bulk imports, metafield changes), Agent Red runs a scheduled catalog reconciliation:

  • Every 15 minutes — lightweight check for products modified since last sync
  • Daily (02:00 UTC) — full catalog reconciliation to catch any missed updates

Product catalog mapping

Shopify product fields map to specific knowledge base fields that the AI agents use when answering questions.

Shopify fieldKnowledge base fieldHow it is used
titleProduct NamePrimary identifier in responses ("The Classic Leather Wallet...")
body_htmlProduct DescriptionSemantic search target; used to answer feature and material questions
variants[].pricePricePrice comparisons, pricing questions
variants[].titleVariant NameSize, color, and option-specific questions
variants[].inventory_quantityAvailability"Is this in stock?" queries
images[].srcImage ReferenceReferenced in responses (if your channel supports images)
tagsCategory TagsHelps the retrieval agent filter by category
product_typeProduct TypeCategory-level search and recommendations
vendorVendor/BrandBrand-specific questions
metafieldsExtended AttributesCustom data (care instructions, dimensions, materials) if configured

Handling product variants

Products with multiple variants (sizes, colors) are indexed so that each variant is searchable independently. When a customer asks "Do you have the blue hoodie in large?", the retrieval agent searches at the variant level, not the product level.

Order data access

When a customer asks about an order, the intent classifier routes the query to the knowledge retrieval agent, which looks up the order in the order status cache.

Order fields available to the AI

FieldExampleUsed for
Order number#12345Identifying the order
Fulfillment statusshipped, delivered, unfulfilledCurrent status response
Tracking number1Z999AA10123456784Providing tracking links
Estimated deliveryJanuary 31, 2026Delivery date questions
Line itemsClassic Hoodie (Blue, Large) × 1Order contents confirmation
Shipping address (city/state only)Austin, TXDelivery location confirmation
Privacy

Agent Red only accesses the city and state from shipping addresses. Full street addresses are not stored in the knowledge base or exposed in AI responses. Customer email and phone are used for identity matching but are never included in generated responses. See PII Protection for details.

Testing the connection

After the initial sync completes, verify the integration by running test conversations through the Agent Red dashboard or API.

Test queryExpected behaviorValidates
"What products do you have?"Lists product categories or popular itemsProduct catalog sync
"Tell me about [specific product name]"Returns accurate description, price, availabilityProduct detail retrieval
"Is [product] available in [size/color]?"Checks variant-level inventoryVariant indexing
"How much does [product] cost?"Returns current pricePrice sync
"Where is my order #[real order number]?"Returns status, tracking, estimated deliveryOrder data access
"I want to return my order"References your return policyPolicy document retrieval

What to check

  • Accuracy — Do product names, prices, and availability match your Shopify admin?
  • Freshness — Change a product price in Shopify. Does the AI reflect the new price within 60 seconds?
  • Completeness — Are all products searchable, including recently added ones?
  • Variant handling — Does the AI distinguish between sizes and colors correctly?

Troubleshooting

Common issues

SymptomLikely causeResolution
Products missing from AI responsesInitial sync incomplete or product is in draft statusCheck sync status in dashboard; ensure products are active/published in Shopify
Stale pricing or availabilityWebhook delivery failureCheck the Shopify admin webhook health page; re-trigger sync from Agent Red dashboard
"Order not found" for valid ordersOrder is older than 90 days (outside initial import window)Extend order import range in Agent Red settings, or trigger a manual order re-sync
Connection fails during OAuthShopify app permissions changed or token expiredDisconnect and reconnect Shopify from the Agent Red dashboard
Slow initial syncLarge catalog (10,000+ products)Normal behavior; sync runs in background batches. Monitor progress in dashboard.

Webhook health

Shopify provides a webhook health dashboard in your Shopify admin under Settings → Notifications → Webhooks. If Agent Red's webhook endpoint shows failures:

  1. Verify the Agent Red API is reachable (check the status page)
  2. Check for Shopify API rate limiting (Agent Red respects Shopify's 40 requests/second limit)
  3. If failures persist for more than 1 hour, disconnect and reconnect the integration

Data sync status

The Agent Red dashboard shows real-time sync status:

  • Last successful sync — timestamp of the most recent data update
  • Products indexed — count of products in the knowledge base vs. total active products in Shopify
  • Webhook delivery rate — percentage of webhooks received successfully (target: 99.9%)
  • Index health — vector search index status (healthy, rebuilding, or error)

Next steps

  • How It Works — Understand the full agent pipeline that uses Shopify data.
  • Initial Setup — Complete setup guide including knowledge base and go-live steps.

© 2026 Remaker Digital, a DBA of VanDusen & Palmeter, LLC. All rights reserved.

Was this page helpful?