πŸ“± 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.

View All Scrapers

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

  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 instagram_post_to_comment.csv, uploads to SharePoint.
  7. Phantombuster Autocomment Agent posts it.
  8. Logged in instagram_posts_already_commented.csv to prevent repeats.

How to set up

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)