Skip to content
FlowHubFluxonLab
A
AI Automationfree

Automated Facebook Comment Management with GPT-4o and LangChain

by Amanda Benksadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentHTTP Request ToolHTTP Request ToolMCP Client ToolMCP Client ToolOpenAI Chat ModelOpenAI Chat ModelSSimple Memory
Share Post Share
ChWhen chat message receivedWhen chat messa…AgAI AgentMBSimple MemoryMcπŸ—‚οΈ MCP FacebookMCMCP FacebookTHSearch MediaSeFacebook MappingTHMedia DetailsTHSearch CommentTHReply CommentTHSend Direct MessageSend Direct Mes…Chat Model12345
1/5
FLOWS
STEPS Β· 5
Starts from a chat message

πŸ€– Facebook AI Agent with MCP Server – Built for Smart Engagement and Automation Hi! I’m Amanda πŸ₯°πŸ˜˜ β€” I build intelligent automations with n8n and Make. This powerful workflow was designed to help teams automatically handle Facebook page interactions with AI. Using Meta Graph API, LangChain, MCP Server, and GPT-4o, it allows your AI agent to search for posts, read captions, fetch comments, and even reply or message followers, all through structured tools. πŸ”§ What the workflow does Searches for recent media using Facebook Page ID and access token Reads and extracts captions or media URLs Fetches comments and specific replies from each post Replies to comments automatically with GPT-generated responses Sends direct messages to followers who commented Maps user input and session to keep memory context via LangChain Communicates via Server-Sent Events (SSE) using your MCP Server URL 🧰 Nodes & Tech Used LangChain Agent + Chat Model with GPT-4o Memory Buffer for session memory toolHttpRequest to search media, comments, and send replies MCP Trigger and MCP Tool (custom SSE connection) Set node for input and variable assignment Webhook and JSON for Facebook API structure βš™οΈ Setup Instruc

Tags

n8nreference-onlyagentlm-chat-open-aimcp-client-toolmemory-buffer-windowtool-http-request
Connects
AAI AgenthttprequesttoolHTTP Request ToolmcpclienttoolMCP Client ToolopenaichatmodelOpenAI Chat ModelSSimple Memory
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes12
AddedMay 8, 2025
AopenaichatmodelserpapigooglesearchS
free

Slack chatbot powered by AI

This workflow offers an effective way to handle a chatbot's functionality, making use of multiple tools for information retrieval, conversation context storage, and message sending. It's a setup tailored for a Slack environment, aiming to offer an interactive, AI-driven chatbot experience. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

AI agent chat

This workflow employs OpenAI's language models and SerpAPI to create a responsive, intelligent conversational agent. It comes equipped with manual chat triggers and memory buffer capabilities to ensure seamless interactions. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

AI chatbot that can search the web

This workflow is designed for dynamic and intelligent conversational capabilities. It incorporates OpenAI's GPT-4o model for natural language understanding and generation. Additional tools include SerpAPI and Wikipedia for enriched, data-driven responses. The workflow is triggered manually, and utilizes a 'Window Buffer Memory' to maintain the context of the last 20 interactions for better conversational continuity. All these components are orchestrated through n8n nodes, ensuring seamless interconnectivity. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team