Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / RAG & Knowledge Bases

RAG & Knowledge Bases

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

When something happens in a connected app, it answers questions from your own knowledge base with Google Gemini and Groq using Groq, Pinecone, Google Drive, Supabase.

What it does

## Process Implementation Guide:- A fully autonomous n8n workflow that watches a Google Drive folder for new LinkedIn post screenshots/PDFs, extracts and cleans the text, uses AI to pull out reusable writing patterns (hook, structure, tone, formatting, CTA, anti-patterns), embeds them, and stores them in a Pinecone vector store for later reference — with a Supabase log to prevent re-processing the same file twice. ## Setup (credentials needed) 1. Google Drive OAuth — watches the /reference-content folder for new files. 2. Supabase — used for the reference_ingestions dedupe/log table. 3. Groq API — used by the Groq Chat Model for OCR cleanup. 4. Google Gemini (PaLM) API — used for pattern-extraction chat model and embeddings. 5. Pinecone API — vector store index 6. Activate the workflow once credentials are in place.

The steps

  1. Google Drive Trigger
  2. Groq Chat Model
  3. Merge
  4. Structured Output Parser
  5. Clean Data
  6. Default Data Loader
  7. Recursive Character Text Splitter
  8. Check For Duplicates
  9. Remove If File Exists
  10. Download File
  11. Check File Type
  12. Extract Text
  13. Extract Images
  14. Normalize PDF Text

21 steps in total.

Similar automations