Use this robust n8n workflow to automate social media publishing across Instagram, X/Twitter, LinkedIn, Facebook, and YouTube, sourcing content from Airtable and media from Google Drive via Postiz.
Download this n8n workflow template and start using it instantly.
This comprehensive n8n workflow template solves the significant challenge of reliable, multi-platform social media distribution. Instead of manually uploading media and copying captions, this n8n automation creates a seamless pipeline. It utilizes Airtable as the single source of truth for both media file IDs (stored in Google Drive) and platform-specific content (captions, titles). The automation first securely downloads the media files using the Google Drive n8n node and uploads them to the Postiz publishing platform, ensuring media accessibility. Subsequently, the content workflow fetches the structured text, uses dedicated Code n8n node blocks to clean the JSON data (removing line breaks and quotes that cause API errors), and routes the content through a Postiz API n8n node to publish simultaneously to up to five platforms, including multiple X/Twitter accounts. This sophisticated n8n workflow significantly boosts efficiency and posting reliability.
The entire process is organized around three primary n8n trigger points (Webhooks) that execute distinct parts of the overall n8n workflow.
๐ฏ Upload webhook, passing the required Airtable Record ID. The ๐ Content Database (Media) Airtable n8n node retrieves the Google Drive file IDs and existing Postiz paths.๐ฅ Download Video and ๐ฅ Download Image) download the binary media data.multipart-form-data.๐พ Save Path Airtable n8n node, making them instantly available for the posting phase.Post webhook initiates the main content publishing branch. The ๐ Content Database (Posts) Airtable n8n node retrieves all platform captions (instagrampost, linkedinpost, twitter single, etc.).๐ Content Validator & Cleaner1 Code n8n node performs critical data manipulationโremoving problematic JSON characters like \n, escaping quotes, and enforcing character limits to ensure API compatibility.๐ Content Availability Check1), the n8n workflow fetches social integration IDs from Postiz and uses the ๐ Platform Router Switch n8n node to route the flow to platform-specific cleaning and publishing branches.๐ Fixed Results Processor Code n8n node collects all API responses and summarizes the success/failure status for tracking.Video webhook.๐งน Instagram Video Cleaner, ๐ Video Platform Router) prepares content and publishes the video media paths (postiz video) to Instagram Reels, Facebook Video, and YouTube via dedicated HTTP Request n8n node steps.To deploy this powerful n8n workflow, follow these steps:
appTFomwpoQ8GVsSo) and Table (tblRnaXqxrvcQhqBw).cMdQMNaewaEQ6Mi3) with read access to the folder containing your media files.mEU0ecS6LOVkcowP). You will need to replace https://postiz.yourdomain.com with your actual Postiz instance URL in all HTTP Request n8n node settings and ensure the authentication header (likely a Bearer token or API key) is configured.๐ Platform Router Switch n8n node uses hardcoded Postiz integration IDs (e.g., cmcotolny0001pnal2i86mkrh). You must update these values to match the unique integration IDs provided by your Postiz setup.๐ฏ Upload, Post, Video) are active and note their URLs for external calling systems.This complex n8n workflow utilizes numerous specialized n8n node types for data handling, transformation, and API communication:
Airtable n8n node (๐ Content Database (Media), (Posts), (Video)):
Function: Serves as the central content management system. It retrieves file IDs (for Google Drive) and text captions/titles (for social posts).
Key Configuration: Uses the Get operation by record ID, referencing the record ID dynamically from the incoming webhook payload.
Google Drive n8n node (๐ฅ Download Video, ๐ฅ Download Image):
Function: Downloads the binary media content from Google Drive using file IDs retrieved from Airtable.
Key Configuration: Operation set to Download. Output is binary data, required for the subsequent Postiz multipart-form-data upload.
HTTP Request n8n node (Multiple Instances):
Function: Core communication with the Postiz API for media uploads (/upload) and content publishing (/posts).
Key Configuration: Uses HTTP Header Auth. Publishing nodes are configured to send a complex JSON body containing the Postiz integration ID, cleaned content, and the required postiz image or postiz video path saved in Airtable.
Code n8n node (e.g., ๐ Content Validator & Cleaner1, ๐งน Instagram Content Cleaner):
Function: Crucial for robust posting. These n8n node instances use JavaScript to perform comprehensive content cleaningโremoving carriage returns (\r), line feeds (\n), and tabs (\t)โto prevent the Postiz API from rejecting malformed JSON payloads. Also includes character limit checks.
Switch n8n node (๐ Platform Router, ๐ Video Platform Router):
Function: Controls the flow path based on the integration IDs fetched from Postiz. This ensures that the correct content (e.g., Twitter captions vs. LinkedIn captions) is sent to the corresponding publishing n8n node.
Key Configuration: Checks if the Postiz integration ID ({{ $json.id }} or {{ $json.identifier }}) matches specific hardcoded values for each platform (Instagram, Facebook, X/Twitter, etc.).
Use this comprehensive n8n workflow to scrape product prices from major e-commerce platforms (Amazon, eBay, Target, etc.), find the lowest price, generate promotional copy using Claude AI, and immediately send an alert via Telegram. Leverage robust n8n templates for retail monitoring.

Build an expert multi-platform AI Sales Agent using n8n workflow automation. Integrates RAG (Postgres PGVector), CRM, Google Calendar, and Stripe for multi-channel sales support.

Deploy a powerful n8n workflow for a personalized AI assistant using Telegram and Google Gemini. Manage emails, tasks (Todoist), calendars, and knowledge bases using this complex n8n template.

Use this powerful n8n workflow to automate publishing videos and images across 9+ social media platforms (Instagram, TikTok, YouTube, X, etc.) using Airtable data and GPT-4 for title optimization.

Use this comprehensive n8n workflow to automatically discover new, relevant content sources using SerpAPI, DuckDuckGo, GitHub, Reddit, and Mistral AI analysis. Deploy this advanced n8n template for research automation.

I believe AI is a force multiplier โ but only if you know how to use it. I create high-quality, easy-to-follow content for people like me: driven, curious, and ready to build.







































