Turn Instagram DMs into fast, helpful replies that also collect leads. Messages arrive from ManyChat, an AI reply is created, and the answer returns to Instagram in seconds. Great for creators, small brands, and marketing teams that want quick responses without extra staff.
The flow starts with a webhook that receives the DM from ManyChat. A Set node defines the system prompt so the AI keeps your brand voice. The AI Agent uses an OpenAI ChatGPT model with a memory window of up to 20 messages to keep context. It reads the chatInput from the request, generates a concise reply, and returns it through the Respond to Webhook node so ManyChat can send it back to Instagram.
Setup is simple. You need an OpenAI API key and a ManyChat account connected to your Instagram account. Paste the n8n production webhook URL into a ManyChat custom action, map chatInput and an ID for session memory if you want history, and adjust the prompt and memory window. Expect faster response times, fewer manual tasks, and better lead capture during busy hours and off hours.