基于 GPT、LangChain yinteligente路由de AI 驱动cliente服务automatización
Este es unSupport, AIflujo de automatización del dominio deautomatización que contiene 46 nodos.Utiliza principalmente nodos como Set, Gmail, Merge, Switch, Supabase, combinando tecnología de inteligencia artificial para lograr automatización inteligente. AI驱动cliente服务automatización,基于GPT、LangChainyinteligente路由
- •Cuenta de Google y credenciales de API de Gmail
- •URL y Clave de API de Supabase
- •Bot Token de Telegram
- •Credenciales de API de Google Sheets
- •Clave de API de OpenAI
- •Información de conexión de la base de datos PostgreSQL
Nodos utilizados (46)
Categoría
{
"id": "h02mLLP5Q0k7rOnZ",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "AI-Powered Customer Service Automation with GPT, LangChain & Smart Routing",
"tags": [],
"nodes": [
{
"id": "166bbde1-8755-4cc5-97f6-d74ff59ace4f",
"name": "Descargar Archivo1",
"type": "n8n-nodes-base.telegram",
"position": [
-1260,
6020
],
"webhookId": "00c7755c-cd84-4aa4-89fe-c56f1f0cb50d",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "ed616fbb-37e3-4921-8489-c73f804a9079",
"name": "Transcribir1",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
-1040,
6020
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "43401bc8-f640-4ba5-b302-2950fb5ed511",
"name": "Telegram Trigger1",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-1700,
6200
],
"webhookId": "75096a78-a466-4f4e-bc0d-f68e9e952231",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "771f6729-6905-452d-bb22-3c77175a8501",
"name": "Combinar3",
"type": "n8n-nodes-base.merge",
"position": [
860,
5300
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "664c272c-417f-41d7-a4a2-6611de4bcde9",
"name": "Agregar3",
"type": "n8n-nodes-base.aggregate",
"position": [
1080,
5300
],
"parameters": {},
"typeVersion": 1
},
{
"id": "026c3136-c0f1-4d84-a916-edf07d29cc95",
"name": "Combinar4",
"type": "n8n-nodes-base.merge",
"position": [
900,
6600
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "d4d9b351-8725-4d22-9389-1a12d166405b",
"name": "OpenAI Chat Model8",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
240,
5680
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "d55f8a89-cb2b-465e-be9f-5e160fd9cf36",
"name": "OpenAI Chat Model10",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
240,
6000
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "f86cf4c8-047f-4f2a-9f3c-90f6c7593fe9",
"name": "OpenAI Chat Model11",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
280,
6280
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "49684dd6-45d1-4659-9a63-103d121517a8",
"name": "Pensar1",
"type": "@n8n/n8n-nodes-langchain.toolThink",
"position": [
1860,
5640
],
"parameters": {},
"typeVersion": 1
},
{
"id": "af8b5ab4-b100-442f-84be-d3384a064087",
"name": "Voz o Texto",
"type": "n8n-nodes-base.switch",
"position": [
-1480,
6200
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "a3ddbd5c-89f4-4b13-8496-4c930f9cc533",
"name": "Nota Adhesiva",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1860,
6040
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5b12d87f-ae5c-4fe7-becd-1507f8e4ac3a",
"name": "Analizador de Salida Estructurada",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
400,
6000
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "f8d92a15-f1d7-48c6-9120-bdfeb8e7103a",
"name": "Analizador de Salida Estructurada1",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
400,
6300
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "72208554-80eb-48cf-bf9f-bf0031c59450",
"name": "Memoria de Chat Postgres",
"type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
"position": [
1660,
5660
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "a4aaede1-c203-404d-815d-1b809565aa15",
"name": "clasificador de sentimiento",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
280,
6180
],
"parameters": {},
"executeOnce": true,
"typeVersion": 1.6
},
{
"id": "20b52d96-f878-4b19-a2fa-c92a1e642e3e",
"name": "clasificador de intención",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
260,
5840
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "734a03da-5151-4424-80cb-d93c239fb61c",
"name": "Analizador de Salida Estructurada2",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
440,
5680
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "cc1d47bc-df5e-4d00-97c0-16c046958907",
"name": "clasificador de privacidad",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
280,
5520
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "3d3cf16b-54e0-4726-9281-78c7b19cc536",
"name": "Nota Adhesiva1",
"type": "n8n-nodes-base.stickyNote",
"position": [
2260,
5740
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2d697ea7-3abf-4adf-ac89-79df0e4ec7a1",
"name": "Base de conocimiento",
"type": "n8n-nodes-base.googleDocsTool",
"position": [
2320,
5820
],
"parameters": {},
"typeVersion": 2
},
{
"id": "c55bf827-2744-4568-a0ee-e023d7c731b6",
"name": "base de datos de pedidos",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
2040,
5820
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "9c0b1668-8176-4ebe-88de-7971975670eb",
"name": "Nota Adhesiva2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1620,
5580
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "67557a8f-6979-4de7-830a-32519f1cdaa4",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1460,
5640
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "9a877509-cdbf-470e-8fc2-c6e01179559d",
"name": "Nota Adhesiva3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2400,
5080
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "45cf1bee-b76c-434b-b741-aa9b2b69d68d",
"name": "Historial de Chat y retroalimentación",
"type": "n8n-nodes-base.googleSheets",
"position": [
2460,
5140
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "b5cbddc3-7b42-4dd2-a85a-70f9ce7625ad",
"name": "responder",
"type": "n8n-nodes-base.telegram",
"position": [
2480,
5360
],
"webhookId": "88d7bd09-3589-40a5-af17-7dad5b2c51f0",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "296bfe0a-274c-45f6-beac-29be94ba91e4",
"name": "Texto",
"type": "n8n-nodes-base.set",
"position": [
-1140,
6300
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "5d95c556-1f4b-44de-beab-6d9e10d39026",
"name": "Agregar",
"type": "n8n-nodes-base.aggregate",
"position": [
1080,
6600
],
"parameters": {},
"typeVersion": 1
},
{
"id": "77776751-51b2-4ff5-a08b-ed94751dadd7",
"name": "OpenAI Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1220,
6760
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "fcada9f2-6e98-4824-a019-8267a1d86a0d",
"name": "Nota Adhesiva4",
"type": "n8n-nodes-base.stickyNote",
"position": [
160,
5260
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "21364bfb-a211-4f06-9337-cde63889e234",
"name": "Nota Adhesiva5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2020,
6040
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a4aed731-3445-4087-8339-49a13f118765",
"name": "Ruta normal / éxito",
"type": "n8n-nodes-base.noOp",
"position": [
1680,
6960
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a24a6100-4769-4bde-8f66-20621eec0113",
"name": "Escalación a supervisor",
"type": "n8n-nodes-base.gmail",
"position": [
2080,
6180
],
"webhookId": "aa184623-5ecc-423c-86bd-6521bffcdeb7",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "9855fb4c-716b-4aa9-bcbb-e175b0faecac",
"name": "Queja crítica",
"type": "n8n-nodes-base.gmail",
"position": [
2080,
6660
],
"webhookId": "aa184623-5ecc-423c-86bd-6521bffcdeb7",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "a76f2295-9084-4a08-822a-99fd143406da",
"name": "Solicitud humana",
"type": "n8n-nodes-base.gmail",
"position": [
2080,
6420
],
"webhookId": "aa184623-5ecc-423c-86bd-6521bffcdeb7",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "ab94460f-fcfc-4697-86bb-98e78129d1f9",
"name": "Combinar",
"type": "n8n-nodes-base.merge",
"position": [
-760,
6180
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "67634fad-16a3-467a-8bef-08f7519dc78c",
"name": "OpenAI Chat Model2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
200,
6940
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "0bfec7e7-29e3-4fe0-b150-a6689a8c2088",
"name": "Supabase1",
"type": "n8n-nodes-base.supabaseTool",
"position": [
340,
6940
],
"parameters": {},
"typeVersion": 1
},
{
"id": "568cdc98-723c-471b-aa3f-b406ce63357e",
"name": "Intervención humana",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
1260,
6600
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "49a7c0f6-4d4f-4fbe-bb4c-9d5cd556f19c",
"name": "Alimentar contexto para próximos mensajes",
"type": "n8n-nodes-base.supabase",
"position": [
2480,
5600
],
"parameters": {},
"typeVersion": 1
},
{
"id": "71cf835b-b799-4115-9920-dbf779f3e874",
"name": "Nota Adhesiva6",
"type": "n8n-nodes-base.stickyNote",
"position": [
1240,
6360
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "abe3ad98-5f46-48bc-8ef4-00796a8e69b4",
"name": "Generar contexto de conversación",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
260,
6720
],
"parameters": {},
"typeVersion": 2
},
{
"id": "a370f70a-d69b-492c-957e-148a249651d4",
"name": "Nota Adhesiva7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3240,
4740
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b924e7c7-e0e2-41ae-aba6-3a418a35ee35",
"name": "Nota Adhesiva8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1800,
5020
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b2ca23a4-f8b5-4ef6-8de8-c4c85f80cbbc",
"name": "AGENTE de servicio al cliente",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1720,
5340
],
"parameters": {},
"typeVersion": 1.8
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"createdAt": "2025-06-05T05:04:15.823Z",
"updatedAt": "2025-06-08T18:00:26.000Z",
"versionId": "ffd3d748-4d74-4ee9-aa02-384f6869cdaf",
"isArchived": false,
"staticData": null,
"connections": {
"296bfe0a-274c-45f6-beac-29be94ba91e4": {
"main": [
[
{
"node": "ab94460f-fcfc-4697-86bb-98e78129d1f9",
"type": "main",
"index": 1
}
]
]
},
"ab94460f-fcfc-4697-86bb-98e78129d1f9": {
"main": [
[
{
"node": "20b52d96-f878-4b19-a2fa-c92a1e642e3e",
"type": "main",
"index": 0
},
{
"node": "a4aaede1-c203-404d-815d-1b809565aa15",
"type": "main",
"index": 0
},
{
"node": "cc1d47bc-df5e-4d00-97c0-16c046958907",
"type": "main",
"index": 0
},
{
"node": "026c3136-c0f1-4d84-a916-edf07d29cc95",
"type": "main",
"index": 2
},
{
"node": "abe3ad98-5f46-48bc-8ef4-00796a8e69b4",
"type": "main",
"index": 0
},
{
"node": "771f6729-6905-452d-bb22-3c77175a8501",
"type": "main",
"index": 3
},
{
"node": "026c3136-c0f1-4d84-a916-edf07d29cc95",
"type": "main",
"index": 3
}
]
]
},
"771f6729-6905-452d-bb22-3c77175a8501": {
"main": [
[
{
"node": "664c272c-417f-41d7-a4a2-6611de4bcde9",
"type": "main",
"index": 0
}
]
]
},
"026c3136-c0f1-4d84-a916-edf07d29cc95": {
"main": [
[
{
"node": "5d95c556-1f4b-44de-beab-6d9e10d39026",
"type": "main",
"index": 0
}
]
]
},
"49684dd6-45d1-4659-9a63-103d121517a8": {
"ai_tool": [
[
{
"node": "b2ca23a4-f8b5-4ef6-8de8-c4c85f80cbbc",
"type": "ai_tool",
"index": 0
}
]
]
},
"5d95c556-1f4b-44de-beab-6d9e10d39026": {
"main": [
[
{
"node": "568cdc98-723c-471b-aa3f-b406ce63357e",
"type": "main",
"index": 0
}
]
]
},
"0bfec7e7-29e3-4fe0-b150-a6689a8c2088": {
"ai_tool": [
[
{
"node": "abe3ad98-5f46-48bc-8ef4-00796a8e69b4",
"type": "ai_tool",
"index": 0
}
]
]
},
"664c272c-417f-41d7-a4a2-6611de4bcde9": {
"main": [
[
{
"node": "b2ca23a4-f8b5-4ef6-8de8-c4c85f80cbbc",
"type": "main",
"index": 0
}
]
]
},
"ed616fbb-37e3-4921-8489-c73f804a9079": {
"main": [
[
{
"node": "ab94460f-fcfc-4697-86bb-98e78129d1f9",
"type": "main",
"index": 0
}
]
]
},
"af8b5ab4-b100-442f-84be-d3384a064087": {
"main": [
[
{
"node": "166bbde1-8755-4cc5-97f6-d74ff59ace4f",
"type": "main",
"index": 0
}
],
[
{
"node": "296bfe0a-274c-45f6-beac-29be94ba91e4",
"type": "main",
"index": 0
}
]
]
},
"166bbde1-8755-4cc5-97f6-d74ff59ace4f": {
"main": [
[
{
"node": "ed616fbb-37e3-4921-8489-c73f804a9079",
"type": "main",
"index": 0
}
]
]
},
"2d697ea7-3abf-4adf-ac89-79df0e4ec7a1": {
"ai_tool": [
[
{
"node": "b2ca23a4-f8b5-4ef6-8de8-c4c85f80cbbc",
"type": "ai_tool",
"index": 0
}
]
]
},
"c55bf827-2744-4568-a0ee-e023d7c731b6": {
"ai_tool": [
[
{
"node": "b2ca23a4-f8b5-4ef6-8de8-c4c85f80cbbc",
"type": "ai_tool",
"index": 0
}
]
]
},
"67557a8f-6979-4de7-830a-32519f1cdaa4": {
"ai_languageModel": [
[
{
"node": "b2ca23a4-f8b5-4ef6-8de8-c4c85f80cbbc",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"43401bc8-f640-4ba5-b302-2950fb5ed511": {
"main": [
[
{
"node": "af8b5ab4-b100-442f-84be-d3384a064087",
"type": "main",
"index": 0
}
]
]
},
"20b52d96-f878-4b19-a2fa-c92a1e642e3e": {
"main": [
[
{
"node": "026c3136-c0f1-4d84-a916-edf07d29cc95",
"type": "main",
"index": 1
},
{
"node": "771f6729-6905-452d-bb22-3c77175a8501",
"type": "main",
"index": 1
}
]
]
},
"568cdc98-723c-471b-aa3f-b406ce63357e": {
"main": [
[
{
"node": "a24a6100-4769-4bde-8f66-20621eec0113",
"type": "main",
"index": 0
}
],
[
{
"node": "a76f2295-9084-4a08-822a-99fd143406da",
"type": "main",
"index": 0
}
],
[
{
"node": "9855fb4c-716b-4aa9-bcbb-e175b0faecac",
"type": "main",
"index": 0
}
],
[
{
"node": "a4aed731-3445-4087-8339-49a13f118765",
"type": "main",
"index": 0
}
]
]
},
"77776751-51b2-4ff5-a08b-ed94751dadd7": {
"ai_languageModel": [
[
{
"node": "568cdc98-723c-471b-aa3f-b406ce63357e",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"67634fad-16a3-467a-8bef-08f7519dc78c": {
"ai_languageModel": [
[
{
"node": "abe3ad98-5f46-48bc-8ef4-00796a8e69b4",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"d4d9b351-8725-4d22-9389-1a12d166405b": {
"ai_languageModel": [
[
{
"node": "cc1d47bc-df5e-4d00-97c0-16c046958907",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"cc1d47bc-df5e-4d00-97c0-16c046958907": {
"main": [
[
{
"node": "771f6729-6905-452d-bb22-3c77175a8501",
"type": "main",
"index": 0
}
]
]
},
"d55f8a89-cb2b-465e-be9f-5e160fd9cf36": {
"ai_languageModel": [
[
{
"node": "20b52d96-f878-4b19-a2fa-c92a1e642e3e",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"f86cf4c8-047f-4f2a-9f3c-90f6c7593fe9": {
"ai_languageModel": [
[
{
"node": "a4aaede1-c203-404d-815d-1b809565aa15",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"72208554-80eb-48cf-bf9f-bf0031c59450": {
"ai_memory": [
[
{
"node": "b2ca23a4-f8b5-4ef6-8de8-c4c85f80cbbc",
"type": "ai_memory",
"index": 0
}
]
]
},
"a4aaede1-c203-404d-815d-1b809565aa15": {
"main": [
[
{
"node": "771f6729-6905-452d-bb22-3c77175a8501",
"type": "main",
"index": 2
},
{
"node": "026c3136-c0f1-4d84-a916-edf07d29cc95",
"type": "main",
"index": 0
}
]
]
},
"abe3ad98-5f46-48bc-8ef4-00796a8e69b4": {
"main": [
[
{
"node": "026c3136-c0f1-4d84-a916-edf07d29cc95",
"type": "main",
"index": 4
}
]
]
},
"b2ca23a4-f8b5-4ef6-8de8-c4c85f80cbbc": {
"main": [
[
{
"node": "45cf1bee-b76c-434b-b741-aa9b2b69d68d",
"type": "main",
"index": 0
},
{
"node": "b5cbddc3-7b42-4dd2-a85a-70f9ce7625ad",
"type": "main",
"index": 0
},
{
"node": "49a7c0f6-4d4f-4fbe-bb4c-9d5cd556f19c",
"type": "main",
"index": 0
}
]
]
},
"5b12d87f-ae5c-4fe7-becd-1507f8e4ac3a": {
"ai_outputParser": [
[
{
"node": "20b52d96-f878-4b19-a2fa-c92a1e642e3e",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"f8d92a15-f1d7-48c6-9120-bdfeb8e7103a": {
"ai_outputParser": [
[
{
"node": "a4aaede1-c203-404d-815d-1b809565aa15",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"734a03da-5151-4424-80cb-d93c239fb61c": {
"ai_outputParser": [
[
{
"node": "cc1d47bc-df5e-4d00-97c0-16c046958907",
"type": "ai_outputParser",
"index": 0
}
]
]
}
},
"triggerCount": 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 - Soporte, Inteligencia Artificial
¿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
Paul
@diagoplAutomation expert & n8n power user. I build advanced workflows combining AI, outbound, and business logic. Grab my templates or reach out for custom builds.
Compartir este flujo de trabajo