{
  "name": "Handle e-commerce support, orders and inventory with Claude, Shopify and Slack",
  "nodes": [
    {
      "id": "dab188a1-dd4a-4a09-a143-fd93f8615441",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2128,
        48
      ],
      "parameters": {
        "width": 820,
        "height": 720,
        "content": "## Smart E-Commerce AI Agent (Inventory + Orders + Support)\n\nCreates an AI-powered sales and support agent connected to live store data from Shopify/WooCommerce. MCP ensures controlled access to inven"
      }
    },
    {
      "id": "f6a8d38d-5f96-40e5-8081-480a71ff34a3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1232,
        208
      ],
      "parameters": {
        "width": 468,
        "height": 593,
        "content": "## 1. Trigger & receive request\n\nListens for incoming customer support messages via Webhook — supports chat widgets, email-to-API bridges, and direct API calls"
      }
    },
    {
      "id": "77c96410-245c-460d-99f9-a37502ed5ccf",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        32
      ],
      "parameters": {
        "width": 412,
        "height": 801,
        "content": "## 2. Fetch live store data\n\nRetrieves real-time order status and inventory levels from Shopify in parallel to give the AI full context before reasoning"
      }
    },
    {
      "id": "e4237960-d0bc-4d9e-9ee6-ee2e9ca81db8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -16
      ],
      "parameters": {
        "width": 476,
        "height": 905,
        "content": "## 3. AI reasoning & routing\n\nClaude AI analyzes the query with live store context, classifies intent, and decides the appropriate action: respond, refund, restock alert, or escalate to human agent"
      }
    },
    {
      "id": "44268e9a-6f0a-4f16-99cb-36db907a5ace",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        80
      ],
      "parameters": {
        "width": 960,
        "height": 793,
        "content": "## 4. Act, log & notify\n\nExecutes the appropriate action — sends customer reply, triggers refund, fires low-stock alert — then logs the interaction and notifies the team via Slack and Email"
      }
    },
    {
      "id": "15447e3f-0b10-4bdf-aef4-ffa78dff73be",
      "name": "Receive customer support request",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1088,
        448
      ]
    },
    {
      "id": "66ed6e94-5152-49a1-950d-de8bf1f988a3",
      "name": "Fetch order details from Shopify",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -864,
        352
      ]
    },
    {
      "id": "304810e2-5525-4895-9ca3-e4e8b0a41fc8",
      "name": "Fetch inventory levels from Shopify",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -864,
        544
      ]
    },
    {
      "id": "a05a3e8f-8585-43ac-8bd4-8ecd4dde58b6",
      "name": "Merge order and inventory data",
      "type": "n8n-nodes-base.merge",
      "position": [
        -640,
        448
      ]
    },
    {
      "id": "4975b36b-ded0-4264-b4e4-5424cffc47aa",
      "name": "AI agent analyzes query and classifies intent",
      "type": "n8n-nodes-base.code",
      "position": [
        -416,
        448
      ]
    },
    {
      "id": "86065a38-df0b-440d-883e-b0dc4959ce74",
      "name": "Route by customer intent",
      "type": "n8n-nodes-base.switch",
      "position": [
        -192,
        432
      ]
    },
    {
      "id": "ca1327fa-d3b1-40d0-a928-291c95e5c1fc",
      "name": "Process refund via Shopify API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        32,
        160
      ]
    },
    {
      "id": "95240f59-0595-4a61-93fa-5a84d329530c",
      "name": "Send low stock alert to team",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        32,
        352
      ]
    },
    {
      "id": "cd30344d-18b1-45d7-8a88-fcb06ad0b9d2",
      "name": "Store interaction in PostgreSQL",
      "type": "n8n-nodes-base.postgres",
      "position": [
        32,
        544
      ]
    },
    {
      "id": "b36154fa-ba51-43d2-b743-b2571756f856",
      "name": "Escalate complex cases to human agent",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        32,
        736
      ]
    },
    {
      "id": "8ad8faa7-eada-4f9b-aa1c-bd78b3a413fc",
      "name": "Build final customer response",
      "type": "n8n-nodes-base.code",
      "position": [
        256,
        448
      ]
    },
    {
      "id": "b88a49b6-54b9-4f5d-b008-b1b94c8fc4a3",
      "name": "Email AI response to customer",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        480,
        448
      ]
    },
    {
      "id": "0972be52-8ddb-4fd7-8240-dce3590af4d4",
      "name": "Post interaction summary to Slack",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        640
      ]
    },
    {
      "id": "7002e8d3-523f-4ff1-a00d-86705589c36c",
      "name": "Log success and track agent statistics",
      "type": "n8n-nodes-base.code",
      "position": [
        704,
        544
      ]
    },
    {
      "id": "80ffd0b8-6c83-4cc0-afe3-3b9b37054f80",
      "name": "Send immediate webhook acknowledgement",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        480,
        256
      ]
    }
  ],
  "connections": {
    "Route by customer intent": {
      "main": [
        [
          {
            "node": "Process refund via Shopify API",
            "type": "main",
            "index": 0
          },
          {
            "node": "Store interaction in PostgreSQL",
            "type": "main",
            "index": 0
          },
          {
            "node": "Escalate complex cases to human agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send low stock alert to team",
            "type": "main",
            "index": 0
          },
          {
            "node": "Store interaction in PostgreSQL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Store interaction in PostgreSQL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send low stock alert to team": {
      "main": [
        [
          {
            "node": "Build final customer response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build final customer response": {
      "main": [
        [
          {
            "node": "Send immediate webhook acknowledgement",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email AI response to customer",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post interaction summary to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email AI response to customer": {
      "main": [
        [
          {
            "node": "Log success and track agent statistics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge order and inventory data": {
      "main": [
        [
          {
            "node": "AI agent analyzes query and classifies intent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process refund via Shopify API": {
      "main": [
        [
          {
            "node": "Build final customer response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store interaction in PostgreSQL": {
      "main": [
        [
          {
            "node": "Build final customer response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch order details from Shopify": {
      "main": [
        [
          {
            "node": "Merge order and inventory data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive customer support request": {
      "main": [
        [
          {
            "node": "Fetch order details from Shopify",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch inventory levels from Shopify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post interaction summary to Slack": {
      "main": [
        [
          {
            "node": "Log success and track agent statistics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch inventory levels from Shopify": {
      "main": [
        [
          {
            "node": "Merge order and inventory data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Escalate complex cases to human agent": {
      "main": [
        [
          {
            "node": "Build final customer response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI agent analyzes query and classifies intent": {
      "main": [
        [
          {
            "node": "Route by customer intent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}