Use this powerful n8n workflow to streamline posting content (text, image, video) to X (Twitter) using a simple web form. This n8n template handles complex media uploads automatically.
Download this n8n workflow template and start using it instantly.
Managing content posting to social media often requires logging into dedicated platforms. This n8n workflow provides a cleaner, API-driven solution by generating a public submission form. This form acts as the initial n8n trigger, allowing users to submit both textual content and optional media files (images, videos). The key value of this n8n template lies in its ability to conditionally handle the submission: if media is attached, the n8n workflow executes a complex multi-step upload and post process; if no media is present, it posts the text directly. This ensures flexibility and reliability for anyone needing a robust content pipeline built on n8n.
This automation starts with the 'On form submission' n8n trigger node.
mime_type was detected. This determines the flow of the n8n workflow.To deploy this powerful n8n template, follow these steps:
On form submission (n8n trigger): The starting point of this n8n workflow. It generates a public URL form configured to accept 'Post Content' (required textarea) and optional 'Media' uploads (supporting common image and video types).
Extract Media Details (Code n8n node): Essential for handling binary data. It safely extracts the text content and analyzes the uploaded file's metadata, classifying it as IMAGE, VIDEO, or AUDIO, and passing the binary data forward.
If Image Exists (If n8n node): This control flow n8n node directs the automation, checking if the mime_type property is present in the data item, ensuring the media upload steps are only executed when necessary.
Upload Media (X) (HTTP Request n8n node): A critical step for media posting. It uses the X Media Upload API (oauth.twitter.com/1.1/media/upload.json) with OAuth 1.0a credentials to upload the binary media file, preparing it for the final post.
X / X1 (Twitter n8n node): These nodes handle the final posting action. The 'X' node uses the media ID obtained from the upload step to attach the file, while the 'X1' node handles text-only posts. Both utilize OAuth 2.0 credentials for secure API access.
End Form (Form n8n node): This node concludes the n8n workflow for the user, displaying a confirmation message after the content has been successfully posted to X.
Automate your n8n form fields. Use this n8n workflow to dynamically populate dropdown menu options in your n8n form trigger using data sourced from Google Sheets and the n8n API.

This powerful n8n workflow template automates booking confirmations, checks Google Calendar availability, creates Zoom meetings, and notifies teams via Gmail and Slack, ensuring no double bookings.

Comprehensive n8n workflow exposing 24 Wekan operations (boards, cards, comments, checklists, lists) as an AI Multi-Capability Provider (MCP) server. Use this n8n template for AI project management.

Use this powerful n8n workflow to automatically download Instagram videos submitted via a web form, upload them to Google Drive, and log all success and failure attempts in Google Sheets. Start automating media processing with our n8n templates.

Use this powerful n8n workflow to automatically scrape consumer discussions from forums like Quora via Bright Data, summarize feedback using OpenAI, and save actionable insights to Google Sheets.

I'm a full stack developer passionate about building intelligent, scalable solutions that automate workflows and enhance productivity. I love working at the intersection of AI, APIs, and automation—using tools like n8n to streamline processes, integrate data, and unlock smarter decision-making. Whether it's crafting custom backend services or designing intuitive frontends, I’m always exploring ways to build more with less manual effort.







































