Templates / Answer document questions with OpenAI, Pinecone, Cohere, Gemini and Google Drive

Answer document questions with OpenAI, Pinecone, Cohere, Gemini and Google Drive

Ready for 3.0

by Incrementors ✓ · 0 views · created 2026-08-19 · 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 24 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Google Gemini Chat Model, Pinecone Vector Store and Embeddings OpenAI and 3 more.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Capture Request (Edit Fields (Set)): sets 4 fields: question, sessionId, cacheKey…
  2. Valid Question? (If): checks a condition and branches into true / false
  3. Look Up Cached Answer (Data table): get
  4. Respond Bad Request (Respond to Webhook): sends the response back to the webhook caller
  5. Fresh Cache Hit? (If): checks a condition and branches into true / false
  6. Respond From Cache (Respond to Webhook): sends the response back to the webhook caller
  7. Document Q&A Agent (AI Agent): runs an AI agent, with model: Answer Model, Fallback Answer Model; 1 tool (Document Knowledge Base); memory: Conversation Memory; output parser: Answer Format
  8. Grounded Answer? (If): checks a condition and branches into true / false
  9. Collect Unique Sources (Code): runs custom JavaScript code
  10. Respond Not Found (Respond to Webhook): sends the response back to the webhook caller

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

Services it uses

OpenAI Chat ModelGoogle Gemini Chat ModelPinecone Vector StoreEmbeddings OpenAIReranker CohereGoogle DriveGoogle Sheets

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 (17)

From the author

Quick overview This workflow exposes a webhook-powered document Q&A chatbot that searches a Pinecone vector database with OpenAI embeddings, reranks results with Cohere, optionally falls back to Google Gemini, and returns an answer with quoted sources plus…

Excerpt from Incrementors'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.