Saltar al contenido

Asistente AI para Pedidos WooCommerce con Seguimiento DHL

Workflow de n8n que actúa como asistente AI para responder preguntas de clientes sobre sus pedidos de WooCommerce, incluyendo la recuperación de detalles de pedidos y el estado de seguimiento vía DHL. Maneja la autenticación segura del email del cliente.

AI 40 nodos 18 tipos conectado
Cargando workflow...

Nodos

StickyNote Set If Merge SplitOut Aggregate MemoryBufferWindow ExecuteWorkflowTrigger WooCommerce HttpRequest Dhl LmChatOpenAi ToolWorkflow ChatTrigger RespondToWebhook Webhook Code Agent

Herramientas

WooCommerce DHL OpenAI

Detalles

ID
2161
Nodos
40
Conex.
Tipos
18

Pertenece a:

¿Qué hace este workflow?

Este workflow de n8n configura un asistente AI inteligente para gestionar consultas de clientes sobre sus pedidos de WooCommerce. Permite a los clientes preguntar directamente sobre el estado de sus compras, recuperar detalles específicos del pedido y obtener información de seguimiento actualizada a través de DHL, todo ello validando de forma segura su identidad mediante su email. El asistente está diseñado para reducir la carga de trabajo del equipo de atención al cliente al automatizar respuestas comunes, proporcionando información precisa y al instante, y liberando tiempo para casos más complejos. Mejora significativamente la experiencia del cliente al ofrecer un soporte rápido y eficiente 24/7.

¿Cómo funciona?

Este workflow usa 40 nodos conectados con 18 tipos diferentes: StickyNote, Set, If, Merge, SplitOut y 13 más. La estructura está totalmente conectada — listo para importar.

¿Para quién es?

Diseñado para empresas de Ecommerce y equipos de Atención al Cliente. Nivel avanzado — recomendado para usuarios experimentados. Alto valor de negocio: automatiza una tarea recurrente con impacto directo.

¿Lo quieres en tu empresa?

Lo implementamos por ti end-to-end: integración, deploy, mantenimiento y soporte. Consultoría B2B con Genai Sapiens.

Hablemos de tu proyecto

¿Quieres aprender a hacerlo?

Sprints de 30 días con companion IA + comunidad. Aprende n8n, automatización y agentes IA desde cero o nivel avanzado.

Ver formación Momentum

Workflows similares

\n\n\t\t\t

WooCommerce Agent Example page

\n\t\t\tClick on the bubble in the lower right corner to open the chat.\n\n\t\t\n\t\n"},"typeVersion":1},{"id":"3ee13508-9400-415f-b435-514131ab8c53","name":"Webhook Example Page","type":"n8n-nodes-base.webhook","position":[140,-920],"webhookId":"18474f2d-9472-4a8d-8e63-8128fd2cbefc","parameters":{"path":"website-chat-example","options":{},"responseMode":"responseNode"},"typeVersion":1.1},{"id":"76bfe2b1-2c4a-45b9-a066-1287e735fafd","name":"Decrypt email","type":"n8n-nodes-base.code","position":[860,-580],"parameters":{"jsCode":"// Loop over input items and add a new field called 'myNewField' to the JSON of each one\n\nconst crypto = require('crypto');\n\nconst password = 'a random password';\n\nconst encryptedData = $input.first().json.email;\n\n\nfunction decrypt(encrypted, password) {\n // Extract the IV and the encrypted text\n const parts = encrypted.split(':');\n const iv = Buffer.from(parts.shift(), 'hex');\n\n // Create a key from the password\n const key = crypto.scryptSync(password, 'salt', 32);\n\n // Create a decipher\n const decipher = crypto.createDecipheriv('aes-256-cbc', key, iv);\n\n // Decrypt the text\n let decrypted = decipher.update(parts.join(':'), 'hex', 'utf8');\n decrypted += decipher.final('utf8');\n\n // Return the decrypted text\n return decrypted;\n}\n\nreturn [\n {\n json: {\n email: decrypt(encryptedData, password),\n }\n }\n];"},"typeVersion":2},{"id":"561cb422-955b-445b-9690-aa439dcd2455","name":"Encrypt email","type":"n8n-nodes-base.code","position":[680,-840],"parameters":{"jsCode":"const crypto = require('crypto');\n\nconst password = 'a random password';\nconst email = 'james@brown.com';\n\n\nfunction encrypt(text, password) {\n // Generate a secure random initialization vector\n const iv = crypto.randomBytes(16);\n\n // Create a key from the password\n const key = crypto.scryptSync(password, 'salt', 32);\n\n // Create a cipher\n const cipher = crypto.createCipheriv('aes-256-cbc', key, iv);\n\n // Encrypt the text\n let encrypted = cipher.update(text, 'utf8', 'hex');\n encrypted += cipher.final('hex');\n\n // Return the IV and the encrypted text\n return `${iv.toString('hex')}:${encrypted}`;\n}\n\nreturn [\n {\n json: {\n email: encrypt(email, password),\n }\n }\n];"},"typeVersion":2},{"id":"eba004cb-4a40-432b-8fe2-d8526913c585","name":"Example encrypted email","type":"n8n-nodes-base.set","position":[680,-580],"parameters":{"options":{},"assignments":{"assignments":[{"id":"fa8d71d3-8e60-44b0-8ef0-e0bfc6feaf0e","name":"email","type":"string","value":"352b16c74f73265441c55c37c9c22b04:4a8e614143c9cd31cc7e2389380943f3"}]}},"typeVersion":3.3},{"id":"d2fe7948-2ce5-4faa-91da-ea76f02aaf84","name":"Decrypt email address","type":"n8n-nodes-base.code","disabled":true,"position":[-240,-220],"parameters":{"jsCode":"// Loop over input items and add a new field called 'myNewField' to the JSON of each one\n\nconst crypto = require('crypto');\n\nconst password = 'a random password';\nconst incomingData = $input.first().json;\n\n\nfunction decrypt(encrypted, password) {\n // Extract the IV and the encrypted text\n const parts = encrypted.split(':');\n const iv = Buffer.from(parts.shift(), 'hex');\n\n // Create a key from the password\n const key = crypto.scryptSync(password, 'salt', 32);\n\n // Create a decipher\n const decipher = crypto.createDecipheriv('aes-256-cbc', key, iv);\n\n // Decrypt the text\n let decrypted = decipher.update(parts.join(':'), 'hex', 'utf8');\n decrypted += decipher.final('utf8');\n\n // Return the decrypted text\n return decrypted;\n}\n\nreturn [\n {\n json: {\n ...incomingData,\n metadata: {\n email: decrypt(incomingData.metadata.email, password), \n },\n }\n }\n];"},"typeVersion":2},{"id":"26cb468c-5edf-4674-bec2-39270262fc00","name":"AI Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[140,-220],"parameters":{"options":{"systemMessage":"=The Assistant is tailored to support customers of Best Shirts Ltd. with inquiries related to their orders. It adheres to the following principles for optimal customer service:\n\n1. **Customer-Focused Communication**: The Assistant maintains a friendly and helpful tone throughout the interaction. It remains focused on the topic at hand, ensuring all responses are relevant to the customer's inquiries about their orders.\n\n2. **Objective and Factual**: In cases where specific information is unavailable, the Assistant clearly communicates the lack of information and refrains from speculating or providing unverified details.\n\n3. **Efficient Interaction**: Recognizing the importance of the customer's time, the Assistant is designed to remember previous interactions within the same session. This minimizes the need for customers to repeat information, streamlining the support process.\n\n4. **Strict Privacy Adherence**: The Assistant automatically has access to the customer's email address as \"{{ $json.email }}\", using it to assist with order-related inquiries. Customers are informed that it is not possible to use or inquire about a different email address. If a customer attempts to provide an alternate email, they are gently reminded of this limitation.\n\n5. **Transparency in Order Status**: The Assistant provides accurate information about order processing and delivery timelines. Orders are typically dispatched 1-2 days post-purchase, with an expected delivery period of 1-2 days following dispatch. If an order hasn't been sent out within 2 days, the Assistant acknowledges an unplanned delay and offers assistance accordingly.\n\n6. **Non-assumptive Approach to Delivery Confirmation**: The Assistant never presumes an order has been delivered based solely on its dispatch. It relies on explicit delivery confirmations or tracking information to inform customers about their order status.\n\n7. **Responsive to Specific Inquiries**: If a customer requests the email address used for their inquiry, the Assistant provides it directly, ensuring privacy and accuracy in communications.\n\nThis approach ensures that customers receive comprehensive, respectful, and efficient support for their order-related queries."}},"typeVersion":1.4},{"id":"1088d613-4321-40ec-baba-deb0f3aa1078","name":"Mock Data","type":"n8n-nodes-base.set","position":[-40,-220],"parameters":{"options":{},"assignments":{"assignments":[{"id":"c591fa49-31b3-46e7-8108-2d3ad1fc895b","name":"metadata.email","type":"string","value":"james@brown.com"}]},"includeOtherFields":true},"typeVersion":3.3}],"pinData":{},"connections":{"DHL":{"main":[[{"node":"Merge Tracking Data","type":"main","index":0}],[{"node":"Add Error Information","type":"main","index":0}]]},"Aggregate":{"main":[[{"node":"Merge Orders","type":"main","index":0}]]},"Mock Data":{"main":[[{"node":"AI Agent","type":"main","index":0}]]},"Split Out":{"main":[[{"node":"DHL","type":"main","index":0}]]},"Chat Trigger":{"main":[[{"node":"Decrypt email address","type":"main","index":0}]]},"Merge Orders":{"main":[[{"node":"Merge Order and Tracking Data","type":"main","index":0}]]},"If user found":{"main":[[{"node":"WooCommerce Get Orders","type":"main","index":0}],[{"node":"No customer found","type":"main","index":0}]]},"If order found":{"main":[[{"node":"Extract Tracking Data","type":"main","index":0},{"node":"Merge Order and Tracking Data","type":"main","index":1}],[{"node":"No order found","type":"main","index":0}]]},"WooCommerce_Tool":{"ai_tool":[[{"node":"AI Agent","type":"ai_tool","index":0}]]},"If email provided":{"main":[[{"node":"WooCommerce - Get User","type":"main","index":0}],[{"node":"No email provided","type":"main","index":0}]]},"OpenAI Chat Model":{"ai_languageModel":[[{"node":"AI Agent","type":"ai_languageModel","index":0}]]},"Merge Tracking Data":{"main":[[{"node":"Aggregate","type":"main","index":0}]]},"If contains DHL data":{"main":[[{"node":"Split Out","type":"main","index":0}],[{"node":"Merge Orders","type":"main","index":1}]]},"Webhook Example Page":{"main":[[{"node":"Respond to Webhook","type":"main","index":0}]]},"Window Buffer Memory":{"ai_memory":[[{"node":"AI Agent","type":"ai_memory","index":0}]]},"Add Error Information":{"main":[[{"node":"Merge Tracking Data","type":"main","index":1}]]},"Decrypt email address":{"main":[[{"node":"Mock Data","type":"main","index":0}]]},"Extract Tracking Data":{"main":[[{"node":"If contains DHL data","type":"main","index":0}]]},"WooCommerce - Get User":{"main":[[{"node":"If user found","type":"main","index":0}]]},"WooCommerce Get Orders":{"main":[[{"node":"If order found","type":"main","index":0}]]},"Example encrypted email":{"main":[[{"node":"Decrypt email","type":"main","index":0}]]},"Execute Workflow Trigger":{"main":[[{"node":"If email provided","type":"main","index":0}]]},"Merge Order and Tracking Data":{"main":[[{"node":"Send Response","type":"main","index":0}]]}}}