Create LinkedIn, Instagram and X drafts with Gemini and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when someone submits an n8n form (“Turn content into social posts”). Along the way it connects Google Gemini Chat Model and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“Turn content into social posts”).
- Brand settings (Edit Fields (Set)): sets 6 fields: brand_name, brand_description, audience…
- Has a URL? (If): checks a condition and branches into true / false
- Fetch the page (HTTP Request): calls an HTTP API
- Use the text only (Edit Fields (Set)): sets 3 fields: source_text, source_url, notes
- Extract page text (HTML): parses or builds HTML
- Got text to use? (If): checks a condition and branches into true / false
- Use the page text (Edit Fields (Set)): sets 3 fields: source_text, source_url, notes
- Write the posts (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini model; output parser: Parse AI output
- Prepare no-text row (Edit Fields (Set)): sets 7 fields: Date, Source, LinkedIn…
- Prepare row (Edit Fields (Set)): sets 7 fields: Date, Source, LinkedIn…
…plus 1 more step. See the full node list below.
Services it uses
Other Google Gemini + Google Sheets templates (819)
Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - HTML
n8n-nodes-base.html - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow collects a source URL or text via an n8n Form, uses Google Gemini to generate LinkedIn, Instagram, and X draft posts plus an image idea in your brand voice, and appends the drafts to a Google Sheets spreadsheet. How it works 1.…