- Erste Schritte
- Erstellen
- Fügen Sie einen KI-Agent zu einem Workflow hinzu
- Rufen Sie eine externe API auf
- Eingehende E-Mails verarbeiten
- Einen Slack-Benachrichtigungs-Workflow erstellen
- Eine menschliche Genehmigung zu einem Workflow hinzufügen
- Erstellen Sie einen Chat Agent-Workflow
- Fehler behandeln
- Grundlagen des Debuggens
- Human-in-the-Loop: Eskalation oder menschlicher Schritt
- Auswerten Ihrer Workflows
- HTTP-Anfrage (HTTP Request)
- So funktionieren Connectorknoten
- Erstellen Sie eine Verbindung
- Vertriebs- und Kundenbeziehungen
- Kundensupport und Helpdesk
- Messaging und Meetings
- E-Mail
- Marketing
- Soziale Medien
- Dateien, Dokumente und E-Signatur
- Projekte, Zusammenarbeit und Code
- Menschen und Reservierung
- Finanzen und Handel
- KI-Modelle und Agenten
- Sprache, Bild und Sprache
- Daten und Speicherort
- Cloud, Identität und Sicherheit
- Bereitstellen und ausführen
- Beispiele
- Referenz (Reference)
Eingehende E-Mails verarbeiten
Build a workflow 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
Ein Workflow, der automatisch gestartet wird, wenn eine neue dringende E-Mail eintrifft, extrahiert wichtige Felder aus der Nachricht und leitet sie basierend auf ihrem Inhalt an die richtige Aktion weiter, z. B. das Protokollieren von Supportanforderungen an ein Ticketingsystem oder die Eskalation von Nachrichten an einen Slack-Kanal.
Bevor Sie beginnen
- Eine Verbindung zu Ihrem Postfach, z. B. Microsoft Outlook 365 oder Gmail. Beim Erstellen einer Verbindung wird beschrieben, wie Sie eine erstellen.
Verwendete Knoten
- Connector trigger with the Email Received event: starts the workflow 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 workflow cleanly if the email is missing a field.
Schritte
Wenn ein Codierungsagent eingerichtet ist, können Sie die manuellen Schritte überspringen. Fragen Sie:
Build a Maestro Automate workflow that starts when a new email arrives in my mailbox connection, extracts the sender, subject, and body, and uses a Decision node to send urgent messages to Slack and everything else to my support system.
Build a Maestro Automate workflow that starts when a new email arrives in my mailbox connection, extracts the sender, subject, and body, and uses a Decision node to send urgent messages to Slack and everything else to my support system.
Öffnen Sie dann den Workflow auf der Arbeitsfläche, vergleichen Sie ihn mit den folgenden Schritten und testen Sie ihn. Einrichten Ihres Codierungs-Agents beschreibt das Setup.
1. Create a workflow and change its trigger to Email Received
- Create a project, as Your first workflow describes. 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 workflow 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. The Error handling page 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 workflow 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 workflow.
Diesen Workflow erweitern
- 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
- Bereitstellung eines Workflows: Lassen Sie den Workflow ohne Sie ausführen.
- Anleitungen: Weitere Workflows zum Erstellen.
- Community: Teilen Sie, was Sie erstellt haben, oder bitten Sie andere Builder um Hilfe.
- Was Sie erstellen
- Bevor Sie beginnen
- Verwendete Knoten
- Schritte
- 1. Create a workflow 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
- Diesen Workflow erweitern
- Nächste Schritte