Templates / Post text and images to X using a simple form trigger

Post text and images to X using a simple form trigger

Ready for 3.0

by Jesse Lane ✓ · 192 views · created 2026-05-21 · Social Media

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-10-19.

What this workflow does

This workflow has 22 nodes and runs when someone submits an n8n form (“Post to X”) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api.x.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“Post to X”) (plus 1 other trigger).

  1. Normalize Form Input (Code): runs custom JavaScript code
  2. Fetch X User Info (HTTP Request): calls api.x.com
  3. Check Input Validity (If): checks a condition and branches into true / false
  4. Check Test Outcome (If): checks a condition and branches into true / false
  5. Check If Image Exists (If): checks a condition and branches into true / false
  6. Set Input Error Status (Edit Fields (Set)): sets 3 fields: success, error_code, error_message
  7. Record Test Error (Edit Fields (Set)): sets 3 fields: success, error_code, error_message
  8. Record Test Success (Edit Fields (Set)): sets 3 fields: success, username, name
  9. Upload Image to X (HTTP Request): calls api.x.com (POST)
  10. Post New Tweet (HTTP Request): calls api.x.com (POST)

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

HTTP calls to: api.x.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 (6)

From the author

Quick overview This workflow uses an n8n Form trigger and the X (Twitter) API to publish a text-only post or a post with a single uploaded image, then returns a success/error payload including the resulting tweet URL. How it works 1. Receives a form…

Excerpt from Jesse Lane'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.