Skip to main content

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

Workflow preview

Workflow preview
100%
AI agent for Instagram DM/inbox. Manychat + Open AI integration preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Lead Nurturing automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Alex Hi no code.

Original n8n.io source

1.1 Workflow description

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

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

  1. Import the Template: Copy the n8n workflow into your workspace.
  2. OpenAI Credentials: Add your OpenAI API key in n8n so GPT can generate responses.
  3. ManyChat Account: Create (or log in to) your ManyChat account.
  4. Connect Instagram: Link your Instagram profile as a channel in ManyChat.
  5. ManyChat Custom Field: Create a custom field for storing user input or conversation context.
  6. Configure Default Reply: In ManyChat, set up the default Instagram reply flow to point to your n8n webhook.
  7. Add External Request: Create an external request step in ManyChat to send messages to n8n.
  8. 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Set your system promt for AI

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 2 - Local n8n memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - ChatGPT model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 4 - Send respond

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Getting message from Instagram

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow AI agent for Instagram DM/inbox. Manychat + Open AI integration
Complexity intermediate
Nodes 11
Categories Lead Nurturing, AI Chatbot
Author Alex Hi no code
Published 12 Jan 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2718/2718.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI agent for Instagram DM/inbox. Manychat + Open AI integration do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Nurturing, AI Chatbot use case.