Templates / Explain prescription PDFs for patients with GPT-4o-mini, Gmail and Google Sheets

Explain prescription PDFs for patients with GPT-4o-mini, Gmail and Google Sheets

Ready for 3.0

by Incrementors ✓ · 2 views · created 2026-07-07 · Document Extraction, AI Summarization

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 workflow has 8 nodes and runs when someone submits an n8n form (“💊 Prescription Explainer”). Along the way it connects Google Sheets and Gmail. It also calls api.openai.com over HTTP.

How it runs

Trigger: When someone submits an n8n form (“💊 Prescription Explainer”).

  1. 2. Extract From File - Read PDF Text (Extract from File): extracts data from a file (pdf)
  2. 3. Code - Validate + Prepare Context (Code): runs custom JavaScript code
  3. 4. HTTP - AI Explain Prescription (HTTP Request): calls api.openai.com (POST)
  4. 5. Code - Parse AI Output Safely (Code): runs custom JavaScript code
  5. 6. Sheets - Log Processed Prescription (Google Sheets): append
  6. 6b. Code - Build HTML Email (Code): runs custom JavaScript code
  7. 7. Gmail - Send Explanation to Patient (Gmail): uses Gmail

Services it uses

Google SheetsGmail

HTTP calls to: api.openai.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 (6)

From the author

Quick overview This workflow collects a patient’s prescription PDF via an n8n form, extracts its text, uses OpenAI (gpt-4o-mini) to generate a plain-language medicine-by-medicine explanation in the chosen language, emails the result via Gmail, and logs each…

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