Automation library · Scheduling

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.

LargeCalls a model: Gemini, OpenAIRetrieval

49 stepsLarge: read it before trusting it with anything live
7Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 7Model 18Logic 13Service 11

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

  1. 1Simple MemoryMemory Buffer WindowModel
  2. 2Booking ToolMcp Client ToolModel
  3. 3Simple Memory1Memory Buffer WindowModel
  4. 4Google Gemini Chat Model2Lm Chat Google GeminiModel
  5. 5Google Gemini Chat Model3Lm Chat Google GeminiModel
  6. 6Send a message in GmailGmail ToolService
  7. 7Append or update row in sheet in Google SheetsGoogle Sheets ToolService
  8. 8OpenAI Chat ModelLm Chat Open AiModel
  9. 9OpenAI Chat Model1Lm Chat Open AiModel
  10. 10OpenAI Chat Model2Lm Chat Open AiModel
  11. 11WebhookWebhookStarts it
  12. 12Telegram TriggerTelegram triggerStarts it
  13. 13When Executed by Another WorkflowExecute Workflow triggerStarts it
  14. 14validate_busy_timeTool WorkflowModel
  15. 15create_new_eventTool WorkflowModel
  16. 16delete_eventTool WorkflowModel
  17. 17update_eventTool WorkflowModel
  18. 18get_events_in_gap_timeTool WorkflowModel
  19. 19Planning AgentAgentModel
  20. 20Booking AgentAgentModel
  21. 21Structured Output ParserOutput Parser StructuredModel
  22. 22Structured Output Parser1Output Parser StructuredModel
  23. 23Mail and Sheet EntryAgentModel
  24. 24map_dataSetLogic
  25. 25MCP Server TriggerMcp triggerStarts it
  26. 26Feedback or NextSwitchLogic
  27. 27Success/Fail BookingSwitchLogic
  28. 28SwitchSwitchLogic
  29. 29Switch AppSwitchLogic
  30. 30OperationSwitchLogic
  31. 31Webhook/TelegramSwitchLogic
  32. 32Edit FieldsSetLogic
  33. 33Edit Fields1SetLogic
  34. 34Respond to Webhook2Respond To WebhookStarts it
  35. 35Send a text message2TelegramService
  36. 36Respond to Webhook1Respond To WebhookStarts it
  37. 37Send a text message1TelegramService
  38. 38validate_availability_eventGoogle CalendarService
  39. 39delete_event1Google CalendarService
  40. 40check_availability_to_createGoogle CalendarService
  41. 41update_calendarGoogle CalendarService
  42. 42get_event_in_time_gapGoogle CalendarService
  43. 43Respond to WebhookRespond To WebhookStarts it
  44. 44Send a text messageTelegramService
  45. 45Edit Fields2SetLogic
  46. 46IfIfLogic
  47. 47response_data_get_dataSetLogic
  48. 48create_eventGoogle CalendarService
  49. 49Stop and ErrorStop And ErrorLogic

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.