{
  "name": "Automated Facebook comment management with GPT-4o and LangChain",
  "nodes": [
    {
      "id": "7b135530-930b-4934-b51b-ba122a4a96de",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -160,
        360
      ]
    },
    {
      "id": "92670dfa-9ee0-439c-ba0c-6e0654d09221",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        340,
        260
      ]
    },
    {
      "id": "c9d4143f-9999-4508-aaf1-1bfc73d2e151",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        400,
        420
      ]
    },
    {
      "id": "4bc247c3-158e-4ac5-87a0-788b7e4c409b",
      "name": "🗂️ MCP Facebook",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        1120,
        140
      ]
    },
    {
      "id": "09472a7f-1837-4a2c-afff-fad1af5be1d3",
      "name": "MCP Facebook",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        740,
        420
      ]
    },
    {
      "id": "12e55d12-b4bb-40e1-81be-b81d054b734e",
      "name": "Search Media",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        960,
        380
      ]
    },
    {
      "id": "847411aa-36f2-4b45-99d7-434f1c31e0c2",
      "name": "Facebook Mapping",
      "type": "n8n-nodes-base.set",
      "position": [
        60,
        360
      ]
    },
    {
      "id": "cc4b97bf-0d87-487a-8fa6-b3de88df03cb",
      "name": "Media Details",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1100,
        380
      ]
    },
    {
      "id": "c69f529d-cc97-436a-b4fa-08538cfcf306",
      "name": "Search Comment",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1240,
        380
      ]
    },
    {
      "id": "40990183-0945-42d2-8239-e938105c90b5",
      "name": "Reply Comment",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1380,
        380
      ]
    },
    {
      "id": "1c7f4401-b266-4b15-bc6c-05f6f12f1681",
      "name": "Send Direct Message",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        1520,
        380
      ]
    },
    {
      "id": "55ddf8c6-d183-4207-8606-b1c22fea492f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        140
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "17dbdf19-f4c1-4c7d-a99e-949a864fc45e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        140
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0b823254-01c2-4a7f-8193-086dc68aefba",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        140
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4d07313d-220c-4e4d-ba55-aacbb561353b",
      "name": "Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        280,
        420
      ]
    },
    {
      "id": "0faba95f-b99e-4adb-8397-8f9f7f2194a9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        900,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "16a71afb-7d4f-4eec-a784-31f5bb8ba2c9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "MCP Facebook": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Search Media": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Facebook",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Media Details": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Facebook",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Reply Comment": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Facebook",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Search Comment": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Facebook",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Mapping": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Direct Message": {
      "ai_tool": [
        [
          {
            "node": "🗂️ MCP Facebook",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Facebook Mapping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}