Auto-like LinkedIn Posts with GPT-4o, Phantombuster and SharePoint
Last edited 58 days ago
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.
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!





