Automated Twitter following with hashtag targeting, Phantombuster, and GPT-4o

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

Description

Who’s it for
Growth marketers, community managers, and personal-brand builders who want to steadily grow their Twitter (X) network by following new, relevant accounts on autopilot—while respecting daily limits.

How it works / What it does
Schedule Trigger fires every hour at a specified minute.
Select Cookie picks a rotating Twitter session-cookie based on time slices.
AI Agent creates a realistic AI/BPA hashtag.
Phantombuster Hashtag Agent scrapes recent tweets → extracts profile handles.
Set Item builds a small CSV with one profile; Launch AF Agent instructs the Phantombuster Auto-follow agent to follow it.
Rate-limit nodes cap follows to roughly 50-80 per day.

How to set up
Add credentials: Phantombuster API, SharePoint OAuth2, OpenAI API key.
In SharePoint › “Phantombuster” folder create:
• twitter_session_cookies.txt – one cookie per line.
Adjust schedule or search parameters as needed.
Activate the workflow; it will run hourly and follow 1 new profile each launch.

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

How to customize
Change niche: edit hashtag prompt in AI Agent.
Follow more accounts: raise numberOfAddsPerLaunch and schedule frequency.
Use Google Drive/Dropbox instead of SharePoint: swap the cookie download node.

Nodes Used (4)

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