Answer PDF questions with cited answers using Google Gemini, Gmail and Sheets
Ready for 3.0What 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”).
- Read Document with Gemini (Google Gemini): work with document
- Shape Answer (Code): runs custom JavaScript code
- Email Read Failure (Gmail): uses Gmail
- Suggest Follow-up Questions (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model
- Log Q&A (Google Sheets): append
- Email the Answer (Gmail): uses Gmail
Services it uses
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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets
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.…