Templates / Index Google Drive documents with OpenAI embeddings and Pinecone

Index Google Drive documents with OpenAI embeddings and Pinecone

Ready for 3.0

by Stanislaw Chalupczak ✓ · 5 views · created 2026-09-09 · Document Extraction, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 62 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Embeddings OpenAI, Google Drive, Pinecone Vector Store and Gmail. It also calls api.openai.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).

  1. Settings (Edit Fields (Set)): sets 7 fields: adminEmail, pineconeIndexName, pineconeIndexHost…
  2. Find documents in Drive (Google Drive): work with file folder
  3. Reduce to single run (Code): runs custom JavaScript code
  4. Skip temp files (TEMP_) (If): checks a condition and branches into true / false
  5. Process documents one by one (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Get all entries from table (Data table): get
  7. Is the file already indexed? (Data table): get
  8. Find orphaned entries (Code): runs custom JavaScript code
  9. Check lookup result (Code): runs custom JavaScript code
  10. Process orphans one by one (Loop Over Items (Split in Batches)): loops over the items in batches

…plus 44 more steps. See the full node list below.

Services it uses

Embeddings OpenAIGoogle DrivePinecone Vector StoreGmail

HTTP calls to: api.openai.com

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (17)

From the author

Quick overview This workflow keeps a Pinecone knowledge base in sync with a Google Drive folder by extracting text from supported files, generating OpenAI embeddings, and upserting vectors with metadata, while emailing an admin via Gmail when unsupported…

Excerpt from Stanislaw Chalupczak's description on n8n.io.

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.