Scheduled Instagram auto-liker with Phantombuster, GPT-4o & cookie rotation
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 (11)
- Wait
n8n-nodes-base.wait - Phantombuster
n8n-nodes-base.phantombuster - Code
n8n-nodes-base.code - Microsoft SharePoint
n8n-nodes-base.microsoftSharePoint - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Schedule Trigger
n8n-nodes-base.scheduleTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Convert to File
n8n-nodes-base.convertToFile
What it does
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 1. Schedule Trigger runs every 2 hours at a specified minute. 2. Select Cookie chooses a rotating Instagram session-cookie (time-slice logic). 3. Generate Random Hashtag (GPT-4o) outputs a realistic AI/BPA hashtag. 4. Instagram Hashtag Agent (Phantombuster) scrapes up to ENVMAXPOSTSPERHASHTAG recent posts. 5. Get Random Post selects one; duplicate checker ensures it hasn’t been liked before (SharePoint CSV). 6. Builds instagrampoststolike.csv, uploads to SharePoint, then launches the Auto-like Agent which likes the post. 7. Post URL is appended to instagrampostsalreadyliked.csv to avoid duplicates. 8. Wait nodes throttle launches to ~12 likes per profile daily. How to set up 1. Add credentials: Phantombuster API, SharePoint OAuth2, OpenAI API key. 2. In SharePoint › “Phantombuster” folder create: • instagramsessioncookies.txt – one cookie per line. • instagrampostsalreadyliked.csv with header postUrl. 3. Adjust Set ENV Variables to change max posts per scrape. 4. 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 ENVMAXPOSTSPERHASHTAG, numberOfPostsPerLaunch, or schedule frequency. - Replace SharePoint with Drive/Dropbox by swapping storage nodes.