Skip to main content

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

Workflow preview

Workflow preview
100%
Automated Twitter following with hashtag targeting, Phantombuster, and GPT-4o preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.phantombuster, n8n-nodes-base.stickynote, n8n-nodes-base.wait, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.scheduletrigger, n8n-nodes-base.microsoftsharepoint

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by plemeo.

Original n8n.io source

1.1 Workflow description

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

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

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

How to set up

  1. Add credentials: Phantombuster API, SharePoint OAuth2, OpenAI API key.
  2. In SharePoint › “Phantombuster” folder create:
    twitter_session_cookies.txt – one cookie per line.
  3. Adjust schedule or search parameters as needed.
  4. 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get Response

Type / Role
n8n-nodes-base.phantombuster - phantombuster
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Get Autofollow Agent

Type / Role
n8n-nodes-base.phantombuster - phantombuster
Config choices
Version 1

Block 5 - Wait for result

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 6 - Set ENV Variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Launch AF Agent

Type / Role
n8n-nodes-base.phantombuster - phantombuster
Config choices
Version 1

Block 8 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 9 - Get Hashtag Agent

Type / Role
n8n-nodes-base.phantombuster - phantombuster
Config choices
Version 1

Block 10 - Launch Agent

Type / Role
n8n-nodes-base.phantombuster - phantombuster
Config choices
Version 1

Block 11 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 12 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 13 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 14 - Set Item

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Get Available Session Cookies

Type / Role
n8n-nodes-base.microsoftSharePoint - microsoftSharePoint
Config choices
Version 1

Block 16 - Extract Cookies

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 17 - Select Cookie

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 18 - OpenAI Chat Model2

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 19 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Get Profiles

Type / Role
n8n-nodes-base.phantombuster - phantombuster
Config choices
Version 1

Block 24 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automated Twitter following with hashtag targeting, Phantombuster, and GPT-4o
Complexity advanced
Nodes 24
Categories Multimodal AI
Author plemeo
Published 01 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6760/6760.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated Twitter following with hashtag targeting, Phantombuster, and GPT-4o do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Multimodal AI use case.