This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "RzYuqoepxixCfKzi",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "\ud83e\udd16 Facebook MCP AI Agent \u2013 Read, Reply & Manage Comments with GPT-4o",
"tags": [
{
"id": "gopnerJXNBoZBzMX",
"name": "Fluxo a Venda",
"createdAt": "2025-05-06T11:24:14.834Z",
"updatedAt": "2025-05-06T11:24:14.834Z"
}
],
"nodes": [
{
"id": "7b135530-930b-4934-b51b-ba122a4a96de",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-160,
360
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "92670dfa-9ee0-439c-ba0c-6e0654d09221",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
340,
260
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "c9d4143f-9999-4508-aaf1-1bfc73d2e151",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
400,
420
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "4bc247c3-158e-4ac5-87a0-788b7e4c409b",
"name": "\ud83d\uddc2\ufe0f MCP Facebook",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"position": [
1120,
140
],
"parameters": {},
"typeVersion": 1
},
{
"id": "09472a7f-1837-4a2c-afff-fad1af5be1d3",
"name": "MCP Facebook",
"type": "@n8n/n8n-nodes-langchain.mcpClientTool",
"position": [
740,
420
],
"parameters": {},
"typeVersion": 1
},
{
"id": "12e55d12-b4bb-40e1-81be-b81d054b734e",
"name": "Search Media",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
960,
380
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "847411aa-36f2-4b45-99d7-434f1c31e0c2",
"name": "Facebook Mapping",
"type": "n8n-nodes-base.set",
"position": [
60,
360
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "cc4b97bf-0d87-487a-8fa6-b3de88df03cb",
"name": "Media Details",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
1100,
380
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "c69f529d-cc97-436a-b4fa-08538cfcf306",
"name": "Search Comment",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
1240,
380
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "40990183-0945-42d2-8239-e938105c90b5",
"name": "Reply Comment",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
1380,
380
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "1c7f4401-b266-4b15-bc6c-05f6f12f1681",
"name": "Send Direct Message",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
1520,
380
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "55ddf8c6-d183-4207-8606-b1c22fea492f",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
140
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "17dbdf19-f4c1-4c7d-a99e-949a864fc45e",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
700,
140
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0b823254-01c2-4a7f-8193-086dc68aefba",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
140
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4d07313d-220c-4e4d-ba55-aacbb561353b",
"name": "Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
280,
420
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "0faba95f-b99e-4adb-8397-8f9f7f2194a9",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
900,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "16a71afb-7d4f-4eec-a784-31f5bb8ba2c9",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "2be54b97-2a5e-4fe5-ade2-4f9541b6ea24",
"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": "\ud83d\uddc2\ufe0f MCP Facebook",
"type": "ai_tool",
"index": 0
}
]
]
},
"Media Details": {
"ai_tool": [
[
{
"node": "\ud83d\uddc2\ufe0f MCP Facebook",
"type": "ai_tool",
"index": 0
}
]
]
},
"Reply Comment": {
"ai_tool": [
[
{
"node": "\ud83d\uddc2\ufe0f MCP Facebook",
"type": "ai_tool",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Search Comment": {
"ai_tool": [
[
{
"node": "\ud83d\uddc2\ufe0f MCP Facebook",
"type": "ai_tool",
"index": 0
}
]
]
},
"Facebook Mapping": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Send Direct Message": {
"ai_tool": [
[
{
"node": "\ud83d\uddc2\ufe0f MCP Facebook",
"type": "ai_tool",
"index": 0
}
]
]
},
"When chat message received": {
"main": [
[
{
"node": "Facebook Mapping",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
🤖 Facebook MCP AI Agent – Read, Reply & Manage Comments with GPT-4o. Uses chatTrigger, agent, memoryBufferWindow, mcpTrigger. Chat trigger; 17 nodes.
Source: https://github.com/djeknet/n8n-master-workflows/blob/1c4f12d01b446cbee928c81cfa7901ade7bbdb09/Marketing/Automated_Facebook_Comment_Management_with_GPT-4o_and_LangChain.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This n8n workflow is designed for Shopify store owners and e-commerce managers who want to automate their store operations through an intelligent AI assistant. The workflow creates a conversational in
Description: Turn your WooCommerce store into a conversational AI assistant — create products, place orders, run reports and manage coupons using natural language via n8n + an MCP Server.
This n8n workflow template uses community nodes and is only compatible with the self-hosted version of n8n.
This n8n workflow showcases a full-featured AI-powered assistant connected to a Shopify store through a custom MCP (Multi-Channel Commerce Platform) Server toolkit. It empowers users to automate compr
AI Agent MCP for Email & News Research