Asistente para programar citas médicas usando OpenAI, Google Calendar y aplicaciones de mensajería
Este es unautomatización que contiene 40 nodos.Utiliza principalmente nodos como If, Set, Code, Wait, Redis. Asistente de programación de citas médicas usando OpenAI, Google Calendar y aplicaciones de mensajería
- •Información de conexión del servidor Redis
- •Punto final de HTTP Webhook (n8n generará automáticamente)
- •Bot Token de Telegram
- •Clave de API de OpenAI
Nodos utilizados (40)
Categoría
{
"id": "vdYPoneO2lydDAKt",
"meta": {
"instanceId": "98986c4dc0b4b2af9fd0666d254f8b80e6e6b2044e2f3f3eedc76242999f4b5e"
},
"name": "Medical Appointment Scheduling Assistant with OpenAI, Google Calendar & Messaging Apps",
"tags": [],
"nodes": [
{
"id": "0a0a8719-3cd5-420a-b19e-9bd587d086af",
"name": "Nota adhesiva1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1984,
128
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "7cd49d61-cf7e-426e-b4c2-47181efbc47b",
"name": "Nota adhesiva2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1968,
1008
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0466bf25-ee51-482b-a226-a0dee3511649",
"name": "Nota adhesiva3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1536,
992
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9b1764ad-f323-4be1-be99-0797c8ba49e9",
"name": "Agente de IA de Calendario",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1536,
592
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "0593ac7a-7567-4f42-94e7-c351eef59c18",
"name": "Nota adhesiva",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3872,
400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "88c06826-0a94-45a2-b010-de8695f692e2",
"name": "REDIS - DEBOUNCE - SET",
"type": "n8n-nodes-base.redis",
"position": [
-3648,
816
],
"parameters": {},
"typeVersion": 1
},
{
"id": "36c490df-bcfd-4897-af47-612df539f9f4",
"name": "REDIS - DEBOUNCE - GET",
"type": "n8n-nodes-base.redis",
"position": [
-3248,
608
],
"parameters": {},
"typeVersion": 1
},
{
"id": "46f2d7e9-5c4a-4932-a55f-5aa6abfb1692",
"name": "REDIS - DEBOUNCE - DELETE",
"type": "n8n-nodes-base.redis",
"position": [
-2608,
592
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ae124435-e897-4e8e-b2e6-bbcceb779984",
"name": "OBJETO MSG - CONCATENAR",
"type": "n8n-nodes-base.code",
"position": [
-2368,
592
],
"parameters": {},
"typeVersion": 2
},
{
"id": "fa108825-510b-4f59-9312-174c9cbb575c",
"name": "Nota adhesiva7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1136,
992
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "50f2a522-9045-4a71-aa3d-798671f12a22",
"name": "VARIABLES - CONFIG",
"type": "n8n-nodes-base.set",
"position": [
-6096,
832
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "9dd231ab-69f5-4d83-bae9-690df2bff84e",
"name": "Memoria Simple",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-1440,
1408
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "8964028b-5a70-4cec-b6ff-de5885b1795f",
"name": "OpenAI Modelo de Chat",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-1888,
1360
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "96e7b5d2-18bb-4c65-a273-75242e459369",
"name": "Nota adhesiva4",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "23f8bcdb-09ed-45a9-bb2f-8d0fd0eadfba",
"name": "Verificar Agenda",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
-1024,
1376
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "24bd37b6-3c65-47f6-89bb-9ef998124708",
"name": "Crear Cita",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
-784,
1376
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "e9fb0248-41e1-47d7-a51b-c78caab54a91",
"name": "Cancelar Cita",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
-560,
1376
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "a652287f-27f4-4673-84bf-6d0f0d9645e0",
"name": "¿HA PASADO EL TIEMPO?",
"type": "n8n-nodes-base.switch",
"position": [
-2992,
608
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "2b21a949-087c-4759-82e4-c86451bbfea9",
"name": "Nota adhesiva8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-6256,
496
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b6e51873-b127-4c1f-b1f3-cac0e9525280",
"name": "VERIFICAR CANAL",
"type": "n8n-nodes-base.switch",
"position": [
-288,
592
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "145ba1db-34ee-4df9-9c9d-2eb7ad13485c",
"name": "Nota adhesiva5",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
624
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "74c811f7-24e8-4a87-a7d7-c0301cccc97f",
"name": "BUCLE MENSAJE - WHATSAPP",
"type": "n8n-nodes-base.splitInBatches",
"position": [
512,
208
],
"parameters": {},
"typeVersion": 3
},
{
"id": "c4a183a3-c4ae-4ff3-9d57-d0be1c3e3177",
"name": "BUCLE MENSAJE - TELEGRAM",
"type": "n8n-nodes-base.splitInBatches",
"position": [
432,
816
],
"parameters": {},
"typeVersion": 3
},
{
"id": "ffed1611-b581-4a4b-bd5c-4e710b6becf2",
"name": "TELEGRAM - CANAL",
"type": "n8n-nodes-base.set",
"position": [
-6976,
752
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "12b1f056-0f03-4fae-a256-af5c0390a6b8",
"name": "WHATSAPP - CANAL",
"type": "n8n-nodes-base.set",
"position": [
-6976,
1024
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "34b59610-2c11-4d58-bbbd-ab0a8e08be64",
"name": "CANAL",
"type": "n8n-nodes-base.set",
"position": [
-6576,
848
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "6bd1994f-b2cb-4ec7-8aa7-03a37d464d00",
"name": "VERIFICAR CANAL1",
"type": "n8n-nodes-base.switch",
"position": [
-5232,
832
],
"parameters": {},
"typeVersion": 3.3
},
{
"id": "9519dbee-1d01-4a6c-9d98-e28e3395cfbb",
"name": "OBJETO MSG - WHATSAPP",
"type": "n8n-nodes-base.code",
"position": [
-4656,
656
],
"parameters": {},
"typeVersion": 2
},
{
"id": "6369872e-db24-4786-a7b0-c1305a7fcfcf",
"name": "OBJETO MSG - TELEGRAM",
"type": "n8n-nodes-base.code",
"position": [
-4656,
1008
],
"parameters": {},
"typeVersion": 2
},
{
"id": "8d4501e4-8241-489b-8174-170b5da0381d",
"name": "OBJETO MSG",
"type": "n8n-nodes-base.set",
"position": [
-4208,
816
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "d4d23cc2-a221-40bd-880e-2e85d3fa7c5a",
"name": "ENVIAR MENSAJE WHATSAPP",
"type": "n8n-nodes-evolution-api.evolutionApi",
"position": [
896,
352
],
"parameters": {},
"typeVersion": 1
},
{
"id": "84940cb4-4d47-4216-8305-0403a783a2f6",
"name": "Nota adhesiva9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-5360,
384
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f722cdf0-919b-4754-9405-5821bf3d283d",
"name": "Activador 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": "ENVIAR MENSAJE 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": "FECHA ACTUAL",
"type": "n8n-nodes-base.dateTime",
"position": [
-5728,
832
],
"parameters": {},
"typeVersion": 2
},
{
"id": "3a469582-df78-4d2e-8375-51ad31c573d3",
"name": "TIEMPO DE ESPERA - 5 SEGUNDOS DEBOUNCE",
"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": "DIVIDIR MENSAJE DE USUARIO (ENTRADA)",
"type": "n8n-nodes-base.set",
"position": [
-832,
592
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "87a94d07-4f1f-4e15-8d64-61e71f0134f3",
"name": "MENSAJES A ARRAY JSON",
"type": "n8n-nodes-base.splitOut",
"position": [
-576,
592
],
"parameters": {},
"typeVersion": 1
},
{
"id": "09cc9e41-8c9c-4162-af83-eba446279a3c",
"name": "al nuevo mensaje (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": "SI EXISTE MENSAJE",
"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": {
"34b59610-2c11-4d58-bbbd-ab0a8e08be64": {
"main": [
[
{
"node": "50f2a522-9045-4a71-aa3d-798671f12a22",
"type": "main",
"index": 0
}
]
]
},
"372a5ae7-fe85-40ca-b934-94ff60f209d8": {
"main": [
[
{
"node": "6bd1994f-b2cb-4ec7-8aa7-03a37d464d00",
"type": "main",
"index": 0
}
]
]
},
"8d4501e4-8241-489b-8174-170b5da0381d": {
"main": [
[
{
"node": "88c06826-0a94-45a2-b010-de8695f692e2",
"type": "main",
"index": 0
}
]
]
},
"b6e51873-b127-4c1f-b1f3-cac0e9525280": {
"main": [
[
{
"node": "74c811f7-24e8-4a87-a7d7-c0301cccc97f",
"type": "main",
"index": 0
}
],
[
{
"node": "c4a183a3-c4ae-4ff3-9d57-d0be1c3e3177",
"type": "main",
"index": 0
}
]
]
},
"9dd231ab-69f5-4d83-bae9-690df2bff84e": {
"ai_memory": [
[
{
"node": "9b1764ad-f323-4be1-be99-0797c8ba49e9",
"type": "ai_memory",
"index": 0
}
]
]
},
"6bd1994f-b2cb-4ec7-8aa7-03a37d464d00": {
"main": [
[
{
"node": "9519dbee-1d01-4a6c-9d98-e28e3395cfbb",
"type": "main",
"index": 0
}
],
[
{
"node": "6369872e-db24-4786-a7b0-c1305a7fcfcf",
"type": "main",
"index": 0
}
]
]
},
"23f8bcdb-09ed-45a9-bb2f-8d0fd0eadfba": {
"ai_tool": [
[
{
"node": "9b1764ad-f323-4be1-be99-0797c8ba49e9",
"type": "ai_tool",
"index": 0
}
]
]
},
"a652287f-27f4-4673-84bf-6d0f0d9645e0": {
"main": [
[
{
"node": "46f2d7e9-5c4a-4932-a55f-5aa6abfb1692",
"type": "main",
"index": 0
}
],
[
{
"node": "3a469582-df78-4d2e-8375-51ad31c573d3",
"type": "main",
"index": 0
}
]
]
},
"7dcff3d5-7e0b-423d-8de4-b48c5f9238bd": {
"main": [
[
{
"node": "9fb7c23a-2a88-4042-9c37-069124b0af8c",
"type": "main",
"index": 0
}
],
[
{
"node": "c4a183a3-c4ae-4ff3-9d57-d0be1c3e3177",
"type": "main",
"index": 0
}
]
]
},
"f722cdf0-919b-4754-9405-5821bf3d283d": {
"main": [
[
{
"node": "ffed1611-b581-4a4b-bd5c-4e710b6becf2",
"type": "main",
"index": 0
}
]
]
},
"9b1764ad-f323-4be1-be99-0797c8ba49e9": {
"main": [
[
{
"node": "82d92672-cba5-4af6-b562-7b33f2666451",
"type": "main",
"index": 0
}
]
]
},
"8964028b-5a70-4cec-b6ff-de5885b1795f": {
"ai_languageModel": [
[
{
"node": "9b1764ad-f323-4be1-be99-0797c8ba49e9",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"e9fb0248-41e1-47d7-a51b-c78caab54a91": {
"ai_tool": [
[
{
"node": "9b1764ad-f323-4be1-be99-0797c8ba49e9",
"type": "ai_tool",
"index": 0
}
]
]
},
"24bd37b6-3c65-47f6-89bb-9ef998124708": {
"ai_tool": [
[
{
"node": "9b1764ad-f323-4be1-be99-0797c8ba49e9",
"type": "ai_tool",
"index": 0
}
]
]
},
"ffed1611-b581-4a4b-bd5c-4e710b6becf2": {
"main": [
[
{
"node": "34b59610-2c11-4d58-bbbd-ab0a8e08be64",
"type": "main",
"index": 0
}
]
]
},
"50f2a522-9045-4a71-aa3d-798671f12a22": {
"main": [
[
{
"node": "372a5ae7-fe85-40ca-b934-94ff60f209d8",
"type": "main",
"index": 0
}
]
]
},
"12b1f056-0f03-4fae-a256-af5c0390a6b8": {
"main": [
[
{
"node": "34b59610-2c11-4d58-bbbd-ab0a8e08be64",
"type": "main",
"index": 0
}
]
]
},
"6369872e-db24-4786-a7b0-c1305a7fcfcf": {
"main": [
[
{
"node": "8d4501e4-8241-489b-8174-170b5da0381d",
"type": "main",
"index": 0
}
]
]
},
"9519dbee-1d01-4a6c-9d98-e28e3395cfbb": {
"main": [
[
{
"node": "8d4501e4-8241-489b-8174-170b5da0381d",
"type": "main",
"index": 0
}
]
]
},
"9fb7c23a-2a88-4042-9c37-069124b0af8c": {
"main": [
[
{
"node": "c4a183a3-c4ae-4ff3-9d57-d0be1c3e3177",
"type": "main",
"index": 0
}
]
]
},
"d4d23cc2-a221-40bd-880e-2e85d3fa7c5a": {
"main": [
[
{
"node": "74c811f7-24e8-4a87-a7d7-c0301cccc97f",
"type": "main",
"index": 0
}
]
]
},
"36c490df-bcfd-4897-af47-612df539f9f4": {
"main": [
[
{
"node": "a652287f-27f4-4673-84bf-6d0f0d9645e0",
"type": "main",
"index": 0
}
]
]
},
"88c06826-0a94-45a2-b010-de8695f692e2": {
"main": [
[
{
"node": "36c490df-bcfd-4897-af47-612df539f9f4",
"type": "main",
"index": 0
}
]
]
},
"c4a183a3-c4ae-4ff3-9d57-d0be1c3e3177": {
"main": [
[],
[
{
"node": "7dcff3d5-7e0b-423d-8de4-b48c5f9238bd",
"type": "main",
"index": 0
}
]
]
},
"74c811f7-24e8-4a87-a7d7-c0301cccc97f": {
"main": [
[],
[
{
"node": "d4d23cc2-a221-40bd-880e-2e85d3fa7c5a",
"type": "main",
"index": 0
}
]
]
},
"87a94d07-4f1f-4e15-8d64-61e71f0134f3": {
"main": [
[
{
"node": "b6e51873-b127-4c1f-b1f3-cac0e9525280",
"type": "main",
"index": 0
}
]
]
},
"ae124435-e897-4e8e-b2e6-bbcceb779984": {
"main": [
[
{
"node": "9b1764ad-f323-4be1-be99-0797c8ba49e9",
"type": "main",
"index": 0
}
]
]
},
"46f2d7e9-5c4a-4932-a55f-5aa6abfb1692": {
"main": [
[
{
"node": "ae124435-e897-4e8e-b2e6-bbcceb779984",
"type": "main",
"index": 0
}
]
]
},
"82d92672-cba5-4af6-b562-7b33f2666451": {
"main": [
[
{
"node": "87a94d07-4f1f-4e15-8d64-61e71f0134f3",
"type": "main",
"index": 0
}
]
]
},
"09cc9e41-8c9c-4162-af83-eba446279a3c": {
"main": [
[
{
"node": "12b1f056-0f03-4fae-a256-af5c0390a6b8",
"type": "main",
"index": 0
}
]
]
},
"3a469582-df78-4d2e-8375-51ad31c573d3": {
"main": [
[
{
"node": "36c490df-bcfd-4897-af47-612df539f9f4",
"type": "main",
"index": 0
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Avanzado
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
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
Compartir este flujo de trabajo