Automate Instagram Replies with n8n and ChatGPT Integration

This workflow automates Instagram messaging by integrating ManyChat with n8n and ChatGPT, enabling quick, personalized replies to subscriber messages. It reduces response time and ensures consistent communication style.
webhook
agent
lmChatOpenAi
+4
Workflow Identifier: 1814
NODES in Use: Webhook, Set, stickyNote, AI Agent, Local n8n memory, ChatGPT model, Respond to Webhook
Automate Instagram replies with n8n and ChatGPT

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow automates replies to Instagram messages using n8n, ManyChat, and ChatGPT AI. It helps save hours by answering messages fast and in a personal style. The AI reads subscriber questions, remembers past chats, and sends replies like the influencer’s usual way.

This stops slow replies and keeps answers simple and friendly.


Who should use this workflow

Anyone managing many Instagram messages daily can use this to save time.

It fits influencers, marketers, or small businesses that want quick and consistent replies.


Tools and services used

  • n8n automation platform: Runs the workflow and connects nodes.
  • ManyChat: Receives Instagram messages and forwards them via webhook.
  • OpenAI ChatGPT API: Generates AI responses based on subscriber messages and system prompt.

Inputs, processing, and outputs

Inputs

  • Instagram subscriber message captured by ManyChat.
  • Webhook sends message data to n8n.
  • Custom system prompt text defining answer style.
  • Conversation history stored for context.

Processing steps

  • The Webhook node receives message data.
  • The Set node applies a system prompt with influencer style instructions.
  • The Local n8n memory node stores last 20 messages to keep chat context.
  • The AI Agent node sends prompt, message, and history to ChatGPT model node.
  • ChatGPT model node uses OpenAI API key and selected model to produce a reply.
  • The Send respond node sends the AI reply back to ManyChat.

Outputs

  • Personalized AI reply delivered to Instagram subscriber through ManyChat.
  • Reduced manual reply time and consistent message tone.

Beginner step-by-step: How to build this in n8n

Import workflow

  1. Download the workflow from this page.
  2. Go to n8n editor and choose “Import from File”.
  3. Select the downloaded workflow JSON file.

Configure credentials and settings

  1. Add OpenAI API key in the ChatGPT model node settings.
  2. Check ManyChat webhook URL and update if needed in the Webhook node.
  3. Adjust system prompt text in the Set your system promt for AI node if you want a different reply style. Example prompt is provided.
  4. Verify and update any IDs, tokens, or parameters related to your ManyChat or Instagram accounts.

Test and activate

  1. Send a test message from an Instagram subscriber to confirm the workflow triggers.
  2. Check that the AI reply comes back on Instagram via ManyChat.
  3. Once confirmed, activate the workflow in n8n for live use.
  4. If using self hosting or VPS, consider self-host n8n to run workflow securely and always online.

Customization ideas

  • Change system prompt in the Set your system promt for AI node to match different writing tones.
  • Modify the memory window length in the Local n8n memory node to remember more or fewer past messages.
  • Switch the ChatGPT model to GPT-4 for better understanding and replies in the ChatGPT model node.
  • Update webhook URL or path in the Webhook node for other campaigns or social channels.
  • Add logging nodes before or after AI steps to keep message records or debug flows.

Common issues and fixes

No reply from ChatGPT

Probably wrong or missing OpenAI API key, or rate limit hit.

Check API key in the ChatGPT model node and OpenAI usage dashboard.

Webhook gets no data

ManyChat webhook may not be set or uses wrong HTTP method.

Confirm ManyChat sends POST requests to n8n webhook URL.

AI answers seem wrong or generic

Prompt in Set your system promt for AI node may be too weak or generic.

Improve prompt with clear persona and style rules.


Summary and results

✓ Fast, personal replies sent automatically to Instagram subscribers.

✓ Saves hours daily on manual message replies.

✓ Consistent style matching influencer’s voice.

→ Subscribers get quick answers and better experience.

→ Influencer focuses on content instead of replying constantly.


Automate Instagram replies with n8n and ChatGPT

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The workflow will not get replies from ChatGPT. Ensure the API key is correct and valid to fix this.
ManyChat uses a webhook with POST method to deliver incoming Instagram messages to the n8n webhook node.
Yes, by editing the prompt variable in the Set your system promt for AI node, different writing tones or personas can be created.
The Local n8n memory node keeps the last 20 messages to provide chat history context to the AI Agent node for coherent answers.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.