{
  "name": "Promo seeker: Auto-find promo codes with SerpAPI, Gemini & Telegram",
  "nodes": [
    {
      "id": "05250a10-aa6e-4455-b0e4-596932620af4",
      "name": "SerpAPI",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        -1216,
        864
      ]
    },
    {
      "id": "4f6e4b5b-d504-4637-84c1-3bcebcffedd6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        -368
      ],
      "parameters": {
        "width": 464,
        "height": 976,
        "content": "## How to Get Credentials\n\n### 1. SerpAPI Node\n- Go to [SerpAPI](https://serpapi.com/) and sign up\n- After logging in, find your **API Key** in your dashboard\n- In n8n: **Credentials** > **Create New*"
      }
    },
    {
      "id": "9b6787e7-9f3c-4b00-8af4-ddaf68930cf4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2208,
        432
      ],
      "parameters": {
        "width": 672,
        "height": 240,
        "content": "## How This Workflow Works (Sticky Note)\n\n- This workflow is designed to help you find valid and working promo codes and vouchers from across the internet.\n- When you send a message, the AI Agent uses"
      }
    },
    {
      "id": "baebe25f-d3d7-4f49-9785-a81180032773",
      "name": "Promo Seeker Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1280,
        640
      ]
    },
    {
      "id": "37983435-354d-4c0c-b6c0-94d27160d563",
      "name": "Gemini 2.5Pro",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -1344,
        864
      ]
    },
    {
      "id": "78f91869-bc57-4ce9-9df6-b7b7e959cc69",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2464,
        592
      ]
    },
    {
      "id": "1169ebb4-b2f9-4786-8f97-7228f17420aa",
      "name": "Platform",
      "type": "n8n-nodes-base.set",
      "position": [
        -2016,
        240
      ]
    },
    {
      "id": "28bd7fdd-5810-4742-b953-c068981da584",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -2240,
        240
      ]
    },
    {
      "id": "65c389a3-30fd-45d9-9677-194e2f46f2ac",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -2464,
        192
      ]
    },
    {
      "id": "2422da6d-98c1-4f1b-92ce-9a6e39df0060",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1088,
        864
      ]
    },
    {
      "id": "9761d0fa-448a-4f85-b00a-75dcff57b101",
      "name": "Get row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1792,
        240
      ]
    },
    {
      "id": "6f75fcf8-5d94-4c7f-a51d-4111f6ac6491",
      "name": "Code Exist?",
      "type": "n8n-nodes-base.if",
      "position": [
        -1568,
        240
      ]
    },
    {
      "id": "8383580c-8c71-4f47-a521-5b6f7d89ad68",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -2464,
        0
      ]
    },
    {
      "id": "bd7d5a97-15f3-442a-9e73-0dbda8511982",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -1216,
        336
      ]
    },
    {
      "id": "429dd741-9c1f-4c85-a07e-250e38620e4a",
      "name": "Upsert row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -880,
        640
      ]
    },
    {
      "id": "5cacc658-19de-4d0d-9e18-012ae7db8ea6",
      "name": "notify telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -1216,
        144
      ]
    },
    {
      "id": "17d33219-8587-406b-9243-6ea8f00a9aef",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2464,
        384
      ]
    },
    {
      "id": "38d077ac-91eb-41ba-b58a-5122df0df77a",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -1216,
        -48
      ]
    },
    {
      "id": "b1ff0780-cb28-4d52-aae3-ed20ebf2b987",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2208,
        688
      ],
      "parameters": {
        "width": 370,
        "height": 100,
        "content": "## ☕ Appreciate This Workflow?\n\nSupport the creator by sending coffee:\n\n**PayPal:** [paypal.me/khmuhtadin](https://paypal.me/khmuhtadin)\n\nThank you! 🚀"
      }
    }
  ],
  "connections": {
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "Promo Seeker Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Platform": {
      "main": [
        [
          {
            "node": "Get row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s)": {
      "main": [
        [
          {
            "node": "Code Exist?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code Exist?": {
      "main": [
        [
          {
            "node": "notify telegram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Promo Seeker Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 2.5Pro": {
      "ai_languageModel": [
        [
          {
            "node": "Promo Seeker Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Promo Seeker Agent": {
      "main": [
        [
          {
            "node": "Upsert row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Operation, do nothing": {
      "main": [
        [
          {
            "node": "Platform",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Promo Seeker Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}