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.
Walkthrough
Watch the skill in action
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 tablereferences/use-cases.md— All 8 use cases with prompts and expected outputsreferences/report-server.md— How to serve HTML reports from your OpenClaw host
How to use it
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.
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.
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 tablereferences/use-cases.md— All 8 use cases with prompts and expected outputsreferences/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 case | Required scopes |
|---|---|
| PDP Rewrite | read_products, write_products |
| Weekly Digest | read_orders, read_products, read_inventory |
| Competitive Intel | read_products, read_price_rules |
| Abandoned Cart Recovery | read_checkouts, read_customers |
| Flash Sale Planner | read_products, read_inventory, write_price_rules, write_discounts |
| Low Stock Alert | read_inventory, read_products |
| Customer VIP Report | read_customers, read_orders |
| Product Launch Prep | read_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
| Error | Cause | Fix |
|---|---|---|
401 Unauthorized | Wrong client ID or secret | Check env vars against Shopify Dev Dashboard |
403 Forbidden | Missing API scope | Add scope in Dev Dashboard, reinstall app |
404 on /reports/ | Report route not registered | See references/report-server.md |
Token expired | Token older than 24h | Request a new token — see references/auth.md |
| Empty product list | Wrong store domain | Confirm SHOPIFY_STORE_DOMAIN in your env |