Create scheduled LinkedIn thought leadership posts with Google Gemini

Go to Workflow
0 views
Built by shivam shivam
Created on July 22, 2026

Description

Quick overview
This workflow runs every 6 hours to generate a LinkedIn post idea, draft the full post and an accompanying image description with Google Gemini, create relevant hashtags, and then publishes the post content to a LinkedIn profile.

How it works
Runs every 6 hours on a schedule.
Uses Google Gemini to generate a structured set of LinkedIn content topics with a title, rationale, and hook.
Uses Google Gemini to turn the first topic into a complete LinkedIn post draft and a suitable image description.
Uses Google Gemini to generate a structured list of SEO-friendly hashtags based on the post title and content.
Merges the generated post content and metadata and publishes the post text to LinkedIn (including a timestamp-based ID).

Setup
Add a Google Gemini (PaLM) API credential for the Google Gemini chat model nodes.
Add a LinkedIn OAuth2 credential and confirm the target LinkedIn profile/person ID used for posting.
Review and adjust the schedule interval (currently every 6 hours) and the prompts/schemas to match your brand and desired output format.

Requirements
linkedin company page

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
LinkedIn
n8n-nodes-base.linkedIn
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured