# AI-Powered Dental Appointment System with Telegram: n8n workflow

> Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets and Telegram.

Source: https://millionrounds.com/workflow/ai-powered-dental-appointment-system-with-telegram (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# AI-Powered Dental Appointment System with Telegram

Started by an incoming Telegram message, and works across Gmail, Google Calendar, Google Sheets and Telegram. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 49 steps, 7 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-dental-appointment-system-with-telegram)

**49 steps** Large: read it before trusting it with anything live

**7** Branches: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 7 Model 18 Logic 13 Service 11

The steps in the order they run, from what starts it.

- 1 **Simple Memory** Memory Buffer Window *Model*
- 2 **Booking Tool** Mcp Client Tool *Model*
- 3 **Simple Memory1** Memory Buffer Window *Model*
- 4 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 5 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 6 **Send a message in Gmail** Gmail Tool *Service*
- 7 **Append or update row in sheet in Google Sheets** Google Sheets Tool *Service*
- 8 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 9 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 10 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 11 **Webhook** Webhook *Starts it*
- 12 **Telegram Trigger** Telegram trigger *Starts it*
- 13 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 14 **validate_busy_time** Tool Workflow *Model*
- 15 **create_new_event** Tool Workflow *Model*
- 16 **delete_event** Tool Workflow *Model*
- 17 **update_event** Tool Workflow *Model*
- 18 **get_events_in_gap_time** Tool Workflow *Model*
- 19 **Planning Agent** Agent *Model*
- 20 **Booking Agent** Agent *Model*
- 21 **Structured Output Parser** Output Parser Structured *Model*
- 22 **Structured Output Parser1** Output Parser Structured *Model*
- 23 **Mail and Sheet Entry** Agent *Model*
- 24 **map_data** Set *Logic*
- 25 **MCP Server Trigger** Mcp trigger *Starts it*
- 26 **Feedback or Next** Switch *Logic*
- 27 **Success/Fail Booking** Switch *Logic*
- 28 **Switch** Switch *Logic*
- 29 **Switch App** Switch *Logic*
- 30 **Operation** Switch *Logic*
- 31 **Webhook/Telegram** Switch *Logic*
- 32 **Edit Fields** Set *Logic*
- 33 **Edit Fields1** Set *Logic*
- 34 **Respond to Webhook2** Respond To Webhook *Starts it*
- 35 **Send a text message2** Telegram *Service*
- 36 **Respond to Webhook1** Respond To Webhook *Starts it*
- 37 **Send a text message1** Telegram *Service*
- 38 **validate_availability_event** Google Calendar *Service*
- 39 **delete_event1** Google Calendar *Service*
- 40 **check_availability_to_create** Google Calendar *Service*
- 41 **update_calendar** Google Calendar *Service*
- 42 **get_event_in_time_gap** Google Calendar *Service*
- 43 **Respond to Webhook** Respond To Webhook *Starts it*
- 44 **Send a text message** Telegram *Service*
- 45 **Edit Fields2** Set *Logic*
- 46 **If** If *Logic*
- 47 **response_data_get_data** Set *Logic*
- 48 **create_event** Google Calendar *Service*
- 49 **Stop and Error** Stop And Error *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 49, with 7 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Calendar, Google Sheets, Telegram
- **Model:** Gemini, OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Calendar, Google Sheets and Telegram accounts, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Gemini and OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 49 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 49 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-dental-appointment-system-with-telegram)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Calendar](https://millionrounds.com/workflows?service=Google+Calendar#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**Handle WhatsApp gym bookings and surveys with Whisper** 49 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/handle-whatsapp-gym-bookings-and-surveys-with-whisper)
- [**Generate legal ops briefings with Claude and Clio** 50 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/generate-legal-ops-briefings-with-claude-and-clio)
- [**Automate sales meeting prep with Apify** 47 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-sales-meeting-prep-with-apify)
- [**Multi-agent salon appointment management with Telegram** 52 steps · calls a model · Google Calendar, Redis](https://millionrounds.com/workflow/multi-agent-salon-appointment-management-with-telegram)
- [**AI-powered Telegram business assistant with OpenAI and Google** 45 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/ai-powered-telegram-business-assistant-with-openai-and-googl)
- [**Automate agile refinement prep with Gmail and OpenAI** 42 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-agile-refinement-prep-with-gmail-and-openai)
