{
  "name": "Context 4 \u2014 Competitor Price Monitor",
  "nodes": [
    {
      "parameters": {},
      "id": "b0086521d925",
      "name": "Click 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        260,
        300
      ]
    },
    {
      "parameters": {
        "operation": "extract",
        "scraper": "amazon-product",
        "extractUrl": "https://www.amazon.com/dp/B09B8V1LZ3",
        "extractLimit": 1,
        "waitForCompletion": true
      },
      "id": "d5a1228f1489",
      "name": "Get Product Price",
      "type": "n8n-nodes-apexapi.apexApiContext",
      "typeVersion": 1,
      "position": [
        520,
        300
      ],
      "credentials": {
        "apexApiApi": {
          "id": "REPLACE_ME",
          "name": "ApexApi account"
        }
      }
    },
    {
      "parameters": {
        "resource": "chat",
        "operation": "message",
        "model": "google/gemini-2.5-flash",
        "prompt": "=A product costs {{ $json.records[0].final_price }} {{ $json.records[0].currency }} with a {{ $json.records[0].rating }} rating and {{ $json.records[0].reviews_count }} reviews. In one sentence, is that competitively priced and why?",
        "options": {}
      },
      "id": "b3bb936da890",
      "name": "Price verdict",
      "type": "n8n-nodes-apexapi.apexApi",
      "typeVersion": 1,
      "position": [
        820,
        300
      ],
      "credentials": {
        "apexApiApi": {
          "id": "REPLACE_ME",
          "name": "ApexApi account"
        }
      }
    },
    {
      "parameters": {
        "content": "### \ud83d\udd11 First: get a free ApexApi key\nThis workflow calls ApexApi, so you need a key (no card required):\n**https://apexapi.dev/?ref=n8n-context-price-monitor**\nThen in n8n add it as the **ApexApi account** credential \u2014 every ApexApi node in this workflow uses it.\n\n---\n\n## 4 \u00b7 Competitor Price Monitor\n\n**What it does:** pulls a product's live price + rating, then an AI gives a one-line pricing verdict.\n\n**Run it:** click **Test workflow**.\n\n**Turn it into a monitor:**\n\u2022 Replace the manual trigger with a **Schedule** trigger (e.g. daily).\n\u2022 Add an **IF** node: if `records[0].final_price` dropped below your threshold \u2192\n\u2022 Add a **Slack / Email / Telegram** node to alert you.\n\n**Make it yours:** change the product URL, or track several with multiple URLs.",
        "height": 470,
        "width": 460,
        "color": 4
      },
      "id": "955d9d38e211",
      "name": "Sticky e519b85c2619",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        240,
        -60
      ]
    }
  ],
  "connections": {
    "Click 'Test workflow'": {
      "main": [
        [
          {
            "node": "Get Product Price",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Product Price": {
      "main": [
        [
          {
            "node": "Price verdict",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "active": false
}
