Auto-like Twitter posts with AI hashtags, cookie rotation & SharePoint

Go to Workflow
90 views
Built by plemeo plemeo
Created on June 05, 2026

Description

Who’s it for
Growth hackers, social-media managers, and brand builders who want to keep their Twitter (X) accounts active by automatically liking relevant posts on a set schedule—without manual scrolling.

How it works / What it does
Schedule Trigger runs every hour at a specified minute.
Select Cookie chooses a rotating Twitter session-cookie (to stay under 1 000 likes/day).
AI Agent generates a realistic AI/BPA-related hashtag.
Phantombuster Hashtag Agent scrapes recent tweets for that hashtag → Get Posts.
Get Random Post picks one tweet, checks it isn’t already liked (SharePoint CSV), and uploads a one-row twitter_posts_to_like.csv.
Phantombuster Autolike Agent receives the CSV link and likes the tweet.
The tweet URL is appended to twitter_posts_already_liked.csv to prevent duplicates.

How to set up
Create credentials: Phantombuster API key, SharePoint OAuth2, OpenAI API key.
In SharePoint › “Phantombuster” folder add:
• twitter_posts_already_liked.csv (header postUrl).
• twitter_session_cookies.txt – one cookie per line.
Adjust schedule if you need a different frequency.
Activate the workflow—likes will start automatically.

Requirements
n8n 1.33+
Phantombuster Growth plan (API access)
OpenAI account
Microsoft 365 SharePoint tenant

How to customize
Change hashtag logic: edit the prompt in AI Agent.
Increase daily likes: add more cookies or shorten Wait nodes.
Swap SharePoint for Google Drive/Dropbox: replace the upload/download nodes.

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Microsoft SharePoint
n8n-nodes-base.microsoftSharePoint
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Phantombuster
n8n-nodes-base.phantombuster