{
  "name": "AI-powered Amazon product recommendations via Decodo, Telegram and Gemini 2.5",
  "nodes": [
    {
      "id": "27d87950-96a2-4fe5-9e42-ca1106a93831",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        752,
        528
      ]
    },
    {
      "id": "f150d08d-0690-4980-9288-2b5ae06e61f4",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        768,
        1024
      ]
    },
    {
      "id": "624ba616-679c-4ede-822f-a2f83cc6a146",
      "name": "Extract Chat & Query",
      "type": "n8n-nodes-base.set",
      "position": [
        1536,
        480
      ]
    },
    {
      "id": "2f2cfc04-08d9-49f0-aa25-decbcef3db59",
      "name": "Decodo API",
      "type": "@decodo/n8n-nodes-decodo.decodo",
      "position": [
        1808,
        480
      ]
    },
    {
      "id": "252f89f4-54a2-4ea1-9ed4-92773c3d9b1b",
      "name": "Process Product Data",
      "type": "n8n-nodes-base.code",
      "position": [
        2000,
        480
      ]
    },
    {
      "id": "ad548326-555c-41e0-b406-5a6cce340b84",
      "name": "Generate Recommendations",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2224,
        480
      ]
    },
    {
      "id": "50f0c091-0af8-4256-8431-795e9cc17ce6",
      "name": "Send Final Response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2576,
        480
      ]
    },
    {
      "id": "9208513e-437e-4274-8715-87cb477323cf",
      "name": "Validate Product Input",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        928,
        528
      ]
    },
    {
      "id": "02a37df9-d6ff-434e-843d-933ad2bdd6c5",
      "name": "Parse Validation Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1072,
        688
      ]
    },
    {
      "id": "116fcd7b-6fa1-44e4-bb30-05d6a45a1ce1",
      "name": "Check Product Validity",
      "type": "n8n-nodes-base.if",
      "position": [
        1280,
        528
      ]
    },
    {
      "id": "16886532-c324-4c53-9341-6d3484ca2ec9",
      "name": "Send Invalid Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1536,
        672
      ]
    },
    {
      "id": "4c71756c-42d1-436b-8583-2aa39e20376d",
      "name": "Send Processing Status",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1168,
        352
      ]
    },
    {
      "id": "f913fe74-be48-4a9a-8f04-0f7cf536f5c3",
      "name": "Send Valid Confirmation",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1536,
        288
      ]
    },
    {
      "id": "636f1157-1f2a-44d8-b6c7-8e6cb4aea604",
      "name": "Gemini 2.5 Flash",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2368,
        640
      ]
    },
    {
      "id": "07556ea8-f88a-4720-84b2-cfbc651c9a05",
      "name": "Give Delay",
      "type": "n8n-nodes-base.wait",
      "position": [
        976,
        352
      ]
    },
    {
      "id": "fd75b467-fc1f-4389-a169-4dee1e67c218",
      "name": "Format Error Notification",
      "type": "n8n-nodes-base.code",
      "position": [
        992,
        1024
      ]
    },
    {
      "id": "2cca63a2-4999-48c6-8f7b-c8871a8a9ccb",
      "name": "Notify Admin",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1216,
        1024
      ]
    },
    {
      "id": "f6a35c5d-e285-43e2-af4a-62d890977c1c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        896
      ],
      "parameters": {
        "width": 496,
        "height": 288,
        "content": "## DECODO CREDENTIALS SETUP\n\n1. Go to: https://decodo.com\n2. Sign up / Login\n3. Navigate to: **Dashboard → Scraping APIs → Web Advanced**\n4. Click: **BASIC AUTH. TOKEN** (Automated copy)\n\n**In n8n:**\n"
      }
    },
    {
      "id": "0b0e83e4-8a0b-4c8e-a49f-4038fddbb092",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        896
      ],
      "parameters": {
        "width": 688,
        "height": 288,
        "content": "## Error Handling\n\nCatches workflow failures, formats error details, sends Telegram alerts to admin."
      }
    },
    {
      "id": "3d4464c7-2f04-4093-ab3d-5752cead363d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        256
      ],
      "parameters": {
        "width": 500,
        "height": 654,
        "content": "## Amazon Product Recommender Bot\nInstead of spending 30+ minutes scrolling through Amazon search results, your users get AI-curated picks with direct purchase links in under a minute.\n\n### How it wor"
      }
    },
    {
      "id": "2ea0f5fe-02a5-43a8-9bc9-3f087bd3a52f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        256
      ],
      "parameters": {
        "width": 2112,
        "height": 576,
        "content": "## Validate Input"
      }
    }
  ],
  "connections": {
    "Decodo API": {
      "main": [
        [
          {
            "node": "Process Product Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Give Delay": {
      "main": [
        [
          {
            "node": "Send Processing Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Format Error Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 2.5 Flash": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Recommendations",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Validate Product Input",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Validate Product Input",
            "type": "main",
            "index": 0
          },
          {
            "node": "Give Delay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Chat & Query": {
      "main": [
        [
          {
            "node": "Decodo API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Product Data": {
      "main": [
        [
          {
            "node": "Generate Recommendations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Product Validity": {
      "main": [
        [
          {
            "node": "Extract Chat & Query",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Valid Confirmation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Invalid Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Product Input": {
      "main": [
        [
          {
            "node": "Check Product Validity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Validation Output": {
      "ai_outputParser": [
        [
          {
            "node": "Validate Product Input",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Generate Recommendations": {
      "main": [
        [
          {
            "node": "Send Final Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Error Notification": {
      "main": [
        [
          {
            "node": "Notify Admin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}