{
  "name": "E-commerce Chat Example — live stock",
  "nodes": [
    {
      "parameters": {
        "content": "## Try It Out!\n\n**Chat → Feedpipe search → reply with name and price. No LLM required.**\n\n### To get started:\n1. Connect a feed at [feedpipe.app](https://feedpipe.app/ui/welcome) and run Collect\n2. In **Search catalog**, set the URL to your shop and add `Authorization: Bearer …` if the shop has a key\n3. Click **Open chat** and type a product word from your feed\n\nLocal demo:\n```\nfeedpipe collect --shop mock_5\nfeedpipe web\n```\nURL: `http://127.0.0.1:8080/v1/catalog/mock_5/search`",
        "height": 420,
        "width": 400
      },
      "id": "b1000001-0001-4000-8000-000000000001",
      "name": "Introduction Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-520, -280]
    },
    {
      "parameters": {
        "content": "## [Video Tutorial](https://youtu.be/REPLACE_WITH_YOUTUBE_ID)\n@[youtube](REPLACE_WITH_YOUTUBE_ID)\n\nReplace `REPLACE_WITH_YOUTUBE_ID` with your walkthrough video ID (the part after `v=`).",
        "height": 352,
        "width": 512,
        "color": 7
      },
      "id": "b1000001-0010-4000-8000-000000000010",
      "name": "Video Tutorial",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [720, -280]
    },
    {
      "parameters": {
        "content": "💡 Chat trigger starts the flow. Activate later to share the public chat URL.",
        "height": 200,
        "width": 280,
        "color": 7
      },
      "id": "b1000001-0011-4000-8000-000000000011",
      "name": "Chat Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-40, -220]
    },
    {
      "parameters": {
        "content": "**Search catalog** posts the chat text to Feedpipe `POST /v1/catalog/{shop}/search` and reads `items`.\n\n**Reply** formats name — price for the chat window.",
        "height": 220,
        "width": 360,
        "color": 7
      },
      "id": "b1000001-0012-4000-8000-000000000012",
      "name": "Flow Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [280, -240]
    },
    {
      "parameters": {
        "public": true,
        "options": {}
      },
      "id": "b1000001-0002-4000-8000-000000000002",
      "name": "Chat",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [0, 0],
      "webhookId": "ecommerce-chat-example"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://feedpipe.app/v1/catalog/YOUR_SHOP/search",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer PASTE_SHOP_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ q: $json.chatInput, limit: 5 }) }}",
        "options": {}
      },
      "id": "b1000001-0003-4000-8000-000000000003",
      "name": "Search catalog",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [320, 0]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "reply",
              "name": "output",
              "value": "={{ $json.items.map(item => item.name + ' — ' + item.price).join('\\n') }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "b1000001-0004-4000-8000-000000000004",
      "name": "Reply",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [640, 0]
    }
  ],
  "connections": {
    "Chat": {
      "main": [
        [
          {
            "node": "Search catalog",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search catalog": {
      "main": [
        [
          {
            "node": "Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "settings": {
    "executionOrder": "v1"
  },
  "active": false,
  "tags": []
}
