Templates / 🤖 Instagram MCP AI agent – read, reply & manage comments with GPT-4o

🤖 Instagram MCP AI agent – read, reply & manage comments with GPT-4o

Needs changes

by Amanda Benks ✓ · 5,981 views · created 2025-05-06 · Social Media, AI Chatbot

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes), HTTP Request Tool (legacy). 2 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
HTTP Request Tool (legacy)
Search Media, Media Details, Search Comment, Reply Comment, Send Direct Message
HTTP Request node connected to the AI Agent's Tool input

Nodes used (8)

AI AgentSimple MemoryMCP ClientHTTP RequestOpenAI Chat Model

What it does

🤖 Instagram 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 Instagram 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 Instagram 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 Instagram API structure --- ⚙️ Setup Instructions 1. Create your Instagram App in Meta Developer Portal 2. Add your Instagram ID and Access Token in the Set node 3. Update the MCP Server Tool URL in the MCP Instagram node - Use your n8n server URL (e.g. https://yourdomain.com/mcp/server/instagram/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 - Social media teams managing multiple comments - Brands automating engagement with followers - Agencies creating smart, autonomous digital assistants - Developers building conversational Instagram bots --- ✅ Requirements - Meta Graph API access - Instagram Business account - n8n instance (Cloud or Self-hosted) - MCP Server configured (SSE Endpoint enabled) - OpenAI API Key (for GPT-4o + LangChain) --- 🌐 Want to use this workflow? ❤️ Buy workflows: https://iloveflows.com ☁️ Try n8n Cloud: https://n8n.partnerlinks.io/amanda

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.