Automated Instagram Commenting on Selected Profiles with GPT-4o and Phantombuster

Go to Workflow
0 views
Built by plemeo plemeo
Created on June 05, 2026

Description

Who’s it for
Influencers and social-media teams who want to comment automatically on posts from selected Instagram profiles—scaling engagement while staying within platform limits.

How it works / What it does
Schedule Trigger runs every 2 h.
Profile Post Extractor fetches up to 20 posts per profile from your CSV.
Select Cookie rotates Instagram session-cookies.
Get Random Post selects one.
Create Comment (GPT-4o) writes ≤150-character reply in your chosen language.
Builds instagram_post_to_comment.csv, uploads to SharePoint.
Phantombuster Autocomment Agent posts it.
Logged in instagram_posts_already_commented.csv to prevent repeats.

How to set up
Same as the auto-liker, but also add instagram_posts_already_commented.csv (header postUrl).
Define tracked profiles in profiles_instagram.csv.
Configure comment prompt & language in Set ENV Variables.

Profile CSV format
Your profiles_instagram.csv must contain a header profileUrl and valid Instagram profile URLs. Example:
profileUrl
https://www.instagram.com/brand_account/
https://www.instagram.com/influencer123/

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
Microsoft SharePoint
n8n-nodes-base.microsoftSharePoint
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Phantombuster
n8n-nodes-base.phantombuster