Schedule X posts, threads, images and polls with webhooks
Ready for 3.0What this workflow does
This workflow has 54 nodes and runs when an HTTP GET request hits its webhook URL. It uses only n8n's built-in nodes.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Route by Content Type (Switch): routes items into branches
- Prepare Post Content (Code): runs custom JavaScript code
- Prepare Thread Content (Code): runs custom JavaScript code
- Delete Tweet from X (HTTP Request): calls an HTTP API
- Fetch User Info from X (HTTP Request): calls an HTTP API
- Handle Unknown Content Type (Edit Fields (Set)): sets or maps fields
- If: checks a condition and branches into true / false
- Loop Over Thread Items (Loop Over Items (Split in Batches)): loops over the items in batches
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
…plus 43 more steps. See the full node list below.
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 (9)
- Webhook
n8n-nodes-base.webhook - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Respond to Webhook
n8n-nodes-base.respondToWebhook - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow receives webhook requests from a content calendar and uses the X API v2 to publish text posts, threads, image/video posts, and polls, as well as delete existing posts and run a credential connection test, returning a consistent…