Templates / Generate personalized patient education reports with Google Sheets, Gemini, Brave, and Google Docs

Generate personalized patient education reports with Google Sheets, Gemini, Brave, and Google Docs

Ready for 3.0

by Hiroyuki Yamasaki ✓ · 38 views · created 2026-08-03 · 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 18 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets, Google Gemini Chat Model and Google Docs. It also calls api.search.brave.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Get Pending Patient Education Request (Google Sheets): uses Google Sheets
  2. Validate Patient Education Input (Code): runs custom JavaScript code
  3. Update row in sheet (Google Sheets): update
  4. Prepare Workflow Context (Edit Fields (Set)): sets 9 fields: Diagnosis, Physician Plan, Physician Message…
  5. Search Trusted Medical Sources (HTTP Request): calls api.search.brave.com
  6. Evaluate Search Results (Code): runs custom JavaScript code
  7. Select Medical Source (Code): runs custom JavaScript code
  8. Download Source Page (HTTP Request): calls an HTTP API
  9. Extract Medical Content (Code): runs custom JavaScript code
  10. Generate Patient Education (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model

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

Services it uses

Google SheetsGoogle Gemini Chat ModelGoogle Docs

HTTP calls to: api.search.brave.com

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

From the author

Quick overview Generate personalized, print-ready patient education documents from physician-provided diagnoses, treatment plans, and messages. The workflow finds relevant trusted medical information with Brave Search, uses Gemini to create patient-friendly…

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