type.inbound
and length(body.links) <= 1
and length(attachments) == 1
and strings.icontains(sender.display_name, recipients.to[0].email.domain.sld)
and length(recipients.to) == 1
and recipients.to[0].email.domain.root_domain in $org_domains
and
// No body text
(
length(body.current_thread.text) == 0 or body.current_thread.text is null
)
and all(attachments,
.file_type in $file_types_images
//
// This rule makes use of a beta feature and is subject to change without notice
// using the beta feature in custom rules is not suggested until it has been formally released
//
and strings.icontains(beta.ocr(.).text,
recipients.to[0].email.domain.sld
)
and any(ml.nlu_classifier(beta.ocr(.).text).intents,
.name == "cred_theft" and .confidence == "high"
)
)
Playground
Test against your own EMLs or sample data.