Get the FREE Ultimate OpenClaw Setup Guide →

shopify-automation

npx machina-cli add skill davepoon/buildwithclaude/shopify-automation --openclaw
Files (1)
SKILL.md
5.9 KB

Shopify Automation via Rube MCP

Automate Shopify operations through Composio's Shopify toolkit via Rube MCP.

Toolkit docs: composio.dev/toolkits/shopify

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active Shopify connection via RUBE_MANAGE_CONNECTIONS with toolkit shopify
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit shopify
  3. If connection is not ACTIVE, follow the returned auth link to complete Shopify OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Manage Products

When to use: User wants to list, search, create, or manage products

Tool sequence:

  1. SHOPIFY_GET_PRODUCTS / SHOPIFY_GET_PRODUCTS_PAGINATED - List products [Optional]
  2. SHOPIFY_GET_PRODUCT - Get single product details [Optional]
  3. SHOPIFY_BULK_CREATE_PRODUCTS - Create products in bulk [Optional]
  4. SHOPIFY_GET_PRODUCTS_COUNT - Get product count [Optional]

Key parameters:

  • product_id: Product ID for single retrieval
  • title: Product title
  • vendor: Product vendor
  • status: 'active', 'draft', or 'archived'

Pitfalls:

  • Paginated results require cursor-based pagination for large catalogs
  • Product variants are nested within the product object

2. Manage Orders

When to use: User wants to list, search, or inspect orders

Tool sequence:

  1. SHOPIFY_GET_ORDERS_WITH_FILTERS - List orders with filters [Required]
  2. SHOPIFY_GET_ORDER - Get single order details [Optional]
  3. SHOPIFY_GET_FULFILLMENT - Get fulfillment details [Optional]
  4. SHOPIFY_GET_FULFILLMENT_EVENTS - Track fulfillment events [Optional]

Key parameters:

  • status: Order status filter ('any', 'open', 'closed', 'cancelled')
  • financial_status: Payment status filter
  • fulfillment_status: Fulfillment status filter
  • order_id: Order ID for single retrieval
  • created_at_min/created_at_max: Date range filters

Pitfalls:

  • Order IDs are numeric; use string format for API calls
  • Default order listing may not include all statuses; specify 'any' for all

3. Manage Customers

When to use: User wants to list or search customers

Tool sequence:

  1. SHOPIFY_GET_ALL_CUSTOMERS - List all customers [Required]

Key parameters:

  • limit: Number of customers per page
  • since_id: Pagination cursor

Pitfalls:

  • Customer data includes order count and total spent
  • Large customer lists require pagination

4. Manage Collections

When to use: User wants to manage product collections

Tool sequence:

  1. SHOPIFY_GET_SMART_COLLECTIONS - List smart collections [Optional]
  2. SHOPIFY_GET_SMART_COLLECTION_BY_ID - Get collection details [Optional]
  3. SHOPIFY_CREATE_SMART_COLLECTIONS - Create a smart collection [Optional]
  4. SHOPIFY_ADD_PRODUCT_TO_COLLECTION - Add product to collection [Optional]
  5. SHOPIFY_GET_PRODUCTS_IN_COLLECTION - List products in collection [Optional]

Key parameters:

  • collection_id: Collection ID
  • product_id: Product ID for adding to collection
  • rules: Smart collection rules for automatic inclusion

Pitfalls:

  • Smart collections auto-populate based on rules; manual collections use custom collections API
  • Collection count endpoints provide approximate counts

5. Manage Inventory

When to use: User wants to check or manage inventory levels

Tool sequence:

  1. SHOPIFY_GET_INVENTORY_LEVELS / SHOPIFY_RETRIEVES_A_LIST_OF_INVENTORY_LEVELS - Check stock [Required]
  2. SHOPIFY_LIST_LOCATION - List store locations [Optional]

Key parameters:

  • inventory_item_ids: Inventory item IDs to check
  • location_ids: Location IDs to filter by

Pitfalls:

  • Inventory is tracked per variant per location
  • Location IDs are required for multi-location stores

Common Patterns

Pagination

  • Use limit and page_info cursor for paginated results
  • Check response for next link header
  • Continue until no more pages available

GraphQL Queries

For advanced operations:

1. Call SHOPIFY_GRAPH_QL_QUERY with custom query
2. Parse response from data object

Known Pitfalls

API Versioning:

  • Shopify REST API has versioned endpoints
  • Some features require specific API versions

Rate Limits:

  • REST API: 2 requests/second for standard plans
  • GraphQL: 1000 cost points per second

Quick Reference

TaskTool SlugKey Params
List productsSHOPIFY_GET_PRODUCTS(filters)
Get productSHOPIFY_GET_PRODUCTproduct_id
Products paginatedSHOPIFY_GET_PRODUCTS_PAGINATEDlimit, page_info
Bulk createSHOPIFY_BULK_CREATE_PRODUCTSproducts
Product countSHOPIFY_GET_PRODUCTS_COUNT(none)
List ordersSHOPIFY_GET_ORDERS_WITH_FILTERSstatus, financial_status
Get orderSHOPIFY_GET_ORDERorder_id
List customersSHOPIFY_GET_ALL_CUSTOMERSlimit
Shop detailsSHOPIFY_GET_SHOP_DETAILS(none)
Validate accessSHOPIFY_VALIDATE_ACCESS(none)
Smart collectionsSHOPIFY_GET_SMART_COLLECTIONS(none)
Products in collectionSHOPIFY_GET_PRODUCTS_IN_COLLECTIONcollection_id
Inventory levelsSHOPIFY_GET_INVENTORY_LEVELSinventory_item_ids
LocationsSHOPIFY_LIST_LOCATION(none)
FulfillmentSHOPIFY_GET_FULFILLMENTorder_id, fulfillment_id
GraphQLSHOPIFY_GRAPH_QL_QUERYquery
Bulk querySHOPIFY_BULK_QUERY_OPERATIONquery

Powered by Composio

Source

git clone https://github.com/davepoon/buildwithclaude/blob/main/plugins/all-skills/skills/shopify-automation/SKILL.mdView on GitHub

Overview

Automate Shopify operations using Composio's Shopify toolkit through Rube MCP. It covers products, orders, customers, inventory, and collections, with a recommended first step to search tool schemas to stay in sync. This setup helps teams scale tasks, reduce manual errors, and accelerate workflows.

How This Skill Works

Connect Rube MCP to Shopify and always run RUBE_SEARCH_TOOLS first to obtain current tool schemas. Set up the MCP endpoint (https://rube.app/mcp), verify connectivity, and authorize Shopify via OAuth when prompted. Then use the Core Workflows (Products, Orders, Customers, Collections, Inventory) with their respective SHOPIFY_* tools to perform automated tasks.

When to Use It

  • List, search, create, or update products in bulk
  • List or inspect customer orders and fulfillment status
  • Audit or refresh customer records and segments
  • Manage smart collections and assign products automatically
  • Check and adjust inventory levels across locations

Quick Start

  1. Step 1: Verify Rube MCP availability by running RUBE_SEARCH_TOOLS
  2. Step 2: Manage connections with SHOPIFY via RUBE_MANAGE_CONNECTIONS and complete OAuth if prompted
  3. Step 3: Run a Core Workflow (e.g., SHOPIFY_GET_PRODUCTS or SHOPIFY_GET_ALL_CUSTOMERS) to verify setup

Best Practices

  • Always call RUBE_SEARCH_TOOLS first to sync current schemas
  • Use string-form IDs for numeric Shopify IDs in API calls
  • Paginate large product or order lists to avoid missing data
  • Prefer bulk create/update tools for efficiency
  • Verify the connection status is ACTIVE before running workflows

Example Use Cases

  • Onboard a new catalog: bulk-create 100+ products with titles, vendors, and statuses
  • Audit open orders and pull the fulfillment details for customer support
  • Segment high-value customers by total spent and recent activity
  • Create a smart collection rule and automatically include qualifying products
  • Reconcile stock across warehouses by fetching inventory levels and updating quantities

Frequently Asked Questions

Add this skill to your agents

Related Skills

Sponsor this space

Reach thousands of developers