{
  "name": "Reddit bot automation: AI auto-reply & post monitor with GPT-4 + Google Sheets",
  "nodes": [
    {
      "id": "637518ea-66b8-4e91-a231-d879e13a1f10",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -80,
        260
      ]
    },
    {
      "id": "d12facc2-3530-4456-a322-a6da5ab09f4f",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1300,
        685
      ]
    },
    {
      "id": "5afdec8d-7b52-48fa-b99b-58b31822bc4d",
      "name": "Merge Input",
      "type": "n8n-nodes-base.merge",
      "position": [
        1580,
        460
      ]
    },
    {
      "id": "1af4c8c3-0728-4c02-b023-00237d7285a1",
      "name": "Filter Posts By Features",
      "type": "n8n-nodes-base.if",
      "position": [
        780,
        460
      ]
    },
    {
      "id": "2c2be782-914f-4cbc-b2e9-682981e5a265",
      "name": "Filter Posts By Content",
      "type": "n8n-nodes-base.if",
      "position": [
        1800,
        460
      ]
    },
    {
      "id": "3c290b3f-a834-4382-a166-1dd4471c502e",
      "name": "Select Key Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1000,
        460
      ]
    },
    {
      "id": "60223b8e-0980-4c40-8d05-dab0d974e504",
      "name": "Analysis Content  By AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1220,
        460
      ]
    },
    {
      "id": "e9d1bfcd-4381-4bf6-8099-29ceff0a1dce",
      "name": "Get Posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        560,
        65
      ]
    },
    {
      "id": "f79d9a17-0bc5-4ced-b43d-99c8007a6c1c",
      "name": "Get Posts1",
      "type": "n8n-nodes-base.reddit",
      "position": [
        560,
        265
      ]
    },
    {
      "id": "1730a374-ea57-4a57-8002-28676aae6922",
      "name": "Get Posts2",
      "type": "n8n-nodes-base.reddit",
      "position": [
        560,
        460
      ]
    },
    {
      "id": "e447dc9f-ed72-42f4-877c-606608879ef1",
      "name": "Get Posts3",
      "type": "n8n-nodes-base.reddit",
      "position": [
        560,
        665
      ]
    },
    {
      "id": "82aa9145-8944-4ee8-94c5-b432c8ec6ecd",
      "name": "Get Posts4",
      "type": "n8n-nodes-base.reddit",
      "position": [
        560,
        865
      ]
    },
    {
      "id": "aa4c4d79-c261-43cf-abf1-8a6a085692aa",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2380,
        560
      ]
    },
    {
      "id": "78a316fe-be7a-4624-bc3a-80a309f6c64f",
      "name": "Create a comment in a post",
      "type": "n8n-nodes-base.reddit",
      "position": [
        2380,
        360
      ]
    },
    {
      "id": "ac2b4385-cc8f-48c5-a313-c9dee98309a3",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2020,
        460
      ]
    },
    {
      "id": "569111b4-4396-4a07-aeeb-dd855884d9ac",
      "name": "Trigger: Run every 3 hours",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -80,
        540
      ]
    }
  ],
  "connections": {
    "Get Posts": {
      "main": [
        [
          {
            "node": "Filter Posts By Features",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Posts1": {
      "main": [
        [
          {
            "node": "Filter Posts By Features",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Posts2": {
      "main": [
        [
          {
            "node": "Filter Posts By Features",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Posts3": {
      "main": [
        [
          {
            "node": "Filter Posts By Features",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Posts4": {
      "main": [
        [
          {
            "node": "Filter Posts By Features",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Input": {
      "main": [
        [
          {
            "node": "Filter Posts By Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Create a comment in a post",
            "type": "main",
            "index": 0
          },
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Analysis Content  By AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Select Key Fields": {
      "main": [
        [
          {
            "node": "Analysis Content  By AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        []
      ]
    },
    "Analysis Content  By AI": {
      "main": [
        [
          {
            "node": "Merge Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts By Content": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts By Features": {
      "main": [
        [
          {
            "node": "Select Key Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger: Run every 3 hours": {
      "main": [
        [
          {
            "node": "Get Posts",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get Posts",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}