{
  "name": "Facebook Messenger chatbot with GPT-4.1 & human escalation support",
  "nodes": [
    {
      "id": "8fd8c105-3183-4b16-998c-bec0a66ef9d3",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -352,
        368
      ]
    },
    {
      "id": "fdf6fb02-7811-425f-b308-0b57f04ae3e6",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        576,
        336
      ]
    },
    {
      "id": "23d555f7-dd7a-495c-a6d4-f5323ac0126a",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1120,
        624
      ]
    },
    {
      "id": "ed206620-e550-4cfd-a23f-aaaec680d71d",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1200,
        848
      ]
    },
    {
      "id": "2c2792b4-c4d3-4d19-9cb1-968486e61b67",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1648,
        624
      ]
    },
    {
      "id": "5cd9578c-2619-4d28-9293-ce332d843b4b",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        480,
        1024
      ]
    },
    {
      "id": "7c26a106-2562-4705-adb1-9802ec8806cd",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -16,
        784
      ]
    },
    {
      "id": "ff62b18c-4770-4b2d-9c42-ef493a02d0a3",
      "name": "HTTP",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1328,
        848
      ]
    },
    {
      "id": "aa32f617-6a44-41dd-bb63-ad727385bf03",
      "name": "Google Docs",
      "type": "n8n-nodes-base.googleDocsTool",
      "position": [
        1456,
        848
      ]
    },
    {
      "id": "8d01dc1b-30a8-4ea0-8e73-fb913507d2e3",
      "name": "Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1072,
        848
      ]
    },
    {
      "id": "c433f959-b495-4fc9-a695-cec427e4ea94",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        784,
        1024
      ]
    },
    {
      "id": "c66511c7-db66-49e3-9304-98b5d45bb728",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1232,
        1024
      ]
    },
    {
      "id": "ce53539d-f846-4fdc-b899-2a625af8ff31",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        1120,
        384
      ]
    },
    {
      "id": "b89a5e6e-8e52-4072-937f-664e4f330e21",
      "name": "If2",
      "type": "n8n-nodes-base.if",
      "position": [
        768,
        512
      ]
    },
    {
      "id": "6704b261-754e-4cce-9de2-e02456654d20",
      "name": "Wait3",
      "type": "n8n-nodes-base.wait",
      "position": [
        1648,
        384
      ]
    },
    {
      "id": "983dbe1e-b0f3-4e9f-ab13-ee3aab98ca20",
      "name": "Admin Message",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1904,
        288
      ]
    },
    {
      "id": "63009f02-5c12-4aca-8624-411ae7dd1660",
      "name": "User Message",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1904,
        464
      ]
    },
    {
      "id": "27149952-d3e1-4a40-b76f-9727063be7c2",
      "name": "Admin Message1",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1904,
        1024
      ]
    },
    {
      "id": "f53eade6-0680-4344-ac53-03c44780b899",
      "name": "User Replay Message",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1904,
        624
      ]
    },
    {
      "id": "a108028e-1233-49d2-87f8-e387da054198",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4e0146d7-e0c0-4d4f-86b4-b1b0f29e0450",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1872,
        160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "2a621ce0-f8bc-4fcb-b882-32c768d1f403",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1872,
        944
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a0a7f878-2774-4ba6-9b94-a65f3079089b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2016,
        432
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "63eaa3a4-a545-4978-b4d7-6190c4a4a370",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1872,
        608
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "947d05db-9937-45ed-8239-a6743be4011d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        1008
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "395fbcf9-9248-4480-86e3-4e7385df3b75",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        496
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e2296442-2615-414c-b9fd-5b732a949e2e",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        608
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b617714f-8cfe-4802-8be5-4f191a9b1d2c",
      "name": "If3",
      "type": "n8n-nodes-base.if",
      "position": [
        -16,
        352
      ]
    },
    {
      "id": "0b078ace-f67e-4fc4-896a-3cb0d17fda14",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        1216
      ]
    },
    {
      "id": "a6310755-b471-4f6a-85b8-f08b9776f92c",
      "name": "Classify text",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        480,
        512
      ]
    },
    {
      "id": "2d3e5185-b81b-47bc-840c-4fc9db6149ac",
      "name": "OpenAI Chat",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        960,
        848
      ]
    },
    {
      "id": "afb09507-d8d3-4400-a299-516c9eff4abc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Classify text",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If3": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "User Replay Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait3": {
      "main": [
        [
          {
            "node": "User Message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Admin Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "If3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Admin Message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Docs": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify text": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook": {
      "main": [
        []
      ]
    },
    "User Replay Message": {
      "main": [
        []
      ]
    }
  }
}