- Einleitung
- Erste Schritte
- Erstellen Sie auf einer beliebigen Canvas
- Erstellen Sie mit Fall
- Referenz (Reference)
- Definieren von Fallschlüsseln (System vs. extern)
- Erstellen von Task-E/A- und Write-Back-Verträgen
- Modellieren von primären und sekundären Phasen
- Auslösen eines Falls aus Data Fabric
- Implementieren von Personas und Berechtigungen auf Phasenebene
- Festlegen von SLAs und automatisierten Eskalationsregeln
- Konfigurieren einer Nacharbeitsschleife (Wiedereintritt)
- Konfigurieren und Testen des Case Manager-Agents (Vorschau)
- Erstellen Sie mit Flow
- Erstellen Sie mit BPMN
- Betrieb
- Überwachung
- Optimieren
- Referenzinformationen
Eingehende E-Mails verarbeiten
Build a Maestro Orchestrate flow that starts when a new email arrives, extracts key fields, and routes the message to the right action based on its content.
Was Sie erstellen
A flow that starts automatically when a new email arrives, extracts key fields from the message, and routes it to the right action based on its content, for example logging support requests to a ticketing system or escalating urgent messages to a Slack channel.
Bevor Sie beginnen
- A UiPath Automation Cloud account with access to Maestro Orchestrate.
- An Integration Service connection to your mailbox, such as Microsoft Outlook 365 or Gmail. Create a connection describes how to create one.
Verwendete Knoten
- Connector trigger with the Email Received event: starts the flow when a new email arrives in the connected mailbox.
- Script: extracts the sender, subject, and body from the email.
- Decision, twice: checks that the email has the fields you need, then routes it based on content.
- Terminate: ends the flow cleanly if the email is missing a field.
Schritte
1. Create a flow and change its trigger to Email Received
- Open Maestro Orchestrate → Flow and create a new flow. The canvas opens with a Manual Trigger on it.
- Select the Manual Trigger, then select Connector trigger in the Change trigger list.
- Choose your email app, Microsoft Outlook 365 or Gmail, then the Email Received event.
- In the Connector section, select the connection to your mailbox.
2. Extrahieren Sie Felder aus der E-Mail
-
Select the + on the output handle of the trigger.
-
Search for Script and select it.
-
In Code, return the fields you need from the trigger's output:
const email = $vars.<trigger ID>.output; return { senderEmail: email.sender.<address field>, emailSubject: email.subject, emailBody: email.body.<text field> };const email = $vars.<trigger ID>.output; return { senderEmail: email.sender.<address field>, emailSubject: email.subject, emailBody: email.body.<text field> };
In Outlook, sender and body are objects: expand them under { } Insert in the Script node to find the address and the text. The exact field names vary by connector.
3. Check that the email has the fields you need
Not every email has the expected fields. Check them before the flow uses them:
- Select the + on the output handle of the Script node.
- Search for Decision and select it.
- Set the condition to check that the required fields are present, for example
$vars.script1.output.senderEmail != null. - From the False handle, add a Script node that logs the problem.
- From the output handle of that Script node, add a Terminate node.
The True branch carries the valid emails. The next step routes them.
4. Route urgent messages
- Select the + on the True handle of the Decision node from step 3.
- Search for Decision and select it.
- Set the condition to catch urgent messages, for example
$vars.script1.output.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.
Any node that has an Error handle can also be connected to the error path from step 3. Error handling describes how.
5. Testen und Debuggen
- Select Run Debug (▶) in the bottom toolbar of the canvas. The debug run uses an email that's already in the connected mailbox, so you don't need to send one.
- In the execution panel, check the email's fields under Variables > Inputs.
- Check in the execution trace that the email took the path you expected.
- To test the other path, send yourself an email that matches it, for example one with "urgent" in the subject.
- Select Run Debug (▶) again.
- Check under Variables > Inputs that the run picked up that email.
Debugging basics describes the execution panel.
Ergebnis
The flow starts when a new email arrives, extracts the sender, subject, and body, and routes the message to the right action. Emails with missing fields end on the error path and do not break the flow.
Erweitern Sie diesen Flow
- Invoke an AI agent: before the routing Decision, add an Autonomous Agent node to classify the email with AI rather than a keyword match.
- Route to more than two paths: replace the routing Decision with a Switch node, for example to send urgent messages, support requests, and everything else to different actions.
- Schleife über Anhänge: Wenn die E-Mail Anhänge enthält, fügen Sie einen Schleifenknoten hinzu, um jeden zu verarbeiten.
- Reply to the sender: after routing, add an email connector node to send a confirmation reply to
{{ $vars.script1.output.senderEmail }}.
Nächste Schritte
- Deploying a Flow: make the flow run without you.
- Build guides: more flows to build.
- Was Sie erstellen
- Bevor Sie beginnen
- Verwendete Knoten
- Schritte
- 1. Create a flow and change its trigger to Email Received
- 2. Extrahieren Sie Felder aus der E-Mail
- 3. Check that the email has the fields you need
- 4. Route urgent messages
- 5. Testen und Debuggen
- Ergebnis
- Erweitern Sie diesen Flow
- Nächste Schritte