πŸ’¬ AI secretary for scheduling with WhatsApp and Telegram

⚑ 404 views Β· πŸ’¬ Support Chatbots

Description

πŸ₯ 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.

image.png


πŸ’‘ 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


🧩 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

image.png

  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:

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

πŸ”— Nodes Used

Redis, Webhook, Telegram, Telegram Trigger, AI Agent, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup