📱 Automated Facebook comment management with GPT-4o and LangChain

1,800 views · 📱 Social Media & Email Marketing

💡 Pro Tip — If you’ve run into Facebook’s Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly — no app review needed.

View All Scrapers

Description

🤖 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


🧰 Nodes & Tech Used


⚙️ Setup Instructions

  1. Create your Facebook App in Meta Developer Portal
  2. Add your Facebook Page ID and Access Token in the Set node
  3. Update the MCP Server Tool URL in the MCP Facebook node
    • Use your n8n server URL (e.g. https://yourdomain.com/mcp/server/facebook/sse)
  4. Trigger the workflow using the included LangChain Chat Trigger
  5. Interact via text to ask the agent to:
    • “Get latest posts”
    • “Reply to comment X with this message”
    • “Send DM to this user about…”

👥 Who this is for


✅ Requirements


🌐 Want to use this workflow?

❤️ Buy workflows: https://iloveflows.com
☁️ Try n8n Cloud: https://n8n.partnerlinks.io/amanda

🔗 Nodes Used

AI Agent, OpenAI Chat Model, Simple Memory, Chat Trigger, HTTP Request Tool, MCP Client Tool

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup