# Automated Instagram commenting on selected profiles: n8n workflow

> Started by a clock. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/automated-instagram-commenting-on-selected-profiles (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# Automated Instagram commenting on selected profiles

Started by a clock. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI. 31 steps, 2 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-instagram-commenting-on-selected-profiles)

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

**2** Branches: places the flow splits

**3** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Model 4 Logic 11 Service 15

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 4 **Create Comment** Agent *Model*
- 5 **Get Available Session Cookies** Microsoft Share Point *Service*
- 6 **Select Cookie** Agent *Model*
- 7 **Create CSV Binary** Code *Logic*
- 8 **Extract Cookies** Extract From File *Service*
- 9 **Set ENV Variables** Set *Logic*
- 10 **Upload CSV** Microsoft Share Point *Service*
- 11 **Get Profile Extractor Agent** Phantombuster *Service*
- 12 **Get Autocomment Agent** Phantombuster *Service*
- 13 **Get List of Accounts** Microsoft Share Point *Service*
- 14 **Launch AC Agent** Phantombuster *Service*
- 15 **Launch Agent1** Phantombuster *Service*
- 16 **Wait1** Wait *Logic*
- 17 **Wait3** Wait *Logic*
- 18 **Get Response** Phantombuster *Service*
- 19 **HTTP Request** Http Request *Service*
- 20 **HTTP Request1** Http Request *Service*
- 21 **Prepare Posts** Code *Logic*
- 22 **If Empty** If *Logic*
- 23 **Wait2** Wait *Logic*
- 24 **Get Random Post** Code *Logic*
- 25 **Download file** Microsoft Share Point *Service*
- 26 **Extract from File** Extract From File *Service*
- 27 **Check if in List** Code *Logic*
- 28 **If** If *Logic*
- 29 **Prepare Updated Data** Code *Logic*
- 30 **Convert to File** Convert To File *Service*
- 31 **Update file** Microsoft Share Point *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 31, with 2 branches, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** OpenAI

## 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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 31 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 31 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%2Fautomated-instagram-commenting-on-selected-profiles)
- **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.

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Extract and classify legal documents with Claude** 31 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/extract-and-classify-legal-documents-with-claude)
- [**AI knowledge assistant with Gemini and OpenAI** 32 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/ai-knowledge-assistant-with-gemini-and-openai)
- [**AI-powered WhatsApp chatbot for text, voice, images, and PDF** 32 steps · calls a model · Google Docs, WhatsApp](https://millionrounds.com/workflow/ai-powered-whatsapp-chatbot-for-text-voice-images-and-pdf)
- [**Chat with Google Drive and Pinecone** 30 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/chat-with-google-drive-and-pinecone)
- [**Create custom PDF documents from templates with Gemini** 30 steps · calls a model · Google Drive](https://millionrounds.com/workflow/create-custom-pdf-documents-from-templates-with-gemini)
- [**Document-based RAG chat assistant with Google Drive** 32 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/document-based-rag-chat-assistant-with-google-drive)
