使用OpenAI、Google日历和消息应用的医疗预约安排助手
高级
这是一个自动化工作流,包含 40 个节点。主要使用 If, Set, Code, Wait, Redis 等节点。 使用OpenAI、Google日历和消息应用的医疗预约安排助手
前置要求
- •Redis 服务器连接信息
- •HTTP Webhook 端点(n8n 会自动生成)
- •Telegram Bot Token
- •OpenAI API Key
使用的节点 (40)
分类
-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "vdYPoneO2lydDAKt",
"meta": {
"instanceId": "98986c4dc0b4b2af9fd0666d254f8b80e6e6b2044e2f3f3eedc76242999f4b5e"
},
"name": "使用 OpenAI、Google Calendar 和消息应用的医疗预约安排助手",
"tags": [],
"nodes": [
{
"id": "0a0a8719-3cd5-420a-b19e-9bd587d086af",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1984,
128
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "7cd49d61-cf7e-426e-b4c2-47181efbc47b",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1968,
1008
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0466bf25-ee51-482b-a226-a0dee3511649",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1536,
992
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9b1764ad-f323-4be1-be99-0797c8ba49e9",
"name": "日历 AI 代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1536,
592
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "0593ac7a-7567-4f42-94e7-c351eef59c18",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3872,
400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "88c06826-0a94-45a2-b010-de8695f692e2",
"name": "REDIS - 防抖 - 设置",
"type": "n8n-nodes-base.redis",
"position": [
-3648,
816
],
"parameters": {},
"typeVersion": 1
},
{
"id": "36c490df-bcfd-4897-af47-612df539f9f4",
"name": "REDIS - 防抖 - 获取",
"type": "n8n-nodes-base.redis",
"position": [
-3248,
608
],
"parameters": {},
"typeVersion": 1
},
{
"id": "46f2d7e9-5c4a-4932-a55f-5aa6abfb1692",
"name": "REDIS - 防抖 - 删除",
"type": "n8n-nodes-base.redis",
"position": [
-2608,
592
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ae124435-e897-4e8e-b2e6-bbcceb779984",
"name": "对象消息 - 连接",
"type": "n8n-nodes-base.code",
"position": [
-2368,
592
],
"parameters": {},
"typeVersion": 2
},
{
"id": "fa108825-510b-4f59-9312-174c9cbb575c",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1136,
992
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "50f2a522-9045-4a71-aa3d-798671f12a22",
"name": "变量 - 配置",
"type": "n8n-nodes-base.set",
"position": [
-6096,
832
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "9dd231ab-69f5-4d83-bae9-690df2bff84e",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-1440,
1408
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "8964028b-5a70-4cec-b6ff-de5885b1795f",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-1888,
1360
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "96e7b5d2-18bb-4c65-a273-75242e459369",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "23f8bcdb-09ed-45a9-bb2f-8d0fd0eadfba",
"name": "检查日程",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
-1024,
1376
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "24bd37b6-3c65-47f6-89bb-9ef998124708",
"name": "创建预约",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
-784,
1376
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "e9fb0248-41e1-47d7-a51b-c78caab54a91",
"name": "取消预约",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
-560,
1376
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "a652287f-27f4-4673-84bf-6d0f0d9645e0",
"name": "时间已过?",
"type": "n8n-nodes-base.switch",
"position": [
-2992,
608
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "2b21a949-087c-4759-82e4-c86451bbfea9",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-6256,
496
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b6e51873-b127-4c1f-b1f3-cac0e9525280",
"name": "检查频道",
"type": "n8n-nodes-base.switch",
"position": [
-288,
592
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "145ba1db-34ee-4df9-9c9d-2eb7ad13485c",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
624
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "74c811f7-24e8-4a87-a7d7-c0301cccc97f",
"name": "循环消息 - WhatsApp",
"type": "n8n-nodes-base.splitInBatches",
"position": [
512,
208
],
"parameters": {},
"typeVersion": 3
},
{
"id": "c4a183a3-c4ae-4ff3-9d57-d0be1c3e3177",
"name": "循环消息 - Telegram",
"type": "n8n-nodes-base.splitInBatches",
"position": [
432,
816
],
"parameters": {},
"typeVersion": 3
},
{
"id": "ffed1611-b581-4a4b-bd5c-4e710b6becf2",
"name": "Telegram - 频道",
"type": "n8n-nodes-base.set",
"position": [
-6976,
752
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "12b1f056-0f03-4fae-a256-af5c0390a6b8",
"name": "WhatsApp - 频道",
"type": "n8n-nodes-base.set",
"position": [
-6976,
1024
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "34b59610-2c11-4d58-bbbd-ab0a8e08be64",
"name": "频道",
"type": "n8n-nodes-base.set",
"position": [
-6576,
848
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "6bd1994f-b2cb-4ec7-8aa7-03a37d464d00",
"name": "检查频道1",
"type": "n8n-nodes-base.switch",
"position": [
-5232,
832
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "9519dbee-1d01-4a6c-9d98-e28e3395cfbb",
"name": "对象消息 - WhatsApp",
"type": "n8n-nodes-base.code",
"position": [
-4656,
656
],
"parameters": {},
"typeVersion": 2
},
{
"id": "6369872e-db24-4786-a7b0-c1305a7fcfcf",
"name": "对象消息 - Telegram",
"type": "n8n-nodes-base.code",
"position": [
-4656,
1008
],
"parameters": {},
"typeVersion": 2
},
{
"id": "8d4501e4-8241-489b-8174-170b5da0381d",
"name": "对象消息",
"type": "n8n-nodes-base.set",
"position": [
-4208,
816
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "d4d23cc2-a221-40bd-880e-2e85d3fa7c5a",
"name": "发送消息 WhatsApp",
"type": "n8n-nodes-evolution-api.evolutionApi",
"position": [
896,
352
],
"parameters": {},
"typeVersion": 1
},
{
"id": "84940cb4-4d47-4216-8305-0403a783a2f6",
"name": "便签9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-5360,
384
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f722cdf0-919b-4754-9405-5821bf3d283d",
"name": "Telegram触发器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-7424,
656
],
"webhookId": "09024d48-1974-4377-b506-a4c0a464ab7d",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "9fb7c23a-2a88-4042-9c37-069124b0af8c",
"name": "发送消息 Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
896,
960
],
"webhookId": "a0b624ea-9032-4bcb-82c3-90d46c8aebcc",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "372a5ae7-fe85-40ca-b934-94ff60f209d8",
"name": "当前日期",
"type": "n8n-nodes-base.dateTime",
"position": [
-5728,
832
],
"parameters": {},
"typeVersion": 2
},
{
"id": "3a469582-df78-4d2e-8375-51ad31c573d3",
"name": "等待时间 - 5 秒防抖",
"type": "n8n-nodes-base.wait",
"position": [
-2784,
832
],
"webhookId": "26c6c5da-7df3-4796-9186-ac0c20f7ae24",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "82d92672-cba5-4af6-b562-7b33f2666451",
"name": "分割用户消息(输入)",
"type": "n8n-nodes-base.set",
"position": [
-832,
592
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "87a94d07-4f1f-4e15-8d64-61e71f0134f3",
"name": "消息转换为 JSON 数组",
"type": "n8n-nodes-base.splitOut",
"position": [
-576,
592
],
"parameters": {},
"typeVersion": 1
},
{
"id": "09cc9e41-8c9c-4162-af83-eba446279a3c",
"name": "新消息时(Evolution)",
"type": "n8n-nodes-base.webhook",
"position": [
-7424,
1056
],
"webhookId": "d4b64853-5972-49d5-8c55-549f4bdfde05",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "7dcff3d5-7e0b-423d-8de4-b48c5f9238bd",
"name": "如果存在消息",
"type": "n8n-nodes-base.if",
"position": [
640,
912
],
"parameters": {},
"typeVersion": 2.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a8ebdcae-c358-494b-b02c-8fd2b6ef26ec",
"connections": {
"CHANNEL": {
"main": [
[
{
"node": "VARIABLES - CONFIG",
"type": "main",
"index": 0
}
]
]
},
"DATE NOW": {
"main": [
[
{
"node": "CHECK CHANNEL1",
"type": "main",
"index": 0
}
]
]
},
"OBJECT MSG": {
"main": [
[
{
"node": "REDIS - DEBOUNCE - SET",
"type": "main",
"index": 0
}
]
]
},
"CHECK CHANNEL": {
"main": [
[
{
"node": "LOOP MESSAGE - WHATSAPP",
"type": "main",
"index": 0
}
],
[
{
"node": "LOOP MESSAGE - TELEGRAM",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Calendar AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"CHECK CHANNEL1": {
"main": [
[
{
"node": "OBJECT MSG - WHASTAPP",
"type": "main",
"index": 0
}
],
[
{
"node": "OBJECT MSG - TELEGRAM",
"type": "main",
"index": 0
}
]
]
},
"Check Schedule": {
"ai_tool": [
[
{
"node": "Calendar AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"HAS TIME PASSED?": {
"main": [
[
{
"node": "REDIS - DEBOUNCE - DELETE",
"type": "main",
"index": 0
}
],
[
{
"node": "WAIT TIME - 5 SECONDS DEBOUNCE",
"type": "main",
"index": 0
}
]
]
},
"IF EXIST MESSAGE": {
"main": [
[
{
"node": "SEND MESSAGE TELEGRAM",
"type": "main",
"index": 0
}
],
[
{
"node": "LOOP MESSAGE - TELEGRAM",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "TELEGRAM - CHANNEL",
"type": "main",
"index": 0
}
]
]
},
"Calendar AI Agent": {
"main": [
[
{
"node": "SPLIT USER MESSAGE (INPUT)",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Calendar AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Cancel Appointment": {
"ai_tool": [
[
{
"node": "Calendar AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Appointment": {
"ai_tool": [
[
{
"node": "Calendar AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"TELEGRAM - CHANNEL": {
"main": [
[
{
"node": "CHANNEL",
"type": "main",
"index": 0
}
]
]
},
"VARIABLES - CONFIG": {
"main": [
[
{
"node": "DATE NOW",
"type": "main",
"index": 0
}
]
]
},
"WHATSAPP - CHANNEL": {
"main": [
[
{
"node": "CHANNEL",
"type": "main",
"index": 0
}
]
]
},
"OBJECT MSG - TELEGRAM": {
"main": [
[
{
"node": "OBJECT MSG",
"type": "main",
"index": 0
}
]
]
},
"OBJECT MSG - WHASTAPP": {
"main": [
[
{
"node": "OBJECT MSG",
"type": "main",
"index": 0
}
]
]
},
"SEND MESSAGE TELEGRAM": {
"main": [
[
{
"node": "LOOP MESSAGE - TELEGRAM",
"type": "main",
"index": 0
}
]
]
},
"SEND MESSAGE WHATSAPP": {
"main": [
[
{
"node": "LOOP MESSAGE - WHATSAPP",
"type": "main",
"index": 0
}
]
]
},
"REDIS - DEBOUNCE - GET": {
"main": [
[
{
"node": "HAS TIME PASSED?",
"type": "main",
"index": 0
}
]
]
},
"REDIS - DEBOUNCE - SET": {
"main": [
[
{
"node": "REDIS - DEBOUNCE - GET",
"type": "main",
"index": 0
}
]
]
},
"LOOP MESSAGE - TELEGRAM": {
"main": [
[],
[
{
"node": "IF EXIST MESSAGE",
"type": "main",
"index": 0
}
]
]
},
"LOOP MESSAGE - WHATSAPP": {
"main": [
[],
[
{
"node": "SEND MESSAGE WHATSAPP",
"type": "main",
"index": 0
}
]
]
},
"MESSAGES INTO JSON ARRAY": {
"main": [
[
{
"node": "CHECK CHANNEL",
"type": "main",
"index": 0
}
]
]
},
"OBJECT MSG - CONCATENATE": {
"main": [
[
{
"node": "Calendar AI Agent",
"type": "main",
"index": 0
}
]
]
},
"REDIS - DEBOUNCE - DELETE": {
"main": [
[
{
"node": "OBJECT MSG - CONCATENATE",
"type": "main",
"index": 0
}
]
]
},
"SPLIT USER MESSAGE (INPUT)": {
"main": [
[
{
"node": "MESSAGES INTO JSON ARRAY",
"type": "main",
"index": 0
}
]
]
},
"on new message (Evolution)": {
"main": [
[
{
"node": "WHATSAPP - CHANNEL",
"type": "main",
"index": 0
}
]
]
},
"WAIT TIME - 5 SECONDS DEBOUNCE": {
"main": [
[
{
"node": "REDIS - DEBOUNCE - GET",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
宠物店 4
🐶 宠物店预约 AI 代理
If
Set
Code
+41
187 节点Bruno Dias
人工智能
交付汉堡店MVP
🤖 餐厅与配送自动化的 AI 驱动 WhatsApp 助手
If
Set
Code
+37
152 节点Bruno Dias
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
[模板] AI宠物店 v8
🐶 AI宠物店助手 - 集成GPT-4o、Google日历和WhatsApp/Instagram/Facebook
If
N8n
Set
+38
244 节点Amanda Benks
销售
GPT-4驱动的冷邮件工作流,包含完全定制的3封邮件跟进
使用GPT-4、Mailgun和Supabase自动化个性化冷邮件序列
If
Set
Code
+22
100 节点Paul
客户培育
完整的 B2B 销售流程:Apollo 潜在客户生成、Mailgun 外展和 AI 回复管理
完整的 B2B 销售流程:Apollo 潜在客户生成、Mailgun 外展和 AI 回复管理
If
Set
Code
+26
116 节点Paul
内容创作
工作流信息
难度等级
高级
节点数量40
分类-
节点类型18
作者
Thiago Vazzoler Loureiro
@thiagovazzolerBuilding Custom Automations with n8n | Node.js Developer | Integration Specialist | Open Source Contributor If you need help with n8n workflows, API integrations, or custom nodes, feel free to connect on LinkedIn: http://linkedin.com/in/thiago-vazzoler-loureiro-24056227
外部链接
在 n8n.io 查看 →
分享此工作流