automation

Run eight Shopify store workflows through OpenClaw, from PDP rewrites to VIP reports.

Connect OpenClaw to the Shopify Admin API and run agent-driven store workflows, including product rewrites, weekly digests, competitive intelligence, abandoned cart recovery, inventory alerts, VIP reporting, and launch prep.

This walkthrough shows how to connect OpenClaw to Shopify and actually run the store workflows end to end, not just wire the API. It covers the auth setup, the live use cases, and the reporting flow that makes the skill practical.

OpenClaw
Claude Code logoClaude Code
Claude CoWork
Codex logoCodex
Cursor logoCursor
Rewrite PDPsGenerate weekly digestsRecover abandoned cartsshopify

Walkthrough

Watch the skill in action

Watch on YouTube

This walkthrough shows how to connect OpenClaw to Shopify and actually run the store workflows end to end, not just wire the API. It covers the auth setup, the live use cases, and the reporting flow that makes the skill practical.


How it works

Shopify Pilot

Connect OpenClaw to your Shopify store and run agent-driven workflows from any channel.

Reference files:

  • references/auth.md — API auth, 3 env vars, token helper, scope table
  • references/use-cases.md — All 8 use cases with prompts and expected outputs
  • references/report-server.md — How to serve HTML reports from your OpenClaw host


How to use it

1

Download the skill package

Hit the Download button in the sidebar (desktop) or the button pinned at the bottom (mobile). You'll get a ZIP.

2

Add it to your agent

Extract and drop the folder into your agent's plugins directory. For Claude Code / OpenClaw, that's .claude/plugins/ in your project root.

3

Start prompting

Your agent now knows the skill. Describe the task in plain English — it handles the rest.


Developer & Source DetailsRaw SKILL.md and repository files

Skill Definition (SKILL.md)

The raw instruction document consumed by your AI agent.

Shopify Pilot

Connect OpenClaw to your Shopify store and run agent-driven workflows from any channel.

Reference files:

  • references/auth.md — API auth, 3 env vars, token helper, scope table
  • references/use-cases.md — All 8 use cases with prompts and expected outputs
  • references/report-server.md — How to serve HTML reports from your OpenClaw host

Architecture

You (any channel)
        ↓
   OpenClaw Agent
        ↓
  Shopify Admin API
        ↓
  HTML Report (optional)
        ↓
  Link posted back to your channel

Quick Start Checklist

1. Set 3 environment variables

SHOPIFY_CLIENT_ID=your_client_id
SHOPIFY_CLIENT_SECRET=your_client_secret
SHOPIFY_STORE_DOMAIN=yourstore.myshopify.com

2. Verify auth works Run the token check in references/auth.md. A successful response returns a shpat_... token. 401 = wrong credentials. 403 = missing scope.

3. Grant the right scopes for your use case

Use caseRequired scopes
PDP Rewriteread_products, write_products
Weekly Digestread_orders, read_products, read_inventory
Competitive Intelread_products, read_price_rules
Abandoned Cart Recoveryread_checkouts, read_customers
Flash Sale Plannerread_products, read_inventory, write_price_rules, write_discounts
Low Stock Alertread_inventory, read_products
Customer VIP Reportread_customers, read_orders
Product Launch Prepread_products, write_products, read_inventory

4. Register the report route (optional — only needed for UC2, UC3, and UC7) Set OPENCLAW_PUBLIC_URL=https://your-openclaw-host.example.com in your env and see references/report-server.md.


Use Case Routing

You say...Run
"rewrite my product description" / "improve my PDP"UC1 — PDP Rewrite
"weekly digest" / "how did my store do" / "Monday briefing"UC2 — Weekly Digest
"check my competitors" / "pricing gaps" / "what should I charge"UC3 — Competitive Intel
"abandoned carts" / "recover lost sales" / "cart recovery"UC4 — Abandoned Cart Recovery
"flash sale" / "move slow stock" / "run a promo"UC5 — Flash Sale Planner
"low stock" / "what needs restocking" / "inventory alert"UC6 — Low Stock Alert
"top customers" / "VIP list" / "who spends the most"UC7 — Customer VIP Report
"launch this product" / "is this ready to publish" / "product checklist"UC8 — Product Launch Prep

Token Lifecycle

Shopify access tokens expire after 24 hours. Request a fresh token at the start of each workflow run — never reuse a token across days. See references/auth.md for the token helper.


Common Errors

ErrorCauseFix
401 UnauthorizedWrong client ID or secretCheck env vars against Shopify Dev Dashboard
403 ForbiddenMissing API scopeAdd scope in Dev Dashboard, reinstall app
404 on /reports/Report route not registeredSee references/report-server.md
Token expiredToken older than 24hRequest a new token — see references/auth.md
Empty product listWrong store domainConfirm SHOPIFY_STORE_DOMAIN in your env