📱 Auto-like LinkedIn posts with GPT-4o, Phantombuster and SharePoint
⚡ 127 views · 📱 Social Media & Email Marketing
💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
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.
🔗 Nodes Used
Phantombuster, Schedule Trigger, AI Agent, OpenAI Chat Model, Convert to File, Extract from File
📥 Import
Download workflow.json and import into n8n:
Workflow menu → Import from File