type.inbound
and sender.email.email == "no-reply@spotify.com"
and any(regex.iextract(body.current_thread.text,
'(?P<greeting>[^\n]+)\nWelcome back to Spotify'
),
any(ml.nlu_classifier(.named_groups['greeting']).intents,
.name == "callback_scam"
)
)
Playground
Test against your own EMLs or sample data.