Automate Tweet Filtering and Replies on X with GPT and Scheduled Rotation — n8n Workflow

Medium complexity Trigger14 nodes📣 Marketingby Jorge Martínez

Overview

Automate tweet engagement on X (formerly Twitter)

Description

Automate professional engagement on X (formerly Twitter) by searching for, filtering, liking, and replying to tweets that match your key topics. This workflow enables you to engage consistently and efficiently with relevant conversations, using your defined professional role and the power of GPT for filtering and replies. Save time and maintain high-quality interactions, while staying focused on your business or personal brand inter

Nodes used

X (Formerly Twitter)CodeOpenAI

Workflow Preview

Configure Your Variables
The flow currently runs every 3 days and considers 10 t
If you want to change the schedule (for example, to run
X (Twitter) Search Terms Node
* *Make sure to configure your X (Twitter) API credenti
* Uses the `index` to select a search term from your `s
GPT Topic Selector
* Requires your OpenAI API key to be configured.
* Uses the defined role (from the `Set search Terms` no
* Receives a JSON array of tweets, each
Loop: Like, Generate, and Reply to Tweets
Make sure to configure your X (Twitter) API credentials
Requires your OpenAI API key to be configured.
How It Works
*
Professional Tweet Engagement Automation
Description
Automate the process of discovering, filtering, and eng
W
When clicking ‘Execute w…
W
Wait
W
Wait1
L
Loop Over Items
S
Schedule Trigger
S
Set search Terms
Rotating Slot Index Gene…
X (Formerly Twitter) Sea…
GPT Topic Selector
Extract Tweets from JSON
Group Tweets into a Sing…
GPT Tweet Response
X (Formerly Twitter) Lik…
X (Formerly Twitter) Pos…
14 nodes14 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a trigger trigger.

  2. 2

    Process

    Data flows through 14 nodes, connecting code, manualtrigger, openai.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (14)

X

X (Formerly Twitter)

twitter

#1
CO

Code

code

#2
OP

OpenAI

n8n-nodes-langchain.openAi

#3

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded automate-tweet-filtering-and-replies-on-x-with-gpt-and-scheduled-rotation file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Automate Tweet Filtering and Replies on X with GPT and Scheduled Rotation", "nodes": [...], ...}

Integrations

codemanualtriggeropenaischeduletriggersetsplitinbatchestwitterwait

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes14
Complexitymedium
Triggertrigger
CategoryMarketing

Created by

Jorge Martínez

Jorge Martínez

@jorgemartinezjam

Tags

codemanualtriggeropenaischeduletriggersetsplitinbatchestwitterwait

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →