Automate your marketing with this powerful n8n workflow. Use Google Gemini and Kie.ai to generate optimized content and publish it instantly via Late API across Facebook, Instagram, LinkedIn, and TikTok.
Download this n8n workflow template and start using it instantly.
Marketing professionals and teams needing scalable content production.
Small businesses looking for advanced social media automation solutions using n8n.
Agencies leveraging AI models (Gemini, Kie.ai) for multi-channel content delivery.
Users seeking comprehensive n8n templates for complex publishing logic.
This sophisticated n8n workflow solves the challenge of creating platform-optimized content and media efficiently. Instead of manually drafting content for four separate channels, this solution leverages Google Gemini 2.5 to craft tailored captions for Facebook, Instagram, LinkedIn, and TikTok from a single prompt. Simultaneously, the Kie.ai image generation service creates a corresponding visual asset. The n8n workflow handles the technical complexities of media uploading (including handling large files > 4MB) via the Late API before conditionally publishing the posts to the enabled social media accounts. This entire n8n workflow significantly reduces the time spent on content creation and distribution, making it an essential tool for high-volume social media management.
Default Settings n8n node defines the business type, content topic, and enables/disables specific platforms (Facebook, Instagram, LinkedIn, TikTok).Gemini - Generate Content n8n node uses the input variables to prompt Google Gemini 2.5 Flash, generating optimized text and relevant hashtags for all four target platforms in a structured JSON output.Wait 30s period to allow processing, the next n8n node retrieves the CDN URL of the completed image.HTTP Request for content-length headers. An IF n8n node determines the upload path: files ≤ 4MB are uploaded directly to the Late API; larger files follow a multipart flow, involving initialization with Late API, binary download, and a final PUT request to a dedicated upload URL.IF n8n nodes) to ensure posts are only created for platforms that were explicitly enabled.Late Create Post n8n node sends the content, hashtags, and Late API media URL for immediate publication on the chosen social media account.Merge n8n node collects all successful post responses, and the Success Notification & Logging code prepares a structured message detailing the results.To deploy this powerful n8n templates solution, follow these steps:
Gemini - Generate Content n8n node for text generation.LATE n8n nodes for media handling and posting.Default Settings n8n node with your specific BUSINESSTYPE and CONTENTACCOUNTID values for the platforms you have enabled (Facebook, Instagram, LinkedIn, TikTok). These IDs are obtained from your Late API dashboard. Manual Trigger: The starting n8n trigger point for the execution of this n8n workflow.
Default Settings (Set): Defines workflow constants, including the content topic, business type, and the booleans used by the Check Enabled Platforms n8n node to control flow.
Gemini - Generate Content (HTTP Request): A key n8n node that calls the Google Gemini API (gemini-2.5-flash) to generate platform-specific, optimized captions and relevant hashtags.
Parse & Filter Platforms (Code): Custom JavaScript n8n node that safely parses the complex JSON output from Gemini and filters the data to only include enabled social channels.
Kie.ai - Generate Image (HTTP Request): Sends a prompt derived from the content topic to Kie.ai to initiate the generation of a square image.
IF – „Is Large?” (If): A critical flow control n8n node that branches the media upload based on the file's Content-Length header (4MB threshold) to manage file size limits imposed by Late API.
LATE – Init Upload files > 4MB (HTTP Request): Initiates the multipart upload sequence for large files, obtaining a necessary signed storage URL.
Late Create Post (HTTP Request): Multiple instances of this core n8n node handle the final publication step, using the Late API to publish the combined content and the media URL immediately to the selected social platform.
Merge n8n node and formats them into a structured success message, ready for downstream notifications.Use this powerful n8n workflow to fully automate the creation of long-form, SEO-optimized blog posts, generate featured images via DALL-E, and instantly publish them to WordPress. Discover the best n8n templates for AI content.

Automate SEO blog creation using Perplexity and OpenAI. This powerful n8n workflow generates high-quality content, handles deep research, and publishes it directly to GitHub.

Use this powerful n8n workflow to automate content creation. It fetches news (Mediastack), generates SEO titles, slugs, and 1,000-word HTML content via OpenRouter AI, and publishes automatically to Blogger.

Generate and rank 10 variations of high-impact advocacy content automatically using this powerful n8n workflow. Integrates Claude AI via OpenRouter for optimized messaging.

Use this powerful n8n workflow to automatically generate high-quality SEO blog content using Google Gemini, format it for Elementor, and schedule posts directly to multiple client WordPress sites.

Automate daily content creation and scheduling with this powerful n8n workflow. It uses Google Sheets to manage topics, OpenAI (GPT-4) to generate platform-optimized posts, and Buffer for seamless social media scheduling. Get started with n8n templates today!

Founder @RoboMarketing I help businesses automate communication with chatbots and AI. Focused on WhatsApp, Messenger, Instagram, and website automation. Writing about practical automation strategies, AI tools, and conversational design. Passionate about building smart systems that save time and increase efficiency.







































