Generate and review patient SOAP notes with GPT-4o Mini, Gmail, and Google Sheets
Quick overview This workflow collects patient symptoms via an n8n Form, uses OpenAI (GPT-4o Mini) to draft a SOAP note, and sends it to a doctor for email approval in Gmail. Approved notes are saved to Google Sheets and notifications go out via Gmail and Telegram, with Slack alerts on errors.
How it works Receives a patient submission from an n8n Form with demographic details, symptoms, and contact info. Sends the intake details to OpenAI (GPT-4o Mini) to generate a structured SOAP note draft and alerts a Slack channel if the AI generation fails. Packages the patient details and SOAP draft (including a review token) and emails the draft to the assigned doctor via Gmail using a send-and-wait approval action. Routes the workflow based on the doctorβs email decision (approve vs. request edit). If approved, appends the patient data and SOAP note to Google Sheets, emails a confirmation to the patient via Gmail, and sends Telegram notifications to both the patient and doctor. If an edit is requested, emails the original draft back to the doctor via Gmail and sends a Telegram message confirming the edit request. If any other node fails, triggers a global error handler that posts execution details to Slack.
Setup Add credentials for OpenAI API, Gmail OAuth2, Google Sheets OAuth2, Telegram Bot, and Slack OAuth2. Share the n8n Form URL from the trigger with patients and ensure the form fields match your intake requirements. Update the assigned doctor email address and doctor Telegram chat ID used for routing notifications. Select or create the target Google Sheets spreadsheet and worksheet, and ensure the columns used in the append step exist. Choose the Slack channel for error alerts and confirm it is accessible to your Slack OAuth connection.
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
β‘ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments