Explain prescription PDFs for patients with GPT-4o-mini, Gmail and Google Sheets
Ready for 3.0What 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”).
- 2. Extract From File - Read PDF Text (Extract from File): extracts data from a file (pdf)
- 3. Code - Validate + Prepare Context (Code): runs custom JavaScript code
- 4. HTTP - AI Explain Prescription (HTTP Request): calls api.openai.com (POST)
- 5. Code - Parse AI Output Safely (Code): runs custom JavaScript code
- 6. Sheets - Log Processed Prescription (Google Sheets): append
- 6b. Code - Build HTML Email (Code): runs custom JavaScript code
- 7. Gmail - Send Explanation to Patient (Gmail): uses Gmail
Services it uses
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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
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…