Skip to main content

AI secretary for scheduling with WhatsApp and Telegram

Workflow preview

Workflow preview
100%
AI secretary for scheduling with WhatsApp and Telegram preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI secretary for scheduling with WhatsApp and Telegram ️ Community Disclaimer This workflow is community maintained and self hosted. It is not officially affiliated with or suppo...

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.agent, n8n-nodes-base.redis, n8n-nodes-base.code, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.googlecalendartool

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
AI secretary for scheduling with WhatsApp and Telegram
Workflow name
AI secretary for scheduling with WhatsApp and Telegram

🏥 AI secretary for scheduling with WhatsApp and Telegram

> ⚠️ Community Disclaimer
> This workflow is community-maintained and self-hosted.
> It is not officially affiliated with or supported by n8n GmbH, OpenAI, or Google.
> Users are responsible for their own configuration, security, and data compliance (e.g., HIPAA, LGPD, GDPR).
> Always secure API keys and ensure compliance with your local privacy regulations.


🧠 Description

This template deploys an AI-powered virtual medical secretary that automates appointment scheduling, rescheduling, and cancellations for clinics and healthcare professionals.
It seamlessly integrates OpenAI for natural language understanding, Google Calendar for real-time booking, and Evolution API (WhatsApp) or Telegram for patient communication.

Patients can chat naturally via WhatsApp or Telegram, receiving empathetic, professional, and human-like responses — while your calendar stays automatically synchronized in real time.


💡 What Problem Does This Solve?

Managing appointments manually is time-consuming and error-prone, often requiring staff to handle repetitive tasks like checking availability, confirming times, or rescheduling.
Traditional systems lack conversational capabilities, forcing patients to call or text staff directly.

This template solves that by creating a conversational AI assistant that interacts with patients through familiar messaging channels, reducing administrative workload and ensuring accurate real-time scheduling through Google Calendar.


⚙️ Key Features

  • 📅 Google Calendar Integration — Real-time synchronization of consultations and exams
  • 🤖 AI Assistant Powered by OpenAI — Understands patient intent and replies naturally
  • 💬 Multi-Channel Support — Works with WhatsApp (via Evolution API) and Telegram
  • 🔄 Automated Workflow — Handles booking, rescheduling, and cancellations
  • 🏥 Healthcare-Focused Design — Tailored for clinics, doctors, and medical secretaries
  • Customizable Responses — Modify prompts, message flows, and confirmation texts
  • Reminders & Follow-ups — Reduce no-shows with automated notifications

🧩 Setup Instructions (Step-by-Step)

  1. Obtain Required Credentials:

    • OpenAI API Key
    • Google Calendar API Credentials (OAuth or Service Account)
    • Evolution API Token (for WhatsApp)
    • Telegram Bot Token (if using Telegram)
  2. Configure n8n Environment:

    • Add your credentials under Settings → Credentials.
    • Ensure your n8n instance has internet access to the APIs.
  3. Configure Node “Variables Config” & Update Nodes:

    • Set nm_Clinic → Name of the clinic
    • Set nm_Agent → Name of the AI agent
    • Set ds_Address_Clinic → Address of the clinic
    • Set nm_Health_Plan → Name of the health insurance provider
    • Set nm_Evolution_Instance → Name of your Evolution API instance
    • Set nm_City_Clinic → City where the clinic is located

  1. Customize the Conversation Flow:

    • Edit OpenAI prompt nodes to match your clinic’s tone of voice.
    • Update Google Calendar event templates with your preferred titles and descriptions.
  2. Deploy and Test:

    • Test both WhatsApp and Telegram channels.
    • Verify that appointments appear correctly in Google Calendar.
    • Review conversation logs to fine-tune the responses.

🚀 Suggested Use Cases

Ideal for:

  • Clinics and medical offices wanting 24/7 automated appointment management
  • Healthcare professionals reducing manual scheduling and follow-ups
  • Multi-channel (WhatsApp + Telegram) patient interaction
  • Reducing no-shows with reminders and confirmations
  • Clinics seeking to modernize patient communication and optimize staff time

This assistant ensures every patient request is handled naturally — while Google Calendar remains the single source of truth for scheduling.

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 Note1

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

Block 2 - Sticky Note2

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

Block 3 - Sticky Note3

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

Block 4 - Calendar AI Agent

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

Block 5 - Sticky Note

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

Block 6 - REDIS - DEBOUNCE - SET

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

Block 7 - REDIS - DEBOUNCE - GET

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

Block 8 - REDIS - DEBOUNCE - DELETE

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

Block 9 - OBJECT MSG - CONCATENATE

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

Block 10 - Sticky Note7

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

Block 11 - VARIABLES - CONFIG

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Simple Memory

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

Block 13 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - Sticky Note4

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

Block 15 - Check Schedule

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 16 - Create Appointment

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 17 - Cancel Appointment

Type / Role
n8n-nodes-base.googleCalendarTool - googleCalendarTool
Config choices
Version 1.3

Block 18 - HAS TIME PASSED?

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 19 - Sticky Note8

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

Block 20 - CHECK CHANNEL

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 21 - Sticky Note5

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

Block 22 - LOOP MESSAGE - WHATSAPP

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 23 - LOOP MESSAGE - TELEGRAM

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 24 - TELEGRAM - CHANNEL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

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

3. Summary Table

Workflow AI secretary for scheduling with WhatsApp and Telegram
Complexity advanced
Nodes 40
Categories Support Chatbot, AI Chatbot
Author Thiago Vazzoler Loureiro
Published 02 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9211/9211.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 AI secretary for scheduling with WhatsApp and Telegram do?

AI secretary for scheduling with WhatsApp and Telegram ️ Community Disclaimer This workflow is community maintained and self hosted. It is not officially affiliated with or suppo...

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.