# Reply to Instagram comments and send DMs: n8n workflow template

> Started by another system calling it, and works across Google Sheets and Slack. It puts Gemini behind a retrieval step, so answers are drawn from documents...

Source: https://millionrounds.com/workflow/reply-to-instagram-comments-and-send-dms (Millionrounds; every figure on the page links to its filing or article)

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

# Reply to Instagram comments and send DMs

Started by another system calling it, and works across Google Sheets and Slack. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps, 5 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freply-to-instagram-comments-and-send-dms)

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

**5** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 3 Model 6 Logic 7 Service 7

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

- 1 **Webhook** Webhook *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Simple Memory** Memory Buffer Window *Model*
- 4 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 5 **Simple Memory1** Memory Buffer Window *Model*
- 6 **Code in JavaScript1** Code *Logic*
- 7 **Respond to Webhook3** Respond To Webhook *Starts it*
- 8 **AI Agent** Agent *Model*
- 9 **AI Agent1** Agent *Model*
- 10 **Respond to Webhook2** Respond To Webhook *Starts it*
- 11 **If** If *Logic*
- 12 **If2** If *Logic*
- 13 **Facebook Graph API3** Facebook Graph Api *Service*
- 14 **If1** If *Logic*
- 15 **Wait** Wait *Logic*
- 16 **Send a message1** Slack *Service*
- 17 **Facebook Graph API2** Facebook Graph Api *Service*
- 18 **If3** If *Logic*
- 19 **If4** If *Logic*
- 20 **Facebook Graph API** Facebook Graph Api *Service*
- 21 **Story Mention** Slack *Service*
- 22 **Send a message** Slack *Service*
- 23 **Update row in sheet** Google Sheets *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 23, with 5 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Slack
- **Model:** Gemini
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Slack accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls Gemini. 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 23 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 23 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%2Freply-to-instagram-comments-and-send-dms)
- **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.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Assess procurement inflation risk with Groq and Google Sheets** 23 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/assess-procurement-inflation-risk-with-groq-and-google-sheet)
- [**Build an engineering knowledge graph with ClickUp and GitHub** 23 steps · calls a model · Slack](https://millionrounds.com/workflow/build-an-engineering-knowledge-graph-with-clickup-and-github)
- [**Classify and respond to Facebook Messenger inquiries** 23 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/classify-and-respond-to-facebook-messenger-inquiries)
- [**Create AI Instagram Reels with OpenAI and Veo3** 23 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/create-ai-instagram-reels-with-openai-and-veo3)
- [**Find LinkedIn engagement opportunities with Apify and Gemini** 23 steps · calls a model · Apify, Google Sheets](https://millionrounds.com/workflow/find-linkedin-engagement-opportunities-with-apify-and-gemini)
- [**Omni-Sentinel AI: autonomous enterprise auditor & ROI engine** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/omni-sentinel-ai-autonomous-enterprise-auditor-and-roi-engin)
