Multi Agent AI Clinic Management with WhatsApp Telegram and Go
Healthcare Clinic Assistant with WhatsApp and Telegram Integration Version: 1.1.0 n8n Version: 1.88.0+ License: MIT --- π Description A comprehensive and mo...
π Nodes & Integrations Used (12)
π Implementation & Setup Guide
Healthcare Clinic Assistant with WhatsApp and Telegram Integration **Version:** 1.1.0 **n8n Version:** 1.88.0+ **License:** MIT
---
π Description A **comprehensive and modular automation workflow** designed for healthcare clinics. It manages patient communication, appointment scheduling, confirmations, rescheduling, internal tasks, and media processing by integrating **WhatsApp**, **Telegram**, **Google Calendar**, and **Google Tasks**, combined with **AI-powered agents** for maximum efficiency.
This system guarantees proactive communication with patients, streamlined internal clinic management, and consistent data synchronization across platforms.
---
π Key Features - π€ **AI-Powered Specialized Agents**: Distinct agents handle WhatsApp patient support, appointment confirmations, and internal rescheduling tasks.
- π± **Omnichannel Communication**:
- Handles patient interactions via WhatsApp and staff commands via Telegram.
- π **Google Calendar Appointment Management**:
- Full synchronization for creating, updating, canceling, and confirming appointments.
- π **Task Management with Google Tasks**:
- Manages shopping lists and administrative tasks efficiently through staff Telegram requests.
- π **Automated Appointment Reminders**:
- Daily-triggered system proactively sends WhatsApp confirmations to patients for next-day appointments.
- πΌοΈ **Intelligent Media Processing**:
- Transcribes audios, extracts text from images, and processes documents using OpenAI and OpenRouter AI models.
- π‘οΈ **Escalation to Human Support**:
- Automatically detects sensitive or urgent cases and escalates them to a human agent when needed.
---
π₯ Use Cases - **Patient Communication:** Respond to inquiries, schedule, reschedule, and confirm appointments seamlessly via WhatsApp.
- **Internal Clinic Operations:**
- Allow staff to modify appointments or add shopping list reminders directly from Telegram.
- **Appointment Confirmation System:**
- Automatically contacts patients one day prior to appointments for confirmation or rescheduling.
- **Task and Reminder Management:**
- Keeps clinic operations organized through automatic task management with Google Tasks.
---
π οΈ Technical Implementation
WhatsApp Patient Interaction Flow - **Webhook Reception:** Incoming WhatsApp messages captured via Evolution API webhook. - **Message Classification:** Intelligent routing of messages based on content type (text, image, audio, document). - **Media Content Processing:** - **Audios:** Download, convert, and transcribe via OpenAI Whisper. - **Images:** Analyze and extract text/descriptions with OpenAI Vision model. - **Patient Request Handling:** Specialized WhatsApp assistant responds appropriately using AI prompts. - **Outbound Message Formatting:** Ensures messages comply with WhatsApp format standards. - **Message Delivery:** Sends responses back via Evolution API.
Telegram Staff Management Flow - **Telegram Webhook Reception:** Captures messages from authorized staff accounts. - **Internal Assistant Processing:** - **Appointment Rescheduling:** Identifies and updates appointments through MCP Google Calendar. - **Task Creation:** Adds new entries to the clinic's shopping list using Google Tasks. - **Notifications and Confirmations:** Sends confirmations back to staff through Telegram.
Appointment Reminder System - **Daily Trigger Activation:** Fires every weekday at 08:00 AM. - **Calendar Scraping:** Lists next day's appointments from Google Calendar. - **Patient Contact:** Sends WhatsApp confirmation messages for each appointment. - **Response Management:** Redirects confirmation or rescheduling replies to appropriate agents.
---
βοΈ Setup Instructions
- **Import the Workflow**
- n8n β Workflows β Import from File β Upload this JSON file.
2. **Configure Credentials** - Evolution API (WhatsApp Communication) - Telegram Bot API (Staff Communication) - Google Calendar OAuth2 (Appointment Management) - Google Tasks OAuth2 (Task Management) - OpenAI and OpenRouter APIs (AI Agents) - PostgreSQL Database (Chat Memory)
3. **Set Sensitive Variables** - Replace placeholder values: - `{sua instΓ’ncia aqui}` β Evolution API instance name - `{nΓΊmero_whatsapp}` β WhatsApp numbers - `{url_do_servidor}` β Server URLs - `{a sua apikey aqui}` β API keys - `{seu_calendario}` β Google Calendar ID
4. **Customize AI Prompts** - Adjust system prompts to fit your clinicβs tone, service style, and patient communication guidelines. - Set clinic operating hours, escalation rules, and cancellation procedures in AI prompts.
5. **Activate and Test** - Simulate patient messages via WhatsApp. - Test Telegram commands from staff members. - Validate daily appointment reminders using the scheduled trigger.
---
π·οΈ Tags `Healthcare` `Clinic Management` `WhatsApp Integration` `Telegram Bot` `Appointment Scheduling` `Google Calendar` `Google Tasks` `AI Agents` `n8n Automation`
---
π Technical Notes - PostgreSQL is used for persistent chat memory across sessions. - Multiple AI Models Used: - **OpenAI GPT-4.1-nano** - **OpenAI GPT-4.1-mini** - **Google Gemini 2.0 and 2.5** - Full media content processing supported (audio, image, text). - Compliant escalation workflows ensure patient safety and proper handoff to human staff when necessary. - All sensitive patient data are securely stored inside calendar event descriptions for easy retrieval by agents.
---
π License This workflow is provided under the **MIT License**. Feel free to adapt and customize it for your clinicβs specific needs.
β‘ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Multi_Agent_AI_Clinic_Management_with_WhatsApp_Telegram_and_Go.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related AI Agents Workflows
View All in AI Agents β5 ways to process images PDFs with Gemini AI in n8n
How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workfl...
7 AI Sales Assistant
Production-ready n8n automation template for 7 AI Sales Assistant built by AhiXLight. Seamlessly connects Airtop Tool, Slack, Airtop with 24 configured nodes.
AAVE portfolio professional AI agent Telegram Email GPT 4o
A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports v...
Access control for AI agents RBAC using Airtable and Telegram
Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control....