Automate tweet filtering and replies on X with GPT and scheduled rotation
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on a schedule (every 3 days at 09:00) (plus 1 other trigger). Along the way it connects X (Formerly Twitter) and OpenAI.
How it runs
Trigger: On a schedule (every 3 days at 09:00) (plus 1 other trigger).
- Set search Terms (Edit Fields (Set)): sets 2 fields: searchTerms, role
- Rotating Slot Index Generator (Code): runs custom JavaScript code
- X (Formerly Twitter): search
- Group Tweets into a Single Array (Code): runs custom JavaScript code
- GPT Topic Selector (OpenAI): uses OpenAI
- Extract Tweets from JSON (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Wait: waits 15 minutes
- X (Formerly Twitter): like
- GPT Tweet Response (OpenAI): uses OpenAI
…plus 2 more steps. See the full node list below.
Services it uses
Other X (Twitter) + OpenAI templates (67)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Wait
n8n-nodes-base.wait - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - X (Formerly Twitter)
n8n-nodes-base.twitter - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
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…