{
  "name": "AI-powered Facebook comment management: Auto-reply, delete, ban & notify",
  "nodes": [
    {
      "id": "cca95ebe-452a-4e8f-a987-349dbd0e566d",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1856,
        208
      ]
    },
    {
      "id": "47cb3cca-2baf-4570-9c1c-81fd4a826a96",
      "name": "Reply to Comment",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        2672,
        32
      ]
    },
    {
      "id": "f2dd1579-351e-4427-8266-689b8c973c2b",
      "name": "Positive Replay",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2208,
        -144
      ]
    },
    {
      "id": "640a81e7-c7f6-40b5-ba7e-fbbfbfb1e86d",
      "name": "Support Replay",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2208,
        224
      ]
    },
    {
      "id": "ed5ec554-558b-4566-8896-e7cd2ebc10df",
      "name": "Delete Comment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2208,
        656
      ]
    },
    {
      "id": "e6adb52e-722b-42fb-ad21-7b2984fe554c",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        3440,
        656
      ]
    },
    {
      "id": "2b96db53-8bc3-45a2-bf43-8ff373aea7bf",
      "name": "Check Comment",
      "type": "n8n-nodes-base.if",
      "position": [
        -960,
        224
      ]
    },
    {
      "id": "866a7a79-13cb-4caf-a62d-5feb5619f20d",
      "name": "Loop Over Items2",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        960,
        208
      ]
    },
    {
      "id": "017a72fa-1ade-4bd3-861f-322205b3b6d0",
      "name": "Separatamente Without Admin Reply",
      "type": "n8n-nodes-base.code",
      "position": [
        192,
        320
      ]
    },
    {
      "id": "f3acfff9-1668-4c45-9817-680cb435fa4b",
      "name": "Split Out Without Admin Reply Comments",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        672,
        304
      ]
    },
    {
      "id": "9f7796cd-37ff-45d6-a090-6aaa9c1aa34f",
      "name": "Replace Me1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -256,
        432
      ]
    },
    {
      "id": "cebdd8f6-4a6e-4c49-94e9-49a1116493c0",
      "name": "Replace Me2",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1536,
        656
      ]
    },
    {
      "id": "e6e76378-adaa-478e-875f-41e33feb753e",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        3936,
        752
      ]
    },
    {
      "id": "bc7708fa-645c-43e7-b2db-dc65b429cc58",
      "name": "Check Comment1",
      "type": "n8n-nodes-base.if",
      "position": [
        400,
        320
      ]
    },
    {
      "id": "6102f4aa-c033-4677-bce0-e3b8de9e9c9b",
      "name": "Replace Me4",
      "type": "n8n-nodes-base.noOp",
      "position": [
        672,
        496
      ]
    },
    {
      "id": "5e3a2a31-3afc-4abd-a0bc-0725580b4a9d",
      "name": "Replace Me5",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -272,
        -32
      ]
    },
    {
      "id": "0c839fa2-59ce-4724-a8a9-a5f180295671",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        192,
        128
      ]
    },
    {
      "id": "5e7fcb36-675a-4f73-9199-ce4abc2b6a83",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2176,
        112
      ]
    },
    {
      "id": "5b55227b-61e0-406e-821d-8861d90acffe",
      "name": "Get 0-100 Post from Page",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        -1936,
        112
      ]
    },
    {
      "id": "f65b25e5-5353-4fad-bd8e-1d7d8b807993",
      "name": "Split All Posts",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1712,
        112
      ]
    },
    {
      "id": "5face45f-4a7d-409c-97f3-13b7c30443ca",
      "name": "Loop Over Posts",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1408,
        112
      ]
    },
    {
      "id": "89b3248b-e2a5-4141-8914-b8a6f943899f",
      "name": "Get Individual Post Comments",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        -1152,
        224
      ]
    },
    {
      "id": "c37f2929-ff3b-43f8-a79a-280e8ade2099",
      "name": "Split All Comments",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -736,
        96
      ]
    },
    {
      "id": "fc9e392b-9d80-4280-9a87-fe26b24c4f58",
      "name": "Replace Post",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -1152,
        -16
      ]
    },
    {
      "id": "dcc374e5-0c5c-4e25-8034-911fac8f68b2",
      "name": "Replace Comment",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -752,
        368
      ]
    },
    {
      "id": "a319f879-9370-4d19-af22-040538d7082c",
      "name": "Loop Over Comments",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -528,
        96
      ]
    },
    {
      "id": "16ca1048-88ba-4985-aeb8-b50db4905a30",
      "name": "Get Any Replay in Comment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -272,
        224
      ]
    },
    {
      "id": "7f5356e5-bcf0-428a-baef-83c1756e6012",
      "name": "Check Replay",
      "type": "n8n-nodes-base.if",
      "position": [
        -80,
        224
      ]
    },
    {
      "id": "28d3a373-eaba-495d-92e2-c2f63ced4a59",
      "name": "Split Out Without Admin Reply Comments1",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        672,
        128
      ]
    },
    {
      "id": "5591398a-53d1-4289-8480-74d1cc1ee495",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2400,
        656
      ]
    },
    {
      "id": "6830f7fc-6292-444c-ad1f-2dc605c2631c",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        3280,
        656
      ]
    },
    {
      "id": "3a11a611-c072-4e6c-aff6-45cb0ec40537",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        480
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "33db7090-13da-4912-8162-747ccd5d11d2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1952,
        640
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a120fcdb-4376-4b40-951c-ed056cd40929",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1952,
        -240
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "329ff854-93f3-492a-8449-b5217f2f5086",
      "name": "No Operation",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3728,
        752
      ]
    },
    {
      "id": "7c38b1a5-4566-4426-aec1-d1588acd4138",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2224,
        -96
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d2579c99-e41b-4691-942f-c3f1b0f1b462",
      "name": "Banned user",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        3712,
        496
      ]
    },
    {
      "id": "1d1c3636-747b-484a-80d1-1e30363ccd45",
      "name": "Get row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3072,
        656
      ]
    },
    {
      "id": "10208036-b41f-485b-8911-dd08505b64ac",
      "name": "Update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3936,
        496
      ]
    },
    {
      "id": "1bb66017-dfb9-413a-b9ae-5b3d4ec62d50",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2896,
        896
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "63ea36e8-45cd-46bb-8c2d-745b80525b56",
      "name": "Facebook Graph API",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        3136,
        912
      ]
    },
    {
      "id": "81c0c8c4-81da-4820-8bc5-c88e61ea309d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        288
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1777b3fe-cfc5-4ef2-8db7-f076790b3778",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1248,
        192
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b6234c98-f7b9-4018-b9b2-4970973d026c",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        -32
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "62f80776-69d6-49a7-8255-3a6c7b3c8413",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -128
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7442d477-91a5-4df3-8fa9-6a4aa8ab5f4e",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        576,
        -32
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "574bd5d1-1129-4697-a189-72f7ffb43ec0",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        -16
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "757ee27e-045f-497e-9329-086c971986da",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        2304,
        480
      ]
    },
    {
      "id": "b647049b-448e-40ba-9e0c-c2a71e5a6450",
      "name": "HTTP",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        2400,
        480
      ]
    },
    {
      "id": "419827d0-43cb-453f-a1a7-cee7cede7e60",
      "name": "Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        2112,
        480
      ]
    },
    {
      "id": "6b240588-5eb8-4acd-8a2b-e5ecb470e103",
      "name": "Gemini",
      "type": "@n8n/n8n-nodes-langchain.googleGeminiTool",
      "position": [
        2208,
        480
      ]
    },
    {
      "id": "32939818-dd1b-40b1-a408-41856e073dbc",
      "name": "Do Nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3936,
        32
      ]
    },
    {
      "id": "40d713cf-5a20-4415-a846-68defd0825d7",
      "name": "Docs",
      "type": "n8n-nodes-base.googleDocsTool",
      "position": [
        2496,
        480
      ]
    },
    {
      "id": "a2013195-c5fd-46cc-b486-3674340e5ab6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1952,
        400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "dc79617e-181c-48b3-8e18-41ba0d403914",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3072,
        -96
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "541d8f1b-ee2a-451a-9ab0-6f8df2a919f5",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1408,
        640
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d846e07d-836e-417b-9220-18e132c740fd",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1392,
        224
      ]
    },
    {
      "id": "5d39376c-670d-4380-8611-50286e927400",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2016,
        480
      ]
    },
    {
      "id": "95420317-0ef3-4bcd-9767-f26a5da38537",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2640,
        16
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Banned user",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Docs": {
      "ai_tool": [
        [
          {
            "node": "Positive Replay",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Support Replay",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "HTTP": {
      "ai_tool": [
        [
          {
            "node": "Positive Replay",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Support Replay",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "Get 0-100 Post from Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think": {
      "ai_tool": [
        [
          {
            "node": "Positive Replay",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Support Replay",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Gemini": {
      "ai_tool": [
        [
          {
            "node": "Positive Replay",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Support Replay",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Memory": {
      "ai_memory": [
        [
          {
            "node": "Positive Replay",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Support Replay",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "Positive Replay",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Support Replay",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Positive Replay",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Support Replay",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Delete Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Do Nothing": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Banned user": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Split Out Without Admin Reply Comments1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me1": {
      "main": [
        [
          {
            "node": "Loop Over Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me2": {
      "main": [
        [
          {
            "node": "Loop Over Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me4": {
      "main": [
        [
          {
            "node": "Loop Over Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Me5": {
      "main": [
        [
          {
            "node": "Replace Me1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Replay": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Separatamente Without Admin Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Operation": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Comment": {
      "main": [
        [
          {
            "node": "Split All Comments",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Replace Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Comment1": {
      "main": [
        [
          {
            "node": "Split Out Without Admin Reply Comments",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Replace Me4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete Comment": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Support Replay": {
      "main": [
        [
          {
            "node": "Reply to Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Posts": {
      "main": [
        [
          {
            "node": "Replace Post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Individual Post Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Positive Replay": {
      "main": [
        [
          {
            "node": "Reply to Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Replace Comment": {
      "main": [
        [
          {
            "node": "Loop Over Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split All Posts": {
      "main": [
        [
          {
            "node": "Loop Over Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row in sheet": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items2": {
      "main": [
        [
          {
            "node": "Replace Me2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reply to Comment": {
      "main": [
        [
          {
            "node": "Do Nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Graph API": {
      "main": [
        [
          {
            "node": "No Operation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Comments": {
      "main": [
        [
          {
            "node": "Replace Me5",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Any Replay in Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split All Comments": {
      "main": [
        [
          {
            "node": "Loop Over Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Facebook Graph API",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get 0-100 Post from Page": {
      "main": [
        [
          {
            "node": "Split All Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Any Replay in Comment": {
      "main": [
        [
          {
            "node": "Check Replay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Individual Post Comments": {
      "main": [
        [
          {
            "node": "Check Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Separatamente Without Admin Reply": {
      "main": [
        [
          {
            "node": "Check Comment1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Without Admin Reply Comments": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Without Admin Reply Comments1": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}