Post LinkedIn content from a Supabase knowledge base using Google Gemini
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Content Creation Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Community nodes
These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
@tavily/n8n-nodes-tavily(Search Tavily Knowledge Base)
Nodes used (18)
- Edit Fields (Set)
n8n-nodes-base.set - Supabase Vector Store
@n8n/n8n-nodes-langchain.vectorStoreSupabase - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - Supabase
n8n-nodes-base.supabase - Limit
n8n-nodes-base.limit - LinkedIn
n8n-nodes-base.linkedIn - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Tavily Tool
@tavily/n8n-nodes-tavily.tavilyTool - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
What it does
Quick overview Automates your LinkedIn content creation pipeline. It syncs Google Drive files directly into a Supabase knowledge base, uses a Google Gemini and Tavily AI Agent to perform real-time web research, and automatically generates, designs, and publishes daily structured posts with custom AI images. How it works 1. New files added to a watched Google Drive folder are automatically downloaded, text-extracted, chunked, and embedded with Google Gemini before being stored in a Supabase vector table. 2. When an existing file is updated, its previous Supabase rows are deleted first, then the refreshed content is re-downloaded, re-chunked, and re-embedded to keep the knowledge base current. 3. Every morning at 8am, a schedule trigger kicks off an AI Content Creation Agent built with Google Gemini. 4. The agent queries the Supabase knowledge base via a vector-store tool to pull a relevant company concept, service, or methodology. 5. It then searches the web with Tavily to find recent data, news, or trends that support the chosen idea, and generates structured post content (title, body, hashtags) plus an image prompt using a structured output parser. 6. Google Gemini generates a promotional image from that prompt, and the finished post—with image—is published automatically to a LinkedIn organization page. Setup 1. Connect your Google Drive credentials and point the "file created" and "file updated" triggers at the folder that holds your knowledge base source documents. 2. Add Supabase credentials, create a vector table (e.g. "documents") with a matchdocuments function, and confirm the fileid metadata field used to identify and delete stale rows on updates. 3. Add Google Gemini credentials for the chat model, embeddings, and image generation nodes, and Tavily credentials for the web search tool. 4. Connect your LinkedIn credentials, set the target organization (or personal profile) to publish to, then review the agent's prompt, output schema, and the 8am schedule before activating the workflow. Requirements - Google Drive account with a folder containing the source knowledge base documents - Supabase project with pgvector enabled and a "documents" table configured for the Supabase vector store node - Google Gemini (PaLM) API credentials for chat, embeddings, and image generation - Tavily API account for web search - LinkedIn account (organization page or personal profile) with publishing permissions Customization - Adjust the schedule trigger to post at a different time or frequency - Edit the AI agent's system prompt and output schema to match your brand voice, language, or post structure - Change the chunk size/overlap in the text splitter nodes to fit your document types - Swap the image style prompt or color palette to match your visual identity - Update the Supabase table name or metadata schema if your vector store setup differs Additional info Uses two parallel Google Drive triggers (created / updated) so the vector store stays in sync automatically without manual re-indexing.