type.inbound
and any(body.links,
.href_url.domain.root_domain == "cloudhq.net"
and strings.starts_with(.href_url.path, "/s/")
and sender.email.domain.root_domain != 'cloudhq.net'
)
// the subject or display_name includes docusign
and (
regex.icontains(strings.replace_confusables(subject.subject),
'\bdocu\s*sign\b'
)
or regex.icontains(strings.replace_confusables(sender.display_name),
'\bdocu\s*sign\b'
)
)
// there is one unique cloudhq link in the message
and length(distinct(filter(body.links,
.href_url.domain.root_domain == "cloudhq.net"
),
.href_url.url
)
) <= 1
Playground
Test against your own EMLs or sample data.