Scheduled Instagram auto-liker with Phantombuster, GPT-4o & cookie rotation
Workflow preview
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER
Early Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Important notice
This workflow is provided as-is. Please review and test before using in production.
Overview
Who’s it for
Social-media managers and brands that want to keep their Instagram accounts active by automatically liking fresh posts under selected hashtags—hands-free and rate-limited.
How it works / What it does
- Schedule Trigger runs every 2 hours at a specified minute.
- Select Cookie chooses a rotating Instagram session-cookie (time-slice logic).
- Generate Random Hashtag (GPT-4o) outputs a realistic AI/BPA hashtag.
- Instagram Hashtag Agent (Phantombuster) scrapes up to
ENV_MAX_POSTS_PER_HASHTAGrecent posts. - Get Random Post selects one; duplicate checker ensures it hasn’t been liked before (SharePoint CSV).
- Builds
instagram_posts_to_like.csv, uploads to SharePoint, then launches the Auto-like Agent which likes the post. - Post URL is appended to
instagram_posts_already_liked.csvto avoid duplicates. - Wait nodes throttle launches to ~12 likes per profile daily.
How to set up
- Add credentials: Phantombuster API, SharePoint OAuth2, OpenAI API key.
- In SharePoint › “Phantombuster” folder create:
•instagram_session_cookies.txt– one cookie per line.
•instagram_posts_already_liked.csvwith headerpostUrl. - Adjust Set ENV Variables to change max posts per scrape.
- Activate the workflow; it will like one post every 2 hours.
Requirements
- n8n 1.33 +
- Phantombuster Growth plan (API access)
- OpenAI account
- Microsoft 365 SharePoint tenant
How to customize
- Target a different niche: edit hashtag prompt in Generate Random Hashtag.
- Like more posts: raise
ENV_MAX_POSTS_PER_HASHTAG,numberOfPostsPerLaunch, or schedule frequency. - Replace SharePoint with Drive/Dropbox by swapping storage nodes.