{
  "name": "AI marketing agent for lead generation: Reddit + OpenRouter + Gmail",
  "nodes": [
    {
      "id": "36cb5d98-8d20-426c-a965-bac91a63847e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3200,
        560
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "59126319-3736-49f9-bb0e-8ec4ae083f89",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        560
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ee0879ad-783a-44ce-a78b-e9983eed0c55",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2300,
        560
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f5d37f76-4b82-4578-b272-17a5e33b99df",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -3160,
        1060
      ]
    },
    {
      "id": "3ad7fb9f-0cc9-4bd0-a137-021a334196dc",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -3020,
        1060
      ]
    },
    {
      "id": "ab1a88b8-ce11-47f0-a457-2ac8d804c490",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -2860,
        1060
      ]
    },
    {
      "id": "0e7c8c05-e5e0-4cdd-b2fb-4dc35b790403",
      "name": "Competitor Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1600,
        960
      ]
    },
    {
      "id": "76012b18-8116-4e00-92b6-172d2aa91246",
      "name": "Keyword Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -3100,
        840
      ]
    },
    {
      "id": "6bf11038-0cd9-4531-a171-a02742e4c515",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -2720,
        840
      ]
    },
    {
      "id": "405f06b7-1362-4f4e-98de-0d62ef4835b7",
      "name": "Get Posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -2500,
        840
      ]
    },
    {
      "id": "6f9a6c87-1510-4338-b417-cd89943e31d4",
      "name": "Generate Email HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        -360,
        840
      ]
    },
    {
      "id": "2b043745-d653-451d-8b44-a10643d782ba",
      "name": "Append Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -580,
        840
      ]
    },
    {
      "id": "ad4dd6ef-b49e-48ab-9c05-a78ed4f19d4f",
      "name": "OpenRouter ",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -1640,
        1140
      ]
    },
    {
      "id": "06bb27c4-a0e1-43e5-9270-7d683e28023a",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1400,
        1140
      ]
    },
    {
      "id": "d2d9357d-d114-4fec-b313-9d078d227a28",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -2280,
        840
      ]
    },
    {
      "id": "09fe6bbd-51d1-4620-baeb-c311ee40963e",
      "name": "Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -3520,
        840
      ]
    },
    {
      "id": "b859872c-21db-4655-8423-2a202eb9a6bc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3700,
        560
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e6d65d05-ac6e-4398-bf73-6389bc5ca680",
      "name": "Pick Fields to Keep",
      "type": "n8n-nodes-base.set",
      "position": [
        -1800,
        820
      ]
    },
    {
      "id": "01c6bb02-ab14-4be4-84bc-d45ce4e09986",
      "name": "Filter Posts by Criteria",
      "type": "n8n-nodes-base.if",
      "position": [
        -2040,
        840
      ]
    },
    {
      "id": "4e7765c8-cda8-493b-bed8-d19c082a9711",
      "name": "Merge Outputs",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1244,
        840
      ]
    },
    {
      "id": "df696cb9-11b1-4489-812d-1590e5a640ed",
      "name": "Rename Fields from AI Agent' Output",
      "type": "n8n-nodes-base.set",
      "position": [
        -1024,
        840
      ]
    },
    {
      "id": "45a0f8a8-8e0b-4290-8f59-cdb0748e2516",
      "name": "Filter Relevant Posts",
      "type": "n8n-nodes-base.if",
      "position": [
        -804,
        840
      ]
    },
    {
      "id": "b57880d4-f866-47a5-8140-1c95e1efa40c",
      "name": "Send to your email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -140,
        840
      ]
    }
  ],
  "connections": {
    "Form": {
      "main": [
        [
          {
            "node": "Keyword Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Posts": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Get Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Data": {
      "main": [
        [
          {
            "node": "Generate Email HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter ": {
      "ai_languageModel": [
        [
          {
            "node": "Competitor Analyst",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "ai_tool": [
        [
          {
            "node": "Keyword Analyst",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Merge Outputs": {
      "main": [
        [
          {
            "node": "Rename Fields from AI Agent' Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keyword Analyst": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Filter Posts by Criteria",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Competitor Analyst": {
      "main": [
        [
          {
            "node": "Merge Outputs",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Generate Email HTML": {
      "main": [
        [
          {
            "node": "Send to your email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick Fields to Keep": {
      "main": [
        [
          {
            "node": "Competitor Analyst",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Outputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Relevant Posts": {
      "main": [
        [
          {
            "node": "Append Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Keyword Analyst",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts by Criteria": {
      "main": [
        [
          {
            "node": "Pick Fields to Keep",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Keyword Analyst",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Competitor Analyst",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Rename Fields from AI Agent' Output": {
      "main": [
        [
          {
            "node": "Filter Relevant Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}