type.inbound
// direct outreach to sender
and length(recipients.to) == 1
// talking about new job
and any([body.current_thread.text, subject.subject],
regex.icontains(., 'congrat(?:ulation)?s on the new (?:job|gig|role)')
)
// body link to unsubscribe or to book time, otherwise use NLU on the body current thread
and (
any(body.links,
strings.icontains(.href_url.url, "unsubscribe")
or strings.icontains(.href_url.url, "opt-out")
or strings.icontains(.href_url.url, "preferences")
or strings.icontains(.href_url.url, "calendar")
)
or any(ml.nlu_classifier(body.current_thread.text).topics,
.name == "B2B Cold Outreach" and .confidence != "low"
)
)
// not someone they have reached out to before
and not profile.by_sender().solicited
Playground
Test against your own EMLs or sample data.