n8nflow.net logo

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

by plemeoUpdated: Last update 14 days agoSource: n8n.io

Getting Started

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

  • 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/