Templates / Automate tweet filtering and replies on X with GPT and scheduled rotation

Automate tweet filtering and replies on X with GPT and scheduled rotation

Ready for 3.0

by Jorge Martínez ✓ · 1,535 views · created 2025-08-05 · Social Media, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

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

  1. Set search Terms (Edit Fields (Set)): sets 2 fields: searchTerms, role
  2. Rotating Slot Index Generator (Code): runs custom JavaScript code
  3. X (Formerly Twitter): search
  4. Group Tweets into a Single Array (Code): runs custom JavaScript code
  5. GPT Topic Selector (OpenAI): uses OpenAI
  6. Extract Tweets from JSON (Code): runs custom JavaScript code
  7. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  8. Wait: waits 15 minutes
  9. X (Formerly Twitter): like
  10. GPT Tweet Response (OpenAI): uses OpenAI

…plus 2 more steps. See the full node list below.

Services it uses

X (Formerly Twitter)OpenAI

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (8)

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…

Excerpt from Jorge Martínez's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.