Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Instagram DM Automation With n8n: Build a Keyword-Based Auto-Reply Flow (2026)

Description and use

Automate Instagram DM replies using n8n: set up a keyword router, follow API rules, and enforce guardrails to avoid spam.

Problem

Automate Instagram direct message replies without using paid SaaS tools.

Outcome

The flow allows a business to automatically reply to common DM inquiries using keyword matching, reducing manual effort while staying within Instagram’s official API guidelines.

Workflow

  • Connect Instagram to n8n via OAuth and a webhook or trigger node.
  • Add a Switch node to route incoming messages based on keyword matches.
  • Attach an Instagram send‑message node to each keyword branch to reply appropriately.
  • Include a default fallback reply for unmatched messages.
  • Add guardrails: per‑user message cap, human takeover path, and 24‑hour window compliance.
  • Test the flow on a second account before deploying to real followers.

Evidence

Want Instagram DM automation without paying for another SaaS tool? Here’s how to wire up a keyword-based auto‑reply flow in n8n, step by step.

Source

An Instagram trigger fires when someone DMs you or comments with a keyword.

Source

A Switch node checks the message text for keywords like "price", "book", or "hours".

Source

Add a per‑user message cap. Track who you’ve replied to and don’t send more than one or two automated replies per person per day.

Source

Instagram’s messaging rules limit promotional messages to people who contacted you recently.

Source

  • Record date: 2026-10-23T04:11:14.883Z