{"product_id":"n8n-pdf-q-a-workflow-google-gemini-with-gmail-sheets","title":"n8n PDF Q\u0026A Workflow: Google Gemini with Gmail \u0026 Sheets","description":"\u003ch3\u003eAsk questions about your PDFs—get Gemini answers with citations, then email + log everything automatically\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003en8n PDF Q\u0026amp;A Workflow\u003c\/strong\u003e turns form submissions into a complete document Q\u0026amp;A pipeline: users upload a PDF and enter a question, Google Gemini answers using \u003cstrong\u003eonly the document\u003c\/strong\u003e (with \u003cstrong\u003equoted citations\u003c\/strong\u003e), the result is sent via \u003cstrong\u003eGmail\u003c\/strong\u003e, and the Q\u0026amp;A is saved to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives form submissions\u003c\/strong\u003e containing the user’s email address, a question, and an uploaded PDF.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses Google Gemini document understanding\u003c\/strong\u003e to generate an answer based exclusively on the PDF content, quoting the exact clause\/sentence or stating when the document lacks the answer.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHandles unreadable PDFs\u003c\/strong\u003e by sending a failure notification to the user via \u003cstrong\u003eGmail\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFormats the output\u003c\/strong\u003e with the user’s email, the original question, and the cited answer.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates 3 follow-up questions\u003c\/strong\u003e using a Google Gemini chat model (as \u003cem\u003ethree unnumbered\u003c\/em\u003e suggestions based on the Q\u0026amp;A).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends an email\u003c\/strong\u003e via Gmail including the cited answer and the suggested follow-ups.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAppends the Q\u0026amp;A to Google Sheets\u003c\/strong\u003e for record-keeping (e.g., a tab named “Document QA”).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSupport teams answering customer questions from \u003cstrong\u003epolicy PDFs\u003c\/strong\u003e or \u003cstrong\u003econtract documents\u003c\/strong\u003e with verifiable quotes.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators performing faster internal reviews by turning document lookups into an email + spreadsheet workflow.\u003c\/li\u003e\n  \u003cli\u003eLegal\/compliance teams needing \u003cstrong\u003edocument-grounded Q\u0026amp;A\u003c\/strong\u003e and audit-friendly logging in \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n Form Trigger\u003c\/strong\u003e for collecting email, question, and PDF uploads.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e document model for cited answers + Gemini chat model for follow-ups.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail\u003c\/strong\u003e OAuth2 connection to send success or failure notifications.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e OAuth2 integration to append Q\u0026amp;A to a selected spreadsheet and sheet\/tab.\u003c\/li\u003e\n  \u003cli\u003eNodes mentioned: \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003egmail\u003c\/strong\u003e, \u003cstrong\u003esticky note\u003c\/strong\u003e, \u003cstrong\u003eform trigger\u003c\/strong\u003e, \u003cstrong\u003egoogle sheets\u003c\/strong\u003e, and \u003cstrong\u003en8nn8n-nodes-langchainchain llm\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup note:\u003c\/strong\u003e Use text-based PDFs (not scanned images) and ensure your n8n instance supports the upload size.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45812014809267,"sku":"N8N-17954","price":27.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/CZ5TghwzNjHqYcTzDv7H8_vKYP3E8K.png?v=1786353225","url":"https:\/\/buyflowscripts.com\/products\/n8n-pdf-q-a-workflow-google-gemini-with-gmail-sheets","provider":"N8N Commerce","version":"1.0","type":"link"}