Generate and Publish AI Content to LinkedIn and X (Twitter) with n8n Overview This n8n workflow automates the generation and publishing of AI-powered social media content across LinkedIn and X (formerly Twitter). By leveraging AI, this workflow helps social media managers, marketers, and content creators streamline their posting process. Who is this for? - Social media managers - Content creators - Digital marketers - Businesses looking to automate content generation F
Social media content generator and publisher | X, Linkedin is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects LinkedIn, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Generate and Publish AI Content to LinkedIn and X (Twitter) with n8n Overview This n8n workflow automates the generation and publishing of AI-powered social media content across LinkedIn and X (formerly Twitter). By leveraging AI, this workflow helps social media managers, marketers, and content creators streamline their posting process. Who is this for? - Social media managers - Content creators - Digital marketers - Businesses looking to automate content generation Features - AI-powered content creation tailored for LinkedIn and X (Twitter) - Automated publishing to both platforms - Structured output parsing to ensure consistency - OAuth2 authentication for secure posting - Merge and confirmation steps to track successful postings Setup Instructions Prerequisites Before using this workflow, ensure you have: - An n8n instance set up - API credentials for: - Google Gemini AI (for content generation) - X Developer Account with OAuth2 authentication - LinkedIn Developer Account with OAuth2 authentication - A form submission service integrated with n8n Workflow Breakdown 1. Trigger: Form Submission - A user submits a form containing the post title. - The form is secured with Basic Authentication. - The submitted title is passed to the AI Agent. 2. AI Content Generation - The Google Gemini Chat Model processes the title and generates: - LinkedIn post content - Twitter (X) post content - Hashtags - Call-to-action (LinkedIn) - Character limit check (Twitter) 3. Parsing AI Output - A structured output parser converts the AI-generated content into a JSON format. - Ensures correct formatting for LinkedIn and Twitter (X). 4. Publishing to Social Media X (Twitter) Posting - Extracts the Twitter post from the AI output. - Publishes it via an OAuth2-authenticated X (Twitter) account. LinkedIn Posting - Extracts the LinkedIn post from the AI output. - Publishes it via an OAuth2-authenticated LinkedIn account. 5. Merging Post Results - Merges the response data from both LinkedIn and Twitter after publishing. 6. Confirmation Step - Displays a final confirmation form once the posts are successfully published. Benefits - Save time by automating content creation and publishing. - Ensure consistency across platforms with structured AI-generated posts. - Secure authentication using OAuth2 for LinkedIn and Twitter. - Increase engagement with AI-optimized hashtags and CTAs. This workflow enables seamless social media automation, helping professionals post engaging AI-powered content effortlessly. 🚀 `
Download the workflow JSON file after purchase.
Open n8n → click the menu → Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
Discover business leads with Gemini, Brave Search and web scraping
Analyze Landing Page with OpenAI and Get Optimization Tips
Prevent duplicate webhook executions with AARI idempotency gate
Generate trend-based marketing videos with Seedance AI, Perplexity, and GPT
Build a knowledge base chatbot with Jotform, RAG Supabase, Together AI & Gemini
Gmail smart auto-responder with GPT-4o and Google Drive context memory
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.