Automated Instagram commenting on selected profiles with GPT-4o and Phantombuster
Ready for 3.0Ready 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-10-19.
Nodes used (12)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Microsoft SharePoint
n8n-nodes-base.microsoftSharePoint - Phantombuster
n8n-nodes-base.phantombuster - Edit Fields (Set)
n8n-nodes-base.set - Schedule Trigger
n8n-nodes-base.scheduleTrigger - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Convert to File
n8n-nodes-base.convertToFile - HTTP Request
n8n-nodes-base.httpRequest
What it does
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 1. Schedule Trigger runs every 2 h. 2. Profile Post Extractor fetches up to 20 posts per profile from your CSV. 3. Select Cookie rotates Instagram session-cookies. 4. Get Random Post selects one. 5. Create Comment (GPT-4o) writes ≤150-character reply in your chosen language. 6. Builds instagramposttocomment.csv, uploads to SharePoint. 7. Phantombuster Autocomment Agent posts it. 8. Logged in instagrampostsalreadycommented.csv to prevent repeats. How to set up - Same as the auto-liker, but also add instagrampostsalreadycommented.csv (header postUrl). - Define tracked profiles in profilesinstagram.csv. - Configure comment prompt & language in Set ENV Variables. Profile CSV format Your profilesinstagram.csv must contain a header profileUrl and valid Instagram profile URLs. Example: csv profileUrl https://www.instagram.com/brandaccount/ https://www.instagram.com/influencer123/