Auto-like LinkedIn posts with GPT-4o, Phantombuster and SharePoint
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
Recruiters, B2B marketers, and thought-leadership builders who want to boost their LinkedIn engagement by automatically liking fresh, relevant posts—while staying under LinkedIn’s daily limits.
How it works / What it does
- Schedule Trigger runs hourly at a specified minute.
- Select Cookie chooses a rotating LinkedIn session-cookie (time-slice logic).
- Generate Random Search Term (GPT-4o) outputs a realistic AI/BPA keyword.
- Phantombuster LinkedIn Content Search Agent scrapes recent posts → Get Posts.
- Get Random Post selects one post, checks it isn’t already liked (SharePoint CSV) and appends the company-ID query param. If a personal LinkedIn Account is used, no company-ID is needed.
- Creates
linkedin_posts_to_like.csv, uploads to SharePoint, and provides the URL to Autolike Agent which likes the post. - The post URL is added to
linkedin_posts_already_liked.csvto avoid duplicates. - Wait nodes throttle launches to ≈400 likes/day.
How to set up
- Add credentials: Phantombuster API, SharePoint OAuth2, OpenAI API key.
- In SharePoint › “Phantombuster” folder create:
•linkedin_session_cookies.txt– one cookie per line.
•linkedin_posts_already_liked.csvwith headerpostUrl. - Update Set ENV Variables with your LinkedIn company ID (
ENV_COMPANY_ID_LINKEDIN). - Adjust schedule or likes-per-launch as needed.
- Activate the workflow; it will run hourly and like one new post per launch.
Requirements
- n8n 1.33 +
- Phantombuster Growth plan (API access)
- OpenAI account (GPT-4o)
- Microsoft 365 SharePoint tenant
How to customize
- Change niche: edit the prompt in Generate Random Search Term.
- Like more posts: raise
numberOfLinesPerLaunchand schedule frequency. - Swap SharePoint for Google Drive/Dropbox: replace the upload/download nodes.