Book and manage law office appointments via Telegram, OpenAI and Google Calendar
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 14 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI Chat Model and Google Calendar.
How it runs
Trigger: On Telegram events (message).
- Legal Processing Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-5 Mini; 3 tools (Check Google Calendar, Delete Calendar Appointment, Escalate to Human Assistant); memory: Maintain Conversation Memory
- Parse and Analyze Output (Code): runs custom JavaScript code
- Route Based on Action Type (If): checks a condition and branches into true / false
- Schedule New Appointment (Google Calendar): uses Google Calendar
- Send Response to Client (Telegram): uses Telegram
- Build Client Confirmation Message (Code): runs custom JavaScript code
- Send Appointment Confirmation (Telegram): uses Telegram
- Notify Secretary of Update (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Calendar Tool
n8n-nodes-base.googleCalendarTool - Telegram Tool
n8n-nodes-base.telegramTool - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Google Calendar
n8n-nodes-base.googleCalendar - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow acts as a virtual legal secretary on Telegram, using OpenAI and Google Calendar to collect client details, check availability, book 30‑minute consultations, and message both the client and an internal secretary chat in Portuguese…