CASE STUDY · DEV STORE & PREVIEW READY

Shopify AI Shopping Assistant with App Proxy HMAC, Redis Controls & Live Inventory

A Shopify-native AI shopping assistant grounded in a merchant's synced catalog, store-scoped conversation memory, and live variant availability checks.

CommercePilot Shopify AI Shopping Assistant architecture map
Shopify App Proxy HMAC validation, Upstash Redis replay/rate controls, n8n orchestration, Groq catalog reasoning, and live variant availability checks.

PROBLEM & ARCHITECTURE

How the system works

PROBLEM ADDRESSED

Why naive automation fails here

Generic store chatbots frequently invent product details, leak cross-store context, or recommend out-of-stock variants when queried by shoppers.

TECHNOLOGY STACK

Core components

Shopify Admin GraphQLShopify App ProxyReact RouterTypeScriptPrismaSupabase / PostgreSQLn8nGroqUpstash Redis
EXECUTION FLOW

Architecture steps

  • Shopify Theme App Extension forwards storefront messages through Shopify App Proxy with cryptographic HMAC signature verification.
  • Upstash Redis enforces replay-attack defenses and per-session rate limits before requests reach the orchestration layer.
  • n8n orchestrates catalog matching, Groq inference, optional live Shopify Admin GraphQL variant inventory checks, and Supabase PostgreSQL persistence.
  • Dedicated health monitor and catalog sync workflows track execution reliability on a development store.
RELIABILITY CONTROLS

Deterministic safeguards

  • Strict Shopify App Proxy HMAC verification rejects unsigned or tampered requests.
  • Store-scoped session isolation ensures catalog and conversation memory stay separated by shop domain.
  • Live variant stock queries ground availability answers in Shopify API data rather than LLM memory.

EVIDENCE & HONEST BOUNDARIES

Verified scope and limitations

November 1–21, 2026 history snapshot: 44 successful assistant executions, 26/27 successful development-store catalog syncs, and 200 recent passing health monitor checks. Shopify app preview deployment marked READY.

Development-store and preview validation only — not a paid-merchant production deployment. Draft workflow (42 nodes) and published version (37 nodes) differ; location-level inventory remains an open acceptance test item.