workflows.fit
Back to n8n workflows
n8n templateFreeBy Luciano Gutierrez

Automated Instagram comment replies using Gemini AI with context-aware responses

Instagram Auto-Comment Responder with AI Agent Integration Version: 1.1.0 ‧ n8n Version: 1.88.0+ ‧ License: MIT A fully automated workflow for managing and responding to Instagram comments using AI agents. Designed to...

DevelopmentCore NodesAILangchainUtilityWebhookSticky NoteRespond To Webhook
Loading interactive preview...

Template notes

Instagram Auto-Comment Responder with AI Agent Integration

Version: 1.1.0 ‧ n8n Version: 1.88.0+ ‧ License: MIT

A fully automated workflow for managing and responding to Instagram comments using AI agents. Designed to improve engagement and save time, this system listens for new Instagram comments, verifies and filters them, fetches relevant post data, processes valid messages with a natural language AI, and posts context-aware replies directly on the original post.

---

Key Features

- 💬 AI-Driven Engagement: Intelligent responses to comments via a GPT-powered agent. - ✅ Webhook Verification: Handles Instagram webhook handshake to ensure secure integration. - 📦 Data Extraction: Maps incoming payload fields (user ID, username, message text, media ID) for processing. - 🚫 Self-Comment Filtering: Automatically skips comments made by the account owner to prevent loops. - 📡 Post Data Retrieval: Fetches the media’s id and caption from the Graph API (v22.0) before generating a reply. - 🧠 Natural Language Processing: Uses a custom system prompt to maintain brand tone and context. - 🔁 Automated Replies: Posts the AI-generated message back to the comment thread using Instagram’s API. - 🧩 Modular Architecture: Clear separation of steps via sticky notes and dedicated HTTP Request and Agent nodes.

Use Cases

- Social Media Automation: Keep followers engaged 24/7 with instant, relevant replies. - Community Building: Maintain a consistent voice and tone across all interactions. - Brand Reputation Management: Ensure no valid comment goes unanswered. - AI Customer Support: Triage simple questions and direct followers to resources or support.