LinkedIn and X posts with Gemini
Writes LinkedIn and X posts from one title, then publishes both. This n8n template turns a post title into two posts, one for LinkedIn and one for X, and publishes both. A form protected by basic authentication collects the title. A Google Gemini chat model, run by an AI agent with a structured output parser, writes the post texts, hashtags and a LinkedIn call to action, and checks the X character limit. It is for social media managers, content creators, digital marketers and businesses. You import it into your own n8n instance and connect Gemini, X and LinkedIn developer accounts.
Steps
- Trigger: Trigger: form submissionn8n Form
A user submits a post title through a form protected by basic authentication. - AI content generationGoogle Gemini
Gemini writes the LinkedIn and X texts, hashtags and a LinkedIn call to action. - Parsing AI output
The result is split per network. - Publishing to social mediaX
Posts to X and to LinkedIn. - Merging post results
Merges the two publishing responses. - Output: Confirmation stepn8n Form
Shows a final confirmation form.
Limits
- The page does not name a Gemini model version.
What it does well
- Writes both posts from a single title.
- Checks the X character limit before posting.
- The input form is protected by basic authentication.
Before you import
Accounts to connect: Google Gemini AI; X developer account (OAuth2); LinkedIn developer account (OAuth2); a form submission service.
Similar templates
YouTube video to blog post, by email
Also for content and social, 6 steps.
LinkedIn post and image with Gemini
Also for content and social, 5 steps.
Daily LinkedIn posts with OpenAI
Also for content and social, 5 steps.
Google Gemini and n8n Form: 5 templates compared
Same two apps, different steps.