- Introducción
- Primeros pasos
- Modelado de procesos con BPMN
- Comprender el modelado del proceso
- Abrir el lienzo de modelado
- Modelar tu proceso
- Alinear y conectar elementos BPMN
- Autopilot para Maestro (vista previa)
- Repositorio de procesos
- Modelado de procesos con Gestión de casos
- Diseñar un esquema de entidad de caso persistente
- Definición de claves de caso (sistema frente a externo)
- Establecimiento de contratos de E/S de tareas y reescritura
- Reglas de salida y terminación temprana
- Modelado de etapas primarias y secundarias
- Desencadenar un caso desde Data Fabric
- Implementar personas y permisos a nivel de etapa
- Establecer SLA y reglas de escalada automatizadas
- Configurar un bucle de revisión (reingreso)
- Gestionar instancias de casos activos: pausar, migrar y reintentar
- Diccionario de componentes de gestión de casos de Maestro
- Process modeling with Flow
- Primeros pasos
- Conceptos básicos
- Node reference
- Build guides
- Mejores prácticas
- Referencia
- Implementación del proceso
- Depuración
- Simular
- Publicar y actualizar procesos de agente
- Escenarios de implementación comunes
- Extracción y validación de documentos
- Operaciones de proceso
- Supervisión de procesos
- Optimización de procesos
- Información de referencia
Guía del usuario de Maestro
What you'll build: A workflow that fires automatically when a new email arrives, extracts key fields from the message, and routes it to the right downstream action based on the content — for example, logging support requests to a ticketing system or escalating urgent messages to a Slack channel.
Qué necesitará
- A UiPath Automation Cloud account with access to Maestro Flow.
- A mailbox connected via Integration Service (UiPath's connector platform). Supported providers include Microsoft 365 and Gmail. To set up a connection, go to Integration Service in the UiPath Platform and configure the connector for your email provider.
Nodes used
- Email integration trigger — fires when a new email arrives in the connected mailbox
- Data Transform — extracts sender, subject, and body from the email payload
- Decision — routes the email based on content
- Terminate — ends the workflow cleanly if the payload is malformed
Pasos
1. Create a new Flow and add an email trigger
- Open Maestro → Flow and create a new workflow.
- In the node panel, open Integration nodes and find your email connector (Microsoft 365 or Gmail).
- Drag the Email received trigger onto the canvas.
- In the configuration panel, select the Connection to use and configure any filters (for example, a specific inbox folder).
2. Extract fields from the email
- Drag a Data Transform node onto the canvas and connect it to the trigger.
- Map the fields you need from the trigger's output payload:
trigger.body.from→senderEmailtrigger.body.subject→emailSubjecttrigger.body.body.content→emailBody
The exact field names vary by connector — check the trigger's output schema in the configuration panel.
3. Route based on content
- Drag a Decision node onto the canvas and connect it to the Data Transform node.
- Set the condition to evaluate the email content. For example, to catch urgent messages:
$vars.emailSubject.toLowerCase().includes("urgent"). - Connect the True branch to a high-priority action (for example, a Slack notification node).
- Connect the False branch to a standard action (for example, creating a ticket in your support system).
4. Handle malformed payloads
Not every email will have the fields you expect. Guard against malformed payloads before they break the workflow:
- Add a Decision node after the Data Transform and check that required fields are present — for example,
$vars.senderEmail != null. - Connect the valid branch to the routing Decision from step 3.
- Connect the invalid branch to a Script node that logs the problem.
- Connect the Script node to a Terminate node set to
Failed.
For any node that exposes an error handle, you can also connect it to the same error path. See Error handling.
5. Test and debug
To test without waiting for a real email:
- Add a Manual Trigger alongside the email trigger temporarily.
- Configure it with a sample input schema that matches the email payload shape.
- Run the test with sample values and verify the routing logic in the execution trace.
- Remove the Manual Trigger before publishing.
Resultado
Your workflow fires automatically when a new email arrives, extracts the sender, subject, and body, and routes the message to the correct downstream action. Malformed payloads terminate cleanly on the error path rather than breaking the workflow.
Extend this workflow
- Invoke an AI agent — Before the Decision node, add an Agent node to classify the email with AI rather than a keyword match.
- Loop over attachments — If the email has attachments, add a Loop node to process each one.
- Reply to the sender — After routing, add an email integration action node to send a confirmation reply to
{{ $vars.senderEmail }}.