AI agent for Instagram DM/inbox. Manychat + Open AI integration

Go to Workflow
28,043 views
Built by Alex Hi no code Alex Hi no code
Created on June 05, 2026

Description

Automate Instagram DMs with OpenAI GPT and ManyChat

How It Works:
Once connected, GPT will automatically initiate conversations with messages from new recipients in Intagram.

Who Is This For?
This workflow is ideal for
marketers,
business owners
content creators

who want to automatically respond to Instagram direct messages using OpenAI GPT.

By integrating ManyChat, you can manage conversations, nurture leads, and provide instant replies at scale.

What This Workflow Does
Captures** incoming Instagram DMs through ManyChat’s integration.
Processes** messages with GPT to generate a relevant response.
Delivers** instant replies back to Instagram users, creating efficient, AI-driven communication.

Setup
Import the Template: Copy the n8n workflow into your workspace.
OpenAI Credentials: Add your OpenAI API key in n8n so GPT can generate responses.
ManyChat Account: Create (or log in to) your ManyChat account.
Connect Instagram: Link your Instagram profile as a channel in ManyChat.
ManyChat Custom Field: Create a custom field for storing user input or conversation context.
Configure Default Reply: In ManyChat, set up the default Instagram reply flow to point to your n8n webhook.
Add External Request: Create an external request step in ManyChat to send messages to n8n.
Test the Flow: Send yourself a DM on Instagram to confirm the workflow triggers and GPT responds correctly.

Instructions and links:

Notion instruction

Register in ManyChat

Nodes Used (3)

AI Agent
@n8n/n8n-nodes-langchain.agent
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow