This workflow follows the Agent → OpenAI Chat recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "h0HSEoUOlkkXl3G2",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Twitter Auto Following - Creators Hub",
"tags": [],
"nodes": [
{
"id": "2f1af686-3715-4613-ac41-ae2b95c0cbc7",
"name": "Get Response",
"type": "n8n-nodes-base.phantombuster",
"position": [
-672,
-976
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e2c10bab-84ac-4dd8-8b3f-9831b27ad9ec",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1520,
-1760
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d4fdee18-e789-486d-b005-260ed5bdedc5",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1520,
-1120
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "339816fd-a68d-4557-81cb-c2bd6e84744c",
"name": "Get Autofollow Agent",
"type": "n8n-nodes-base.phantombuster",
"position": [
-1280,
-976
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5e65ab1b-8493-4465-b8e1-a13b0670bd4e",
"name": "Wait for result",
"type": "n8n-nodes-base.wait",
"position": [
-864,
-976
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "925719ca-7b4d-4854-b913-d38d81c4e44b",
"name": "Set ENV Variables",
"type": "n8n-nodes-base.set",
"position": [
-1104,
-1552
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "662276f3-ea58-45e9-9e82-b2f47915d268",
"name": "Launch AF Agent",
"type": "n8n-nodes-base.phantombuster",
"position": [
-1072,
-976
],
"parameters": {},
"typeVersion": 1
},
{
"id": "402534bc-4a5f-4d77-a64b-72991aed5aeb",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"position": [
-576,
-1552
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "30114cfa-2f64-453b-ad4a-6190d7614365",
"name": "Get Hashtag Agent",
"type": "n8n-nodes-base.phantombuster",
"position": [
-928,
-1552
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5d2953f0-17b4-44fe-a991-76889c4075a0",
"name": "Launch Agent",
"type": "n8n-nodes-base.phantombuster",
"position": [
-752,
-1552
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2d00e806-365d-4a17-9146-4471bc58cb8e",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1472,
-1552
],
"parameters": {},
"typeVersion": 2
},
{
"id": "a5d261a2-f85a-4eed-bdcd-8363b2e3799c",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-1472,
-1376
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "fdb51f94-c815-422b-8011-ffd50b361ed5",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-1376,
-2112
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "84a149dc-4e63-41ab-8af9-3e69a10ff261",
"name": "Set Item",
"type": "n8n-nodes-base.set",
"position": [
-1472,
-976
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "74c573e7-4c9b-4069-b610-f8da2b0d6daa",
"name": "Get Available Session Cookies",
"type": "n8n-nodes-base.microsoftSharePoint",
"position": [
-1184,
-2112
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6e3afbe5-1e19-481a-8d32-6e80b0ebc310",
"name": "Extract Cookies",
"type": "n8n-nodes-base.extractFromFile",
"position": [
-992,
-2112
],
"parameters": {},
"typeVersion": 1
},
{
"id": "abf9dde2-e817-4f01-8ae8-e17ded81130f",
"name": "Select Cookie",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-768,
-2112
],
"parameters": {},
"typeVersion": 2
},
{
"id": "c3a5d0e6-5c3e-4121-942d-5a9dac6eb05b",
"name": "OpenAI Chat Model2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-768,
-1952
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "88b3f9c1-2010-4f70-a702-64ee8dd6f5d9",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1520,
-2240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "55fa25aa-fff0-488c-bc14-34e88fa3ff13",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-208,
-2240
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c994abe0-5df3-422f-a510-186b8ed0c956",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1952,
-1760
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5ebd149a-646e-44d6-b610-241e3d8eb734",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2000,
-1120
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "dbb30d48-1117-453f-8e4e-55047699b608",
"name": "Get Profiles",
"type": "n8n-nodes-base.phantombuster",
"position": [
-400,
-1552
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0722ea5e-d967-48d8-a634-5335bd3a6771",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-208,
-1120
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "2ec5cc52-1eb4-4b37-9f47-3ae7f6aa3cb0",
"connections": {
"Wait": {
"main": [
[
{
"node": "Get Profiles",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Set ENV Variables",
"type": "main",
"index": 0
}
]
]
},
"Set Item": {
"main": [
[
{
"node": "Get Autofollow Agent",
"type": "main",
"index": 0
}
]
]
},
"Get Profiles": {
"main": [
[
{
"node": "Set Item",
"type": "main",
"index": 0
}
]
]
},
"Get Response": {
"main": [
[]
]
},
"Launch Agent": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Select Cookie": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Extract Cookies": {
"main": [
[
{
"node": "Select Cookie",
"type": "main",
"index": 0
}
]
]
},
"Launch AF Agent": {
"main": [
[
{
"node": "Wait for result",
"type": "main",
"index": 0
}
]
]
},
"Wait for result": {
"main": [
[
{
"node": "Get Response",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Get Available Session Cookies",
"type": "main",
"index": 0
}
]
]
},
"Get Hashtag Agent": {
"main": [
[
{
"node": "Launch Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Set ENV Variables": {
"main": [
[
{
"node": "Get Hashtag Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "Select Cookie",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Get Autofollow Agent": {
"main": [
[
{
"node": "Launch AF Agent",
"type": "main",
"index": 0
}
]
]
},
"Get Available Session Cookies": {
"main": [
[
{
"node": "Extract Cookies",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
How this works
Automate your Twitter growth by effortlessly following targeted users to build a vibrant creators' hub, saving hours of manual outreach while ensuring genuine engagement. This workflow suits content creators, influencers, and community managers seeking to expand their network without constant monitoring. It leverages PhantomBuster to launch an auto-follow agent that intelligently selects accounts based on your criteria, followed by AI-driven validation using OpenAI to refine interactions and store results in Microsoft SharePoint for easy tracking.
Use this workflow for scheduled, hands-off Twitter expansion during peak growth phases, such as launching a new series or event, to steadily increase followers over time. Avoid it if your account risks platform restrictions from rapid following, or if you prefer organic, one-on-one networking over automation. Common variations include adjusting the cron trigger for daily versus weekly runs, or integrating additional filters via the AI agent for niche-specific targeting like tech creators only.
About this workflow
Twitter Auto Following - Creators Hub. Uses phantombuster, stickyNote, agent, lmChatOpenAi. Scheduled trigger; 24 nodes.
Source: https://github.com/ScraperNode/awesome-n8n-templates/blob/main/templates/ai-and-llm/6760-automated-twitter-following-with-hashtag-targeting-phantombuster-and-gpt-4o/workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Influencers and social-media teams who want to comment automatically on posts from selected Instagram profiles—scaling engagement while staying within platform limits. Schedule Trigger runs every 2 h.
Social-media teams and influencers who want to grow engagement by automatically posting short, relevant comments on new Instagram posts under rotating hashtags—while staying under platform limits. Sch
B2B marketers, recruiters, and personal-brand builders who want to spark conversations on LinkedIn by automatically posting short, relevant comments on fresh industry content—while staying under daily
Social-media managers, growth hackers, and brands who want to keep their Instagram accounts active by auto-liking posts from specific profiles they track—without scrolling feeds manually. Schedule Tri
Growth hackers, community builders, and marketers who want to keep their Twitter (X) accounts active by liking posts from selected profiles automatically. Schedule Trigger fires hourly. Profile Post E