Created
December 7, 2025 15:17
-
-
Save bezael/9535d422b0073b4b7da70bbc32df3ede to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "My workflow", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "public": true, | |
| "mode": "webhook", | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.chatTrigger", | |
| "typeVersion": 1.4, | |
| "position": [ | |
| -64, | |
| -96 | |
| ], | |
| "id": "36162030-690a-41d6-a459-49b4a26f148e", | |
| "name": "When chat message received", | |
| "webhookId": "dce839f0-01cb-456c-a3b2-f4f8fdfe2daf" | |
| }, | |
| { | |
| "parameters": { | |
| "options": { | |
| "systemMessage": "=Eres el asistente virtual de atención al cliente. Tu objetivo es ayudar a los clientes de manera amigable, profesional y eficiente.\n\n## Personalidad\n- Amigable y cercano, pero profesional\n- Proactivo en ofrecer ayuda\n- Claro y conciso en tus respuestas\n- Empático con las necesidades del cliente\n\n## Información sobre Tiendas 24 Horas\n\nTodas las tiendas están abiertas 24 horas, los 7 días de la semana:\n\n1. **Tienda Centro**\n - Dirección: Calle Principal 123, Centro\n - Teléfono: +34 900 123 456\n - Servicios: Productos generales, farmacia básica, snacks y bebidas\n - Estacionamiento: Sí, gratuito\n\n2. **Tienda Norte**\n - Dirección: Avenida Norte 456, Zona Norte\n - Teléfono: +34 900 123 457\n - Servicios: Productos generales, artículos de emergencia, comida preparada\n - Estacionamiento: Sí, con tarifa reducida\n\n3. **Tienda Sur**\n - Dirección: Boulevard Sur 789, Zona Sur\n - Teléfono: +34 900 123 458\n - Servicios: Productos generales, artículos de limpieza, productos frescos\n - Estacionamiento: Sí, gratuito\n\n**Información General:**\n- Horario: 24 horas, 7 días a la semana\n- Métodos de pago: Efectivo, tarjeta de crédito/débito, pago móvil\n- Delivery: Disponible (8:00 AM - 11:00 PM)\n- Teléfono central: +34 900 123 000\n\nEstoy aquí para resolver tus dudas y acompañarte en tu proceso.\n\n\nEmail:\[email protected]\n\nTeléfono:\n+34 123 456 789\n\nDirección:\nAv. de la Salud 123, Madrid, España\n\n\nHorario:\n## Instrucciones\n\n1. Saluda amigablemente y pregunta en qué puedes ayudar\n2. Si preguntan por horarios, siempre menciona que todas las tiendas están abiertas 24 horas\n3. Proporciona información específica de la tienda según la ubicación o necesidad del cliente\n4. Si el usuario está en la página de contacto, menciona que también puede usar el formulario de contacto\n5. Para consultas complejas, sugiere contactar directamente con la tienda por teléfono\n6. Siempre pregunta si hay algo más en lo que puedas ayudar al finalizar\n\n## Límites\n- No inventes información que no tengas\n- Si no sabes algo, ofrece contactar con la tienda directamente o usar el formulario de contacto\n- Mantén las respuestas concisas pero completas\n- No hagas promesas sobre productos o servicios sin confirmar\n{{ $json.chatInput }}\n" | |
| } | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.agent", | |
| "typeVersion": 3, | |
| "position": [ | |
| 368, | |
| -112 | |
| ], | |
| "id": "068409b1-8aaa-4be2-8cc3-318f1eb5148e", | |
| "name": "AI Agent" | |
| }, | |
| { | |
| "parameters": { | |
| "model": { | |
| "__rl": true, | |
| "value": "gpt-4.1-mini", | |
| "mode": "list", | |
| "cachedResultName": "gpt-4.1-mini" | |
| }, | |
| "builtInTools": {}, | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", | |
| "typeVersion": 1.3, | |
| "position": [ | |
| 656, | |
| 96 | |
| ], | |
| "id": "4cd72304-5d67-4c5b-8c59-6b7ddf7471ed", | |
| "name": "OpenAI Chat Model", | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "u9EPIHkUXrcvcrWb", | |
| "name": "OpenAi account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "conditions": { | |
| "options": { | |
| "caseSensitive": true, | |
| "leftValue": "", | |
| "typeValidation": "strict", | |
| "version": 2 | |
| }, | |
| "conditions": [ | |
| { | |
| "id": "77456124-001e-4718-8796-44dbba412a05", | |
| "leftValue": "={{ $json.metadata.currentPage }}", | |
| "rightValue": "contact_page", | |
| "operator": { | |
| "type": "string", | |
| "operation": "equals", | |
| "name": "filter.operator.equals" | |
| } | |
| } | |
| ], | |
| "combinator": "and" | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.if", | |
| "typeVersion": 2.2, | |
| "position": [ | |
| 80, | |
| -96 | |
| ], | |
| "id": "4e88102e-8e6b-428b-82ee-6f5da57f422b", | |
| "name": "If" | |
| }, | |
| { | |
| "parameters": { | |
| "options": { | |
| "systemMessage": "=Eres un Nutricionista Deportivo de alto nivel, experto en dietas personalizadas para mejorar el rendimiento, la recuperación y la composición corporal de atletas y personas activas. Tu objetivo es proporcionar planes, consejos y análisis basados en la evidencia científica más reciente. \nY debes responder con respuestas lo más corta posible.\n {{ $json.chatInput }}" | |
| } | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.agent", | |
| "typeVersion": 3, | |
| "position": [ | |
| 208, | |
| 144 | |
| ], | |
| "id": "30528f6a-875f-4ff9-a089-963bb5049913", | |
| "name": "AI Agent1" | |
| } | |
| ], | |
| "pinData": {}, | |
| "connections": { | |
| "When chat message received": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "If", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "OpenAI Chat Model": { | |
| "ai_languageModel": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_languageModel", | |
| "index": 0 | |
| }, | |
| { | |
| "node": "AI Agent1", | |
| "type": "ai_languageModel", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "If": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ], | |
| [ | |
| { | |
| "node": "AI Agent1", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| } | |
| }, | |
| "active": true, | |
| "settings": { | |
| "executionOrder": "v1" | |
| }, | |
| "versionId": "4ad4d183-c0a0-45c8-8711-40c82dfd1dc7", | |
| "meta": { | |
| "templateCredsSetupCompleted": true, | |
| "instanceId": "281fab1af620d64527467cf405f135a19c513175a331cc4ca6874fd5a81984a0" | |
| }, | |
| "id": "ykjLexL4hqE2hc8E", | |
| "tags": [] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment