Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
An n8n workflow that answers Instagram direct messages in your own voice. ManyChat posts each message to a webhook, an OpenAI agent replies with a short memory of the chat, and the reply goes back as JSON.
Instagram DM reply bot with ManyChat and an OpenAI agent is an n8n workflow in the Marketing & SEO category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
A follower sends a message
It starts when ManyChat posts a message to the webhook. It brings:
A short reply in your voice, returned to ManyChat as JSON in a field called output
What you need before you start.
Instagram chat tool
Posts each message to the webhook and shows the reply.
NeedsA ManyChat account with Instagram connected
Message source
Where the follower writes the direct message.
NeedsAn Instagram account connected to ManyChat
Reply writer
Writes the reply in the voice of your prompt.
NeedsAn OpenAI API key
Checked by Mindket on 13 Nov 2026
This n8n workflow is the brain behind an Instagram message bot. ManyChat, the chat tool that sits between Instagram and n8n, posts each incoming message to a webhook, together with an id for that chat. A Set step holds your system prompt and picks the message text and the chat id out of the request. An OpenAI agent writes the answer in the voice the prompt describes, and a window memory keeps the recent turns of each chat. The workflow then hands the answer back as JSON. Six nodes run it, beside one sticky note.
Creators and small brands who get the same questions in their Instagram inbox and want a first reply in their own tone. Skip it if a wrong answer would cost money or trust, because the bot knows only what your prompt tells it. It writes to real people.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Creators | Solo creators | Answer the questions every post brings in | A creator pastes ten captions into the prompt and the bot replies in the same easy tone. |
| Coaching | Fitness and life coaches | Give a first answer to “where do I start” messages | A coach lists a free guide in the prompt, and the bot points new followers to it. |
| Shops | Small online shops | Answer opening hours, sizes and shipping from facts in the prompt | A shop owner writes the delivery times into the prompt once. |
| Agencies | Social media managers | Cover first-line replies for a client’s account | A manager keeps one copy of the workflow for each client, each with its own prompt. |
You need to know n8n’s settings: import a file, add one credential, set a webhook live and call it from another tool.
It needs an n8n that ManyChat can reach over the internet, and a ManyChat account connected to Instagram.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup is one credential, one prompt and one address in ManyChat.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own that the internet can reach |
| OpenAI | An API key, added in n8n as an OpenAI credential |
| ManyChat | An account with your Instagram account connected. Mindket did not check which ManyChat plan allows calls to a webhook |
| Example posts | A few of your own captions or posts, so that the bot can copy your tone |
workflow.json.OpenAI Chat Model.Set System Prompt. Replace <YOUR_EXAMPLE_POSTS> with your own posts, and change the rules if you like.Receive Instagram Message and copy its production address.session_id, and the contact’s last message as text. Show the output field of the reply as the bot’s message.Leave the workflow published. Each message a follower sends in the ManyChat flow gets a reply that the agent writes. Test with your own account before you open it to everyone.
| To change | Where |
|---|---|
| The bot’s voice and rules | The prompt field in Set System Prompt |
| How many turns it remembers | The context window length in Window Buffer Memory |
| The model | OpenAI Chat Model |
| The webhook address | The path in Receive Instagram Message |
| The shape of the answer | Send Reply |
A follower asks your bot a question through the ManyChat flow.
{"session_id": "1001", "text": "What is your top tip for starting out?"}The agent answers in a short line, in the voice of your example posts, and the webhook returns a JSON object with one field called output. ManyChat shows that text to the follower.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one waits for a message, asks an AI to answer it and sends the answer back. Add your example posts first, because the bot only knows what you give it.
For experts. The chat id from ManyChat is the memory key.
| Node | What it does | What to know |
|---|---|---|
Receive Instagram Message | Takes a POST and waits for a reply node | Anyone who knows the address can post to it |
Set System Prompt | Holds the prompt and reads session_id and text from the body | The chat id keys the memory |
AI Agent | Runs the model with the prompt and the message | No tools are connected |
OpenAI Chat Model | The model behind the agent | Set to gpt-5.6-terra, which an agent can use for tool calling |
Window Buffer Memory | Keeps the recent turns of each chat | It lives in n8n’s own memory, so a restart clears it |
Send Reply | Returns the first incoming item as JSON | The answer sits in output |
The webhook is open, so treat it like a door with no lock.
gpt-5-mini, which OpenAI shuts down on 11 December 2026. The model is now gpt-5.6-terra. The prompt is rewritten, with a placeholder for your posts, and the webhook address is neutralAn n8n workflow that answers Instagram direct messages in your own voice. ManyChat posts each message to a webhook, an
OpenAI agent writes the reply with a short memory of the chat, and the workflow sends the reply back as JSON.
workflow.json: the workflow as n8n exports it, seven nodes. One is a sticky note. It holds no credential.README.md: these notes.gpt-5-mini, which OpenAI shuts down ongpt-5.6-terra, set in OpenAI Chat Model.<YOUR_EXAMPLE_POSTS>, where you paste your owninstagram-dm, and the hidden webhook id from the original is gone.Receive Instagram Message, Set System Prompt and Send Reply. The wiring isworkflow.json.OpenAI Chat Model.Set System Prompt. Replace <YOUR_EXAMPLE_POSTS> with your own posts, and change the rules if you like.Receive Instagram Message and copy its production address.session_id, and the contact's last message as text. Show the output field of the reply as the bot's message.Receive Instagram Message takes the POST and waits for a reply node.Set System Prompt builds three fields: the prompt, the chat id from session_id and the message from text.AI Agent sends the message to the model with your prompt as its system message. Window Buffer Memory supplies theSend Reply returns the agent's answer as JSON. The text sits in a field called output.prompt field in Set System Prompt.Window Buffer Memory.OpenAI Chat Model.Receive Instagram Message.gpt-5.6-terra because an agent talks to its model throughNOTICE.md 625 B README.md 4 KB workflow.json 5 KB
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
nerijs · Kit
A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…
LiconStudio · Kit
Keeps characters, clothing, objects and backgrounds consistent in generated video by feeding the model up to five reference images. A LoRA for LTX-2.5 in Comfy…
nhathoangfoto · Kit
A LoRA for FLUX.2 Klein 9B that puts a character into the pose shown by a mannequin reference while keeping the character's face and style. For artists and des…