{
  "name": "Sync Amazon Luna Prime games to Google Sheets with automatic updates",
  "nodes": [
    {
      "id": "6b95e9e1-d883-4e05-932f-c67963ddf17d",
      "name": "HTTP Request1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1408,
        352
      ]
    },
    {
      "id": "46d0296b-bf10-45a1-b936-590db25bbb7c",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1216,
        352
      ]
    },
    {
      "id": "853ee870-2926-48a4-b7bb-69efab9dd2ff",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        848,
        352
      ]
    },
    {
      "id": "6a6b35e4-cac9-46fa-a69b-83be9fbd5331",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1040,
        352
      ]
    },
    {
      "id": "7947a59c-696e-44b0-a952-d2daea6c5606",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2640,
        0
      ],
      "parameters": {
        "width": 640,
        "height": 536,
        "content": "### Section 3 – New game notifications\n\nThe “isNew” and “If1” nodes keep only new titles. For each new game, the image is fetched, items are processed in small batches and a Wait node adds a short pau"
      }
    },
    {
      "id": "6ffc3165-6d9c-4bdd-b56a-f15f5cf5eb57",
      "name": "parsing",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        352
      ]
    },
    {
      "id": "8f1a7332-659b-47e6-9baf-cc4f140de00c",
      "name": "isNew",
      "type": "n8n-nodes-base.code",
      "position": [
        1792,
        352
      ]
    },
    {
      "id": "1ddad36e-291b-469e-bc72-e47ec4e1d736",
      "name": "Send a message1",
      "type": "n8n-nodes-base.discord",
      "position": [
        3136,
        352
      ]
    },
    {
      "id": "ea4ad23c-0658-43a6-b84b-4bfe85198e25",
      "name": "Append or update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2288,
        336
      ]
    },
    {
      "id": "c1ba88a4-ba57-4aaf-a135-2d2412c575c4",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        1984,
        352
      ]
    },
    {
      "id": "6bb72785-2d49-41b2-88d8-1517abf5efda",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2736,
        336
      ]
    },
    {
      "id": "e3c2a176-adae-4049-8a4e-c94e7ad789f4",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2960,
        352
      ]
    },
    {
      "id": "3e1941a4-c6a6-4a71-b976-ab8e66e768de",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2144,
        0
      ],
      "parameters": {
        "width": 376,
        "height": 532,
        "content": "### Section 2 – Update Google Sheet\n\nThe “Append or update row in sheet” node writes the parsed games to your Google Sheet. Rows are matched by title so existing entries are updated and only new games"
      }
    },
    {
      "id": "18d4c8bd-0114-4b73-8fa0-6f9e3780b474",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        0
      ],
      "parameters": {
        "width": 1312,
        "height": 528,
        "content": "### Section 1 – Amazon request parameters\n\nThe **Edit Fields** node defines all required headers for the Amazon Luna request.  \nHere you should set:\n\n- `x-amz-locale` (language/region)\n- `x-amz-market"
      }
    },
    {
      "id": "37eefa2e-cb7c-4f9f-b828-55b106a620cf",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 784,
        "height": 912,
        "content": "## Amazon Luna – Included with Prime\n\nThis workflow periodically fetches the list of “Included with Prime” games from Amazon Luna, parses the response, and keeps a Google Sheet in sync without duplica"
      }
    },
    {
      "id": "d00de91b-a784-4fa2-9c17-0bcec8e29374",
      "name": "GetImage",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2528,
        336
      ]
    }
  ],
  "connections": {
    "If1": {
      "main": [
        [
          {
            "node": "Append or update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "isNew": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "parsing": {
      "main": [
        [
          {
            "node": "isNew",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GetImage": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "parsing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append or update row in sheet": {
      "main": [
        [
          {
            "node": "GetImage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}