Templates / Ingest LinkedIn posts from Google Drive into Pinecone with Gemini and Supabase

Ingest LinkedIn posts from Google Drive into Pinecone with Gemini and Supabase

Unknown

by Akshat ✓ · 2 views · created 2026-09-14 · Market Research, AI RAG

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

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).

Nodes used (19)

Google DriveGroq Chat ModelStructured Output ParserBasic LLM ChainDefault Data LoaderRecursive Character Text SplitterSupabaseAI AgentGoogle Gemini Chat ModelEmbeddings Google GeminiPinecone Vector Store

What it does

Quick overview This workflow watches a Google Drive folder for new LinkedIn post screenshots or PDFs, extracts the text (including OCR), uses Groq and Google Gemini to extract reusable writing patterns, embeds the results with Gemini embeddings, stores them in a Pinecone index, and logs processed files in Supabase to avoid duplicates. How it works 1. Triggers every minute when a new file is created in a specific Google Drive folder. 2. Checks Supabase for an existing ingestion record matching the Google Drive file ID and stops if the file was already processed. 3. Downloads the file from Google Drive and routes processing based on MIME type (PDF vs JPEG image). 4. Extracts text from PDFs directly, or runs Tesseract OCR on images and uses Groq to clean and reconstruct the OCR text. 5. Sends the normalized text to Google Gemini to extract structured writing patterns (hook type, structure, tone, formatting notes, CTA type, and anti-patterns) as JSON. 6. Converts the extracted pattern fields into chunked documents, creates embeddings with Google Gemini, and upserts them into a Pinecone vector index with metadata. 7. Logs the ingestion details (source file ID, file name, and timestamp) back to Supabase so the file is skipped on future runs. Setup 1. Connect credentials for Google Drive, Supabase, Groq, Google Gemini (chat + embeddings), and Pinecone. 2. In Google Drive Trigger, select the folder to watch (for example, a /reference-content folder). 3. Create the Supabase table referenceingestions (and index) as shown in the template notes, and ensure the Supabase nodes point to that table. 4. In Pinecone, create or select the target index (for example, linkedin-reference-content) with dimensions compatible with Gemini embeddings. 5. Ensure the incoming files are PDFs or JPEGs, since the workflow routes only those MIME types.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.