Templates / Reply to Instagram DMs with keyword-based affiliate links via Meta Graph API

Reply to Instagram DMs with keyword-based affiliate links via Meta Graph API

Ready for 3.0

by Mihajlo ✓ · 295 views · created 2026-04-18 · Lead Nurturing, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 23 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Configure Global Settings (Edit Fields (Set)): sets 2 fields: accessToken, igUserId
  2. Get Inbox Conversations (HTTP Request): calls an HTTP API
  3. Get General Conversations (HTTP Request): calls an HTTP API
  4. Get Pending Conversations (HTTP Request): calls an HTTP API
  5. Get Message Requests (HTTP Request): calls an HTTP API
  6. Merge: merges the data from its input branches
  7. Merge: merges the data from its input branches
  8. Merge: merges the data from its input branches
  9. Parse Conversations (Code): runs custom JavaScript code
  10. Split Conversations (Loop Over Items (Split in Batches)): loops over the items in batches

…plus 10 more steps. See the full node list below.

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (10)

From the author

This n8n workflow is an automated Instagram DM responder that checks messages and replies with affiliate links based on keywords. It runs on a schedule (every 15 minutes) or can be triggered manually. First, it loads configuration values such as the Meta…

Excerpt from Mihajlo's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.