Scheduled auto-replies to targeted tweets using X (Twitter) API
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs on a schedule (every 30 minutes). It uses only n8n's built-in nodes. It also calls api.twitter.com over HTTP.
How it runs
Trigger: On a schedule (every 30 minutes).
- Search Tweets (HTTP) (HTTP Request): calls api.twitter.com
- Get Latest Tweet Per Account (Code): runs custom JavaScript code
- Is Success? (If): checks a condition and branches into true / false
- Prepare Reply (Code): runs custom JavaScript code
- Is Rate Limit? (If): checks a condition and branches into true / false
- Send Reply (HTTP) (HTTP Request): calls api.twitter.com (POST)
- Rate Limit Error (Edit Fields (Set)): sets 4 fields: status, reason, error_message…
- Is No Tweets? (If): checks a condition and branches into true / false
- Is Duplicate? (If): checks a condition and branches into true / false
- No Tweet Found (Edit Fields (Set)): sets 3 fields: status, reason, checked_at
…plus 4 more steps. See the full node list below.
HTTP calls to: api.twitter.com
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.
Nodes used (5)
- Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
What it does This workflow automates your X (Twitter) engagement by acting as an auto-responder. It runs on a schedule, searches for new tweets based on a specific query (like a hashtag, keyword, or mention), and automatically sends a reply. How it works 1.…