# Instagram Post & Reel Comments Auto-Reply Lead DM Funnel Unipile: n8n workflow

> Started by a clock, and works across n8n data table. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from...

Source: https://millionrounds.com/workflow/instagram-post-and-reel-comments-auto-reply-lead-dm-funnel-u (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# Instagram Post & Reel Comments Auto-Reply Lead DM Funnel Unipile

Started by a clock, and works across n8n data table. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 38 steps, 5 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Finstagram-post-and-reel-comments-auto-reply-lead-dm-funnel-u)

**38 steps** Large: read it before trusting it with anything live

**5** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 5 Logic 25 Service 7

The steps in the order they run, from what starts it.

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Simple Memory** Memory Buffer Window *Model*
- 4 **Config Variables Set** Set *Logic*
- 5 **AI Agent** Agent *Model*
- 6 **AI Agent - Lead DM** Agent *Model*
- 7 **AI Agent - Lead Public Comment** Agent *Model*
- 8 **Get Recent Posts** Http Request *Service*
- 9 **Save Normal Reply Output** Set *Logic*
- 10 **Save Lead DM Output** Set *Logic*
- 11 **Save Lead Public Output** Set *Logic*
- 12 **Split Posts** Split Out *Logic*
- 13 **Merge Normal Reply Context** Merge *Logic*
- 14 **Prepare Public Comment Payload1** Set *Logic*
- 15 **Merge Lead Public Comment Context** Merge *Logic*
- 16 **Prepare Public Comment Payload** Set *Logic*
- 17 **Preserve New Chat Context** Set *Logic*
- 18 **Normalize Post** Set *Logic*
- 19 **Prepare Reply Guard Insert** Set *Logic*
- 20 **Attendee Match Found?2** If *Logic*
- 21 **Attendee Match Found?1** If *Logic*
- 22 **Start New Lead Chat** Http Request *Service*
- 23 **Merge New Chat Context** Merge *Logic*
- 24 **Get Comments** Http Request *Service*
- 25 **Insert Reply Guard Row** Data Table *Service*
- 26 **Post Reply** Http Request *Service*
- 27 **Post Lead Comment Reply** Http Request *Service*
- 28 **Split Comments** Split Out *Logic*
- 29 **Attach Post Context** Set *Logic*
- 30 **Build Reply Guard Fields** Set *Logic*
- 31 **Get Reply Guard Row(s)** Data Table *Service*
- 32 **Mark Reply Guard Found** Code *Logic*
- 33 **Not Replied Yet?** If *Logic*
- 34 **Spam Filter** Code *Logic*
- 35 **Should Reply?** If *Logic*
- 36 **High-Intent Filter** Code *Logic*
- 37 **High Intent?** If *Logic*
- 38 **Tag Normal Reply Path** Set *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 38, with 5 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** n8n data table
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 38 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 38 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Finstagram-post-and-reel-comments-auto-reply-lead-dm-funnel-u)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Find high-mismatch local business leads with Firecrawl** 38 steps · calls a model · Slack, n8n data table](https://millionrounds.com/workflow/find-high-mismatch-local-business-leads-with-firecrawl)
- [**Automated lead nurturing with Gemini and Telegram** 42 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/automated-lead-nurturing-with-gemini-and-telegram)
- [**Personalized email outreach with LinkedIn and Crunchbase** 27 steps · calls a model · n8n data table](https://millionrounds.com/workflow/personalized-email-outreach-with-linkedin-and-crunchbase)
- [**Automate product Hunt lead generation with Apify** 49 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-product-hunt-lead-generation-with-apify)
- [**Enrich and deduplicate Slack-uploaded companies in HubSpot** 27 steps · HubSpot, Slack](https://millionrounds.com/workflow/enrich-and-deduplicate-slack-uploaded-companies-in-hubspot)
- [**Lead collection with SendPulse and SMS** 24 steps · calls a model · n8n data table](https://millionrounds.com/workflow/lead-collection-with-sendpulse-and-sms)
