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.

n8nRead on 2026-11-166 steps

Steps

  1. Trigger: Trigger: form submissionn8n Form
    A user submits a post title through a form protected by basic authentication.
  2. AI content generationGoogle Gemini
    Gemini writes the LinkedIn and X texts, hashtags and a LinkedIn call to action.
  3. Parsing AI output
    The result is split per network.
  4. Publishing to social mediaX
    Posts to X and to LinkedIn.
  5. Merging post results
    Merges the two publishing responses.
  6. 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