{
  "name": "Auto-comment on Reddit posts with AI brand mentions & Baserow tracking",
  "nodes": [
    {
      "id": "0a3f4382-7dae-4199-87ad-a0048c8359c6",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -16,
        16
      ]
    },
    {
      "id": "042435f1-9561-4b6b-85cc-032ca94324f0",
      "name": "Search for a post",
      "type": "n8n-nodes-base.reddit",
      "position": [
        240,
        16
      ]
    },
    {
      "id": "5576d6c4-eac2-4655-b2cb-264305a798ad",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1808,
        16
      ]
    },
    {
      "id": "8fef64ee-96ca-4a30-8342-66f9a9f9d929",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1792,
        256
      ]
    },
    {
      "id": "8a0c0fc0-cfd7-47a3-8c54-31411e77c68b",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2112,
        256
      ]
    },
    {
      "id": "0d6b0645-34c0-44b0-b056-e7708c35952b",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        512,
        16
      ]
    },
    {
      "id": "5a3c7d24-b2ca-49a7-bbeb-0211078b2832",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        256,
        304
      ]
    },
    {
      "id": "9c557675-1d51-429d-abe1-671e10f8b7c3",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        544,
        304
      ]
    },
    {
      "id": "b2d82149-f64e-4d1d-9d64-a7130058f2d0",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        544,
        528
      ]
    },
    {
      "id": "1c24e125-87d3-4cac-a20b-287359e26986",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        848,
        544
      ]
    },
    {
      "id": "37c357e1-0e13-4537-b28c-6b655f797f9a",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1072,
        304
      ]
    },
    {
      "id": "222787a5-bc2d-44ba-824c-66dabfdadd6b",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1520,
        16
      ]
    },
    {
      "id": "7db2aef6-1152-469a-bc32-5d915c73822f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8c4ae7d0-1ee0-4a22-85b0-d36dcdb9530f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "9a715e10-04bf-4575-8ddc-80eaa3e301a8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "facd9195-a1aa-4618-a33e-efaf2be0cf52",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "418a4931-dbf9-4c4d-8fa9-6255d240f743",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "75be2c15-0fea-481d-8e63-7c870f22650f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1728,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5ceb4549-6687-43ac-b4f3-36221a84dddb",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        208
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b5feaa38-8db8-4297-9340-2dc1d2447b16",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        208
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "10426aa7-cb96-4091-8240-714bbbec6990",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        208
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7d5cc545-e944-486b-b6d2-cf5121c45843",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        208
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3a227d99-013d-4983-9e8d-f5f1b3094891",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        208
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f961314a-20b5-45b8-acdc-31a5e0fe4440",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1952,
        256
      ]
    },
    {
      "id": "3804348d-1ad6-4473-80ed-9d19004d48d8",
      "name": "Anthropic Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        704,
        528
      ]
    },
    {
      "id": "de39d181-bf03-4f05-b467-1d055a734ed0",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        -80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "43739193-e6be-490c-b075-efdbf1c9139c",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        480
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "9f862eb0-bdea-4dee-b568-7a7d412734aa",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        496
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "da15d5d6-6c3b-4162-b157-9242b3c3f609",
      "name": "Check Baserow for duplicate post",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        16
      ]
    },
    {
      "id": "4db24f06-eb53-480c-b667-b69180bb2dae",
      "name": "Filter",
      "type": "n8n-nodes-base.code",
      "position": [
        992,
        16
      ]
    },
    {
      "id": "0ff2aebf-76e8-487c-b20a-35dfa8a942f0",
      "name": "Filter Replied Posts",
      "type": "n8n-nodes-base.if",
      "position": [
        1248,
        16
      ]
    },
    {
      "id": "57565fe1-9804-4537-9396-9728494a9da6",
      "name": "Structure Output",
      "type": "n8n-nodes-base.set",
      "position": [
        -16,
        304
      ]
    },
    {
      "id": "d43bae19-6d8e-4c2f-b352-24d865173cfb",
      "name": "Add Post Details on Baserow",
      "type": "n8n-nodes-base.baserow",
      "position": [
        1072,
        592
      ]
    },
    {
      "id": "fbab05be-4b65-402f-9c3d-a8191d51cac6",
      "name": "Wait to avoid hitting api limit",
      "type": "n8n-nodes-base.wait",
      "position": [
        1344,
        576
      ]
    },
    {
      "id": "10fa6043-7b34-4f3f-8bd1-e0d15814e3bd",
      "name": "Map Output in Structure",
      "type": "n8n-nodes-base.set",
      "position": [
        1344,
        304
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Filter Replied Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Structure Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Map Output in Structure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Check Baserow for duplicate post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Search for a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structure Output": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search for a post": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Filter Replied Posts": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Map Output in Structure": {
      "main": [
        [
          {
            "node": "Add Post Details on Baserow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Add Post Details on Baserow": {
      "main": [
        [
          {
            "node": "Wait to avoid hitting api limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait to avoid hitting api limit": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Baserow for duplicate post": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}