Start with the narrowest trigger
Use a Gmail or Outlook new-email trigger and configure its built-in filters when possible. Trigger filters avoid creating runs for messages the automation will never process. Remember that subject matching can be case-sensitive. Test with the exact capitalization and message shapes that arrive in the real mailbox.Choose deterministic or AI routing
Use deterministic text and logic actions when the rule can be stated exactly:- sender domain equals a known customer or vendor,
- subject starts with a fixed prefix,
- a label is present,
- body contains a specific identifier.
Build the branches
Connectroute to a case-selection action or compare it in separate branches:
salescan forward to the sales queue.supportcan add a label and draft a reply.billingcan notify the billing team with the summary.ignorecan end without a side effect.
Avoid mail loops
Before enabling:- Send representative messages for every route.
- Confirm the trigger data contains the body and attachments you expect.
- Inspect drafts before switching to automatic replies.
- Test the fallback branch for ambiguous messages.
- Review Run History for node errors even when a run status says completed.