Skip to main content

Automate prescription delivery via Google Sheets to email & WhatsApp

Workflow preview

Workflow preview
100%
Automate prescription delivery via Google Sheets to email & WhatsApp preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This is a fully working n8n workflow that sends prescriptions to patients via email and WhatsApp when a doctor enters prescription data into a Google Sheet. Google Sheets Structure Main Sheet: R...

Best for

  • Miscellaneous automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.filter, n8n-nodes-base.code, n8n-nodes-base.whatsapp, n8n-nodes-base.googlesheets, n8n-nodes-base.googlesheetstrigger, n8n-nodes-base.emailsend, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Automate prescription delivery via Google Sheets to email & WhatsApp
Workflow name
Automate prescription delivery via Google Sheets to email & WhatsApp

This is a fully working n8n workflow that sends prescriptions to patients via email and WhatsApp when a doctor enters prescription data into a Google Sheet.

πŸ“‹ Google Sheets Structure

Main Sheet: Required columns:

  • prescription_id (unique ID)
  • patient_name
  • patient_email
  • patient_phone
  • doctor_name
  • prescription_date
  • prescription_details
  • dosage_instructions
  • followup_date (optional)
  • prescription_status (set to "new" for new prescriptions)

Log Sheet: This will be auto-created with columns for tracking sent notifications.

πŸ”§ Required Credentials Setup

  1. Google Sheets OAuth2 API: Connect your Google account
  2. SMTP Credentials: For email sending (Gmail, Outlook, etc.)
  3. WhatsApp API: Meta Business WhatsApp API credentials

βš™οΈ Configuration Steps

  1. Replace YOUR_GOOGLE_SHEET_ID with your actual Google Sheet ID
  2. Replace YOUR_WHATSAPP_PHONE_NUMBER_ID with your WhatsApp Business phone number ID
  3. Update the email sender address in the "Send Email" node
  4. Set up your credentials in n8n

🌟 Features Included

  • Automated Trigger: Monitors Google Sheet for new prescriptions
  • Smart Filtering: Only processes prescriptions with status "new"
  • Rich Email Format: Professional HTML email with prescription details
  • WhatsApp Integration: Sends formatted prescription text
  • Comprehensive Logging: Tracks all sent notifications
  • Status Updates: Marks prescriptions as "sent" after processing
  • Error Handling: Logs success/failure status for both channels

πŸ“± Sample Data Format

Add rows to your sheet like this:

prescription_id: RX001
patient_name: John Doe
patient_email: [email protected]
patient_phone: +1234567890
doctor_name: Dr. Smith
prescription_date: 2025-01-15
prescription_details: Amoxicillin 500mg capsules
dosage_instructions: Take 1 capsule 3 times daily with food
followup_date: 2025-01-22
prescription_status: new

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Filter New Prescriptions

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 2 - Format Prescription Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Send WhatsApp

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 4 - Log Notification

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 5 - Update Prescription Status

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4

Block 6 - Google Sheets Trigger

Type / Role
n8n-nodes-base.googleSheetsTrigger - googleSheetsTrigger
Config choices
Version 1

Block 7 - Send email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate prescription delivery via Google Sheets to email & WhatsApp
Complexity intermediate
Nodes 8
Categories Miscellaneous
Author Oneclick AI Squad
Published 13 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7325/7325.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate prescription delivery via Google Sheets to email & WhatsApp do?

This is a fully working n8n workflow that sends prescriptions to patients via email and WhatsApp when a doctor enters prescription data into a Google Sheet. Google Sheets Structure Main Sheet: R...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Miscellaneous use case.