Skip to main content

Doctor appointment management system with Gemini AI, WhatsApp, Stripe & Google Sheets

Workflow preview

Workflow preview
100%
Doctor appointment management system with Gemini AI, WhatsApp, Stripe & Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

WhatsApp AI Assistant for Clinic Appointment Booking Automate your entire appointment lifecycle with an intelligent AI assistant that lives on WhatsApp. This workflow empowers any clinic or indepen...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.whatsapptrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.datetimetool, n8n-nodes-base.whatsapp, n8n-nodes-base.googlesheetstool, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Doctor appointment management system with Gemini AI, WhatsApp, Stripe & Google Sheets
Workflow name
Doctor appointment management system with Gemini AI, WhatsApp, Stripe & Google Sheets

WhatsApp AI Assistant for Clinic Appointment Booking Automate your entire appointment lifecycle with an intelligent AI assistant that lives on WhatsApp. This workflow empowers any clinic or independent practitioner to manage bookings, take payments, and send reminders without manual intervention, using Google Sheets as a simple database.

This template handles everything from the initial booking conversation to sending the final reminder, allowing you to focus on your patients, not your schedule.

Features

πŸ€– Conversational AI Booking: A Google Gemini-powered agent guides patients through booking, rescheduling, and canceling appointments in a natural, friendly chat.

πŸ—“οΈ Smart Scheduling: The AI checks for available slots based on your working hours and existing appointments in Google Sheets, preventing double-bookings.

πŸ”” Automated Reminders: A daily trigger automatically sends WhatsApp reminders to patients for their appointments on that day, reducing no-shows.

πŸ’³ Seamless Payments: Integrated with Stripe to handle online payments. The workflow sends a confirmation message upon successful payment.

πŸ“Š Centralized Management: Uses a single Google Sheet with separate tabs for Patients, Appointments, and Configuration, making it easy to view and manage all your data.

πŸ”„ Easy Rescheduling & Cancellations: Patients can manage their own bookings through the WhatsApp chat, and all changes are instantly reflected in your Google Sheet.

Prerequisites

Before you begin, you will need the following accounts and credentials:

n8n Account: A running n8n instance (cloud or self-hosted).

WhatsApp Business Account: Access to the WhatsApp Cloud API.

Google Account: For using Google Sheets and the Google Gemini (AI) API.

Stripe Account: To process online payments.

n8n Credentials: You must configure credentials in your n8n instance for:

WhatsApp Cloud API

Google Sheets (OAuth2)

Google Gemini API

Stripe

Setup Instructions

Follow these steps carefully to get your automated assistant up and running.

Step 1: Set Up Your Google Sheet This workflow relies on a specific Google Sheet structure.

Create a new Google Sheet.

Rename the sheet to something memorable, like "Clinic Appointments".

Create three tabs at the bottom with the exact names: Patients, Appointments, and Config.

Set up the columns for each tab as follows (the header names must be an exact match):

Patients tab: patient_id, whatsapp_number, name, age, gender

Appointments tab: appointment_id, patient_id, whatsapp_number, date, time, payment_method, payment_status, status, stripe_payment_intent

Config tab: key, value (Add a row with working_hours as the key and a value like 10:00-18:00)

Step 2: Configure the Workflow Nodes Now, you'll link the workflow to your accounts and your new Google Sheet.

Update All Google Sheets Nodes: Go through every Google Sheets node in the workflow (e.g., "Get Appointment sheet", "Add Patient", "Google Sheets Trigger") and do the following:

Select your Google Sheets credential from the dropdown.

In the Document ID field, paste the ID of your Google Sheet.

Select the correct sheet (Appointments, Patients, etc.) from the Sheet Name dropdown.

Update All WhatsApp Nodes: Go through every WhatsApp node (e.g., "Send message", "WhatsApp Trigger", "Send Payment Confirmation"):

Select your WhatsApp credential.

Enter your Phone Number ID from your Meta for Developers account.

Update AI & Stripe Nodes:

In the Google Gemini Chat Model nodes, select your Google Gemini credential.

In the Stripe Trigger node, select your Stripe credential.

Step 3: Activate the Workflow Click Save to apply your changes.

Click the Activate toggle in the top-right corner to turn the workflow on.

Your AI appointment assistant is now live! Send a message to your WhatsApp number to begin testing.

Customization

Change Reminder Time: To change the daily reminder time, open the Schedule Trigger node and adjust the hour from the default of 8 AM.

Edit AI Personality: To modify how the AI communicates, edit the system message in the AI Agent node (the one connected to the WhatsApp Trigger). You can change its tone, instructions, or language.

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 5 - WhatsApp Trigger

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

Block 6 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 7 - Date & Time

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

Block 8 - Send message

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

Block 9 - Get Patient List For User

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 10 - Add Patient

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 11 - Get User Appointments

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 12 - Add Appointment

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 13 - Get All Appointments

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 14 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 15 - Reschedule Appointment

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 16 - Cancel Appointment

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 17 - Config

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 18 - Sticky Note4

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

Block 19 - Sticky Note5

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

Block 20 - Sticky Note16

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

Block 21 - Sticky Note13

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

Block 22 - Setup Instructions

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

Block 23 - Schedule Trigger1

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 24 - Google Gemini Chat Model3

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Showing the first 24 of 43 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Doctor appointment management system with Gemini AI, WhatsApp, Stripe & Google Sheets
Complexity advanced
Nodes 43
Categories Support Chatbot, AI Chatbot
Author GreatStack
Published 22 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8825/8825.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 Doctor appointment management system with Gemini AI, WhatsApp, Stripe & Google Sheets do?

WhatsApp AI Assistant for Clinic Appointment Booking Automate your entire appointment lifecycle with an intelligent AI assistant that lives on WhatsApp. This workflow empowers any clinic or indepen...

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 Support Chatbot, AI Chatbot use case.