New: FlowLume Pro · version snapshots, handoff docs, full backups and more. One payment, yours for life. See Pro

Chat with PDF docs using AI (quoting sources): n8n template

Chat with PDF docs using AI (quoting sources) is a free n8n workflow template by David Roberts with 16 nodes. It starts with the Manual Trigger node ("When clicking "Execute Workflow"") and uses Pinecone Vector Store, Chat Trigger, OpenAI Chat Model, Google Drive and 2 more. You can paste it into your n8n editor in one click with FlowLume.

What this workflow does, step by step

  1. When clicking "Execute Workflow" (Manual Trigger node)
  2. When chat message received (Chat Trigger node)
  3. Set file URL in Google Drive (Edit Fields (Set) node)
  4. Set max chunks to send to model (Edit Fields (Set) node)
  5. Download file (Google Drive node)
  6. Get top chunks matching query (Pinecone Vector Store node)
  7. Pinecone Vector Store
  8. Embeddings OpenAI2 (Embeddings OpenAI node)
  9. Prepare chunks (Code node)
  10. Embeddings OpenAI
  11. Default Data Loader
  12. Answer the query based on chunks (Information Extractor node)
  13. Recursive Character Text Splitter
  14. OpenAI Chat Model1 (OpenAI Chat Model node)

The full workflow has 16 nodes; this list shows the main path from the trigger.

What you need before you paste it

Connect these accounts in n8n

  • Google Drive (OAuth2) · used by Download file
  • OpenAI · used by OpenAI Chat Model1, Embeddings OpenAI2, Embeddings OpenAI
  • Pinecone · used by Pinecone Vector Store, Get top chunks matching query

Checked with FlowLume's setup checklist on 2026-11-25. In the extension, FlowLume Pro shows this checklist for any template before you paste.

Template facts

Author
David Roberts (verified n8n creator)
Nodes
16
Apps
Pinecone Vector Store, Chat Trigger, OpenAI Chat Model, Google Drive, Embeddings OpenAI, Information Extractor
Uses AI
Yes (n8n AI nodes)
Categories
Document Extraction, AI RAG
Views on n8n.io
95,385
Published
5 March 2024
Price
Free

How to paste it with FlowLume

  1. Install FlowLume. Add the free FlowLume extension to Google Chrome from the Chrome Web Store.
  2. Open n8n. Open a new or existing workflow in your n8n editor (n8n Cloud or self-hosted).
  3. Find the template. Click the FlowLume button at the bottom right and search for "Chat with PDF docs using AI (quoting sources)".
  4. Paste it. Click Paste to n8n. All nodes and connections land on your canvas.
  5. Connect your accounts. Add your own credentials for Google Drive (OAuth2), OpenAI, Pinecone, then run the workflow.
Add FlowLume to Chrome, free

Similar n8n templates

Template "Chat with PDF docs using AI (quoting sources)" by David Roberts, published on n8n.io. The template and its description belong to its author; this page only summarises its structure. FlowLume is an independent tool by DrakenLume and is not affiliated with n8n GmbH. n8n is a trademark of n8n GmbH.