Templates / Answer PDF questions with cited answers using Google Gemini, Gmail and Sheets

Answer PDF questions with cited answers using Google Gemini, Gmail and Sheets

Ready for 3.0

by Oka Hironobu ✓ · 16 views · created 2026-08-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-10-19.

What this workflow does

This AI workflow has 8 nodes and runs when someone submits an n8n form (“Ask your document”). Along the way it connects Google Gemini, Google Gemini Chat Model, Gmail and Google Sheets.

How it runs

Trigger: When someone submits an n8n form (“Ask your document”).

  1. Read Document with Gemini (Google Gemini): work with document
  2. Shape Answer (Code): runs custom JavaScript code
  3. Email Read Failure (Gmail): uses Gmail
  4. Suggest Follow-up Questions (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
  5. Log Q&A (Google Sheets): append
  6. Email the Answer (Gmail): uses Gmail

Services it uses

Google GeminiGoogle Gemini Chat ModelGmailGoogle 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 (7)

From the author

Quick Overview This workflow collects a question and PDF via an n8n form, uses Google Gemini to answer using only the document with citations, suggests follow-up questions, emails the results via Gmail, and logs the Q&A to Google Sheets. How it works 1.…

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