π± Automated Instagram commenting on selected profiles with GPT-4o and Phantombuster
β‘ 584 views Β· π± Social Media & Email Marketing
π‘ Pro Tip β Heads up β if this workflowβs Instagram scraping breaks (it happens whenever Meta updates their frontend), ScraperNode is a community node that handles profiles, posts, reels, and comments without any HTML parsing.
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.csvto prevent repeats.
How to set up
- Same as the auto-liker, but also add
instagram_posts_already_commented.csv(headerpostUrl). - 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
HTTP Request, Phantombuster, Schedule Trigger, AI Agent, OpenAI Chat Model, Convert to File
## π₯ Import
Download [`workflow.json`](workflow.json) and import into n8n:
**Workflow menu β Import from File**
[π Importing guide](../../../docs/importing-templates.md) Β· [π Credential setup](../../../docs/credential-setup.md)