From a50d0c50e510d04d1933225cd7c781ac427f8dab Mon Sep 17 00:00:00 2001 From: Bobby Filar <29960025+bfilar@users.noreply.github.com> Date: Fri, 6 Oct 2023 09:38:25 -0500 Subject: [PATCH] First batch of NLU signals (#501) Co-authored-by: Cameron Dunn Co-authored-by: Sam Scholten Co-authored-by: Sam Scholten --- signals/content/nlu_bec_high_conf.yml | 7 +++++++ signals/content/nlu_bec_low_conf.yml | 7 +++++++ signals/content/nlu_bec_med_conf.yml | 7 +++++++ signals/content/nlu_callback_scam_high_conf.yml | 7 +++++++ signals/content/nlu_callback_scam_low_conf.yml | 7 +++++++ signals/content/nlu_callback_scam_medium_conf.yml | 7 +++++++ signals/content/nlu_credtheft_high_conf.yml | 8 ++++++++ signals/content/nlu_credtheft_low_conf.yml | 8 ++++++++ signals/content/nlu_credtheft_med_conf.yml | 8 ++++++++ signals/content/nlu_extortion_high_conf.yml | 8 ++++++++ signals/content/nlu_extortion_low_conf.yml | 8 ++++++++ signals/content/nlu_extortion_med_conf.yml | 8 ++++++++ signals/content/nlu_financial_entity.yml | 7 +++++++ signals/content/nlu_greeting_entity.yml | 7 +++++++ signals/content/nlu_invoice_high_conf.yml | 7 +++++++ signals/content/nlu_invoice_low_conf.yml | 7 +++++++ signals/content/nlu_invoice_medium_conf.yml | 7 +++++++ signals/content/nlu_job_scam_high_conf.yml | 7 +++++++ signals/content/nlu_job_scam_low_conf.yml | 7 +++++++ signals/content/nlu_job_scam_medium_conf.yml | 7 +++++++ signals/content/nlu_org_entity.yml | 7 +++++++ signals/content/nlu_payment_high_conf.yml | 7 +++++++ signals/content/nlu_payment_low_conf.yml | 7 +++++++ signals/content/nlu_payment_medium_conf.yml | 7 +++++++ signals/content/nlu_purchase_order_high_conf.yml | 7 +++++++ signals/content/nlu_purchase_order_low_conf.yml | 7 +++++++ signals/content/nlu_purchase_order_medium_conf.yml | 7 +++++++ signals/content/nlu_recipient_entity.yml | 7 +++++++ signals/content/nlu_request_entity.yml | 7 +++++++ signals/content/nlu_salutation_entity.yml | 7 +++++++ signals/content/nlu_sender_entity.yml | 7 +++++++ signals/content/nlu_steal_pii_high_conf.yml | 7 +++++++ signals/content/nlu_steal_pii_low_conf.yml | 7 +++++++ signals/content/nlu_steal_pii_medium_conf.yml | 7 +++++++ signals/content/nlu_urgency_entity.yml | 7 +++++++ 35 files changed, 251 insertions(+) create mode 100644 signals/content/nlu_bec_high_conf.yml create mode 100644 signals/content/nlu_bec_low_conf.yml create mode 100644 signals/content/nlu_bec_med_conf.yml create mode 100644 signals/content/nlu_callback_scam_high_conf.yml create mode 100644 signals/content/nlu_callback_scam_low_conf.yml create mode 100644 signals/content/nlu_callback_scam_medium_conf.yml create mode 100644 signals/content/nlu_credtheft_high_conf.yml create mode 100644 signals/content/nlu_credtheft_low_conf.yml create mode 100644 signals/content/nlu_credtheft_med_conf.yml create mode 100644 signals/content/nlu_extortion_high_conf.yml create mode 100644 signals/content/nlu_extortion_low_conf.yml create mode 100644 signals/content/nlu_extortion_med_conf.yml create mode 100644 signals/content/nlu_financial_entity.yml create mode 100644 signals/content/nlu_greeting_entity.yml create mode 100644 signals/content/nlu_invoice_high_conf.yml create mode 100644 signals/content/nlu_invoice_low_conf.yml create mode 100644 signals/content/nlu_invoice_medium_conf.yml create mode 100644 signals/content/nlu_job_scam_high_conf.yml create mode 100644 signals/content/nlu_job_scam_low_conf.yml create mode 100644 signals/content/nlu_job_scam_medium_conf.yml create mode 100644 signals/content/nlu_org_entity.yml create mode 100644 signals/content/nlu_payment_high_conf.yml create mode 100644 signals/content/nlu_payment_low_conf.yml create mode 100644 signals/content/nlu_payment_medium_conf.yml create mode 100644 signals/content/nlu_purchase_order_high_conf.yml create mode 100644 signals/content/nlu_purchase_order_low_conf.yml create mode 100644 signals/content/nlu_purchase_order_medium_conf.yml create mode 100644 signals/content/nlu_recipient_entity.yml create mode 100644 signals/content/nlu_request_entity.yml create mode 100644 signals/content/nlu_salutation_entity.yml create mode 100644 signals/content/nlu_sender_entity.yml create mode 100644 signals/content/nlu_steal_pii_high_conf.yml create mode 100644 signals/content/nlu_steal_pii_low_conf.yml create mode 100644 signals/content/nlu_steal_pii_medium_conf.yml create mode 100644 signals/content/nlu_urgency_entity.yml diff --git a/signals/content/nlu_bec_high_conf.yml b/signals/content/nlu_bec_high_conf.yml new file mode 100644 index 00000000000..20c5f37a036 --- /dev/null +++ b/signals/content/nlu_bec_high_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Business Email Compromise - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "bec" and .confidence == "high") +tags: + - "Natural Language Understanding" + - "Business Email Compromise" diff --git a/signals/content/nlu_bec_low_conf.yml b/signals/content/nlu_bec_low_conf.yml new file mode 100644 index 00000000000..c94c12c06f1 --- /dev/null +++ b/signals/content/nlu_bec_low_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Business Email Compromise - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "bec" and .confidence == "low") +tags: + - "Natural Language Understanding" + - "Business Email Compromise" diff --git a/signals/content/nlu_bec_med_conf.yml b/signals/content/nlu_bec_med_conf.yml new file mode 100644 index 00000000000..70521baffcd --- /dev/null +++ b/signals/content/nlu_bec_med_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Business Email Compromise - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "bec" and .confidence == "medium") +tags: + - "Natural Language Understanding" + - "Business Email Compromise" diff --git a/signals/content/nlu_callback_scam_high_conf.yml b/signals/content/nlu_callback_scam_high_conf.yml new file mode 100644 index 00000000000..1a27d1b09cc --- /dev/null +++ b/signals/content/nlu_callback_scam_high_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Callback Scam - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "callback_scam" and .confidence == "high") +tags: + - "Natural Language Understanding" + - "Callback Scam" \ No newline at end of file diff --git a/signals/content/nlu_callback_scam_low_conf.yml b/signals/content/nlu_callback_scam_low_conf.yml new file mode 100644 index 00000000000..05a69e83197 --- /dev/null +++ b/signals/content/nlu_callback_scam_low_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Callback Scam - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "callback_scam" and .confidence == "low") +tags: + - "Natural Language Understanding" + - "Callback Scam" \ No newline at end of file diff --git a/signals/content/nlu_callback_scam_medium_conf.yml b/signals/content/nlu_callback_scam_medium_conf.yml new file mode 100644 index 00000000000..1facc9db9fe --- /dev/null +++ b/signals/content/nlu_callback_scam_medium_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Callback Scam - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "callback_scam" and .confidence == "medium") +tags: + - "Natural Language Understanding" + - "Callback Scam" \ No newline at end of file diff --git a/signals/content/nlu_credtheft_high_conf.yml b/signals/content/nlu_credtheft_high_conf.yml new file mode 100644 index 00000000000..b137a29762f --- /dev/null +++ b/signals/content/nlu_credtheft_high_conf.yml @@ -0,0 +1,8 @@ +name: "NLU Intent: Credential Theft - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "cred_theft" and .confidence == "high") +severity: "medium" +tags: + - "Natural Language Understanding" + - "Credential Theft" diff --git a/signals/content/nlu_credtheft_low_conf.yml b/signals/content/nlu_credtheft_low_conf.yml new file mode 100644 index 00000000000..0c0beed8131 --- /dev/null +++ b/signals/content/nlu_credtheft_low_conf.yml @@ -0,0 +1,8 @@ +name: "NLU Intent: Credential Theft - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "cred_theft" and .confidence == "low") +severity: "medium" +tags: + - "Natural Language Understanding" + - "Credential Theft" diff --git a/signals/content/nlu_credtheft_med_conf.yml b/signals/content/nlu_credtheft_med_conf.yml new file mode 100644 index 00000000000..f0eb2ea3c37 --- /dev/null +++ b/signals/content/nlu_credtheft_med_conf.yml @@ -0,0 +1,8 @@ +name: "NLU Intent: Credential Theft - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "cred_theft" and .confidence == "medium") +severity: "medium" +tags: + - "Natural Language Understanding" + - "Credential Theft" diff --git a/signals/content/nlu_extortion_high_conf.yml b/signals/content/nlu_extortion_high_conf.yml new file mode 100644 index 00000000000..1b78bd3c20d --- /dev/null +++ b/signals/content/nlu_extortion_high_conf.yml @@ -0,0 +1,8 @@ +name: "NLU Intent: Extortion - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "extortion" and .confidence == "high") +severity: "medium" +tags: + - "Natural Language Understanding" + - "Extortion" diff --git a/signals/content/nlu_extortion_low_conf.yml b/signals/content/nlu_extortion_low_conf.yml new file mode 100644 index 00000000000..918a8dc74ac --- /dev/null +++ b/signals/content/nlu_extortion_low_conf.yml @@ -0,0 +1,8 @@ +name: "NLU Intent: Extortion - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "extortion" and .confidence == "low") +severity: "medium" +tags: + - "Natural Language Understanding" + - "Extortion" diff --git a/signals/content/nlu_extortion_med_conf.yml b/signals/content/nlu_extortion_med_conf.yml new file mode 100644 index 00000000000..32f0355e5e7 --- /dev/null +++ b/signals/content/nlu_extortion_med_conf.yml @@ -0,0 +1,8 @@ +name: "NLU Intent: Extortion - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "extortion" and .confidence == "medium") +severity: "medium" +tags: + - "Natural Language Understanding" + - "Extortion" diff --git a/signals/content/nlu_financial_entity.yml b/signals/content/nlu_financial_entity.yml new file mode 100644 index 00000000000..0ba3bccd299 --- /dev/null +++ b/signals/content/nlu_financial_entity.yml @@ -0,0 +1,7 @@ +name: "NLU Entity: Financial" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "financial") +tags: + - "Natural Language Understanding" + \ No newline at end of file diff --git a/signals/content/nlu_greeting_entity.yml b/signals/content/nlu_greeting_entity.yml new file mode 100644 index 00000000000..d1d83eb3503 --- /dev/null +++ b/signals/content/nlu_greeting_entity.yml @@ -0,0 +1,7 @@ +name: "NLU Entity: Greeting" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "greeting") +tags: + - "Natural Language Understanding" + \ No newline at end of file diff --git a/signals/content/nlu_invoice_high_conf.yml b/signals/content/nlu_invoice_high_conf.yml new file mode 100644 index 00000000000..aa94fd0f933 --- /dev/null +++ b/signals/content/nlu_invoice_high_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Invoice - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "invoice" and .confidence == "high") +tags: + - "Natural Language Understanding" + - "Invoice" \ No newline at end of file diff --git a/signals/content/nlu_invoice_low_conf.yml b/signals/content/nlu_invoice_low_conf.yml new file mode 100644 index 00000000000..af0a17e126c --- /dev/null +++ b/signals/content/nlu_invoice_low_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Invoice - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "invoice" and .confidence == "low") +tags: + - "Natural Language Understanding" + - "Invoice" \ No newline at end of file diff --git a/signals/content/nlu_invoice_medium_conf.yml b/signals/content/nlu_invoice_medium_conf.yml new file mode 100644 index 00000000000..85ff75d1955 --- /dev/null +++ b/signals/content/nlu_invoice_medium_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Invoice - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "invoice" and .confidence == "medium") +tags: + - "Natural Language Understanding" + - "Invoice" \ No newline at end of file diff --git a/signals/content/nlu_job_scam_high_conf.yml b/signals/content/nlu_job_scam_high_conf.yml new file mode 100644 index 00000000000..1236e7ef5f6 --- /dev/null +++ b/signals/content/nlu_job_scam_high_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Job Scam - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "job_scam" and .confidence == "high") +tags: + - "Natural Language Understanding" + - "Job Scam" \ No newline at end of file diff --git a/signals/content/nlu_job_scam_low_conf.yml b/signals/content/nlu_job_scam_low_conf.yml new file mode 100644 index 00000000000..67b0143c933 --- /dev/null +++ b/signals/content/nlu_job_scam_low_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Job Scam - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "job_scam" and .confidence == "low") +tags: + - "Natural Language Understanding" + - "Job Scam" \ No newline at end of file diff --git a/signals/content/nlu_job_scam_medium_conf.yml b/signals/content/nlu_job_scam_medium_conf.yml new file mode 100644 index 00000000000..082c1fd347b --- /dev/null +++ b/signals/content/nlu_job_scam_medium_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Job Scam - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "job_scam" and .confidence == "medium") +tags: + - "Natural Language Understanding" + - "Job Scam" \ No newline at end of file diff --git a/signals/content/nlu_org_entity.yml b/signals/content/nlu_org_entity.yml new file mode 100644 index 00000000000..d29cde883ab --- /dev/null +++ b/signals/content/nlu_org_entity.yml @@ -0,0 +1,7 @@ +name: "NLU Entity: Organization" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "org") +tags: + - "Natural Language Understanding" + \ No newline at end of file diff --git a/signals/content/nlu_payment_high_conf.yml b/signals/content/nlu_payment_high_conf.yml new file mode 100644 index 00000000000..eed7bd8b0e5 --- /dev/null +++ b/signals/content/nlu_payment_high_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Payment - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "payment" and .confidence == "high") +tags: + - "Natural Language Understanding" + - "Payment" \ No newline at end of file diff --git a/signals/content/nlu_payment_low_conf.yml b/signals/content/nlu_payment_low_conf.yml new file mode 100644 index 00000000000..7d964112b32 --- /dev/null +++ b/signals/content/nlu_payment_low_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Payment - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "payment" and .confidence == "low") +tags: + - "Natural Language Understanding" + - "Payment" \ No newline at end of file diff --git a/signals/content/nlu_payment_medium_conf.yml b/signals/content/nlu_payment_medium_conf.yml new file mode 100644 index 00000000000..12dcc38846b --- /dev/null +++ b/signals/content/nlu_payment_medium_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Payment - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "payment" and .confidence == "medium") +tags: + - "Natural Language Understanding" + - "Payment" \ No newline at end of file diff --git a/signals/content/nlu_purchase_order_high_conf.yml b/signals/content/nlu_purchase_order_high_conf.yml new file mode 100644 index 00000000000..35df25f3274 --- /dev/null +++ b/signals/content/nlu_purchase_order_high_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Purchase Order - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "purchase_order" and .confidence == "high") +tags: + - "Natural Language Understanding" + - "Purchase Order" \ No newline at end of file diff --git a/signals/content/nlu_purchase_order_low_conf.yml b/signals/content/nlu_purchase_order_low_conf.yml new file mode 100644 index 00000000000..6b5786bd0bd --- /dev/null +++ b/signals/content/nlu_purchase_order_low_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Purchase Order - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "purchase_order" and .confidence == "low") +tags: + - "Natural Language Understanding" + - "Purchase Order" \ No newline at end of file diff --git a/signals/content/nlu_purchase_order_medium_conf.yml b/signals/content/nlu_purchase_order_medium_conf.yml new file mode 100644 index 00000000000..9866c11ce64 --- /dev/null +++ b/signals/content/nlu_purchase_order_medium_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Tag: Purchase Order - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).tags, .name == "purchase_order" and .confidence == "medium") +tags: + - "Natural Language Understanding" + - "Purchase Order" \ No newline at end of file diff --git a/signals/content/nlu_recipient_entity.yml b/signals/content/nlu_recipient_entity.yml new file mode 100644 index 00000000000..47963cc3921 --- /dev/null +++ b/signals/content/nlu_recipient_entity.yml @@ -0,0 +1,7 @@ +name: "NLU Entity: Recipient" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "recipient") +tags: + - "Natural Language Understanding" + \ No newline at end of file diff --git a/signals/content/nlu_request_entity.yml b/signals/content/nlu_request_entity.yml new file mode 100644 index 00000000000..168d1d38d6f --- /dev/null +++ b/signals/content/nlu_request_entity.yml @@ -0,0 +1,7 @@ +name: "NLU Entity: Request" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "request") +tags: + - "Natural Language Understanding" + \ No newline at end of file diff --git a/signals/content/nlu_salutation_entity.yml b/signals/content/nlu_salutation_entity.yml new file mode 100644 index 00000000000..c22ba076704 --- /dev/null +++ b/signals/content/nlu_salutation_entity.yml @@ -0,0 +1,7 @@ +name: "NLU Entity: Salutation" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "salutation") +tags: + - "Natural Language Understanding" + \ No newline at end of file diff --git a/signals/content/nlu_sender_entity.yml b/signals/content/nlu_sender_entity.yml new file mode 100644 index 00000000000..da32e4e3e4d --- /dev/null +++ b/signals/content/nlu_sender_entity.yml @@ -0,0 +1,7 @@ +name: "NLU Entity: Sender" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "sender") +tags: + - "Natural Language Understanding" + \ No newline at end of file diff --git a/signals/content/nlu_steal_pii_high_conf.yml b/signals/content/nlu_steal_pii_high_conf.yml new file mode 100644 index 00000000000..0bd6937019b --- /dev/null +++ b/signals/content/nlu_steal_pii_high_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Steal PII - High Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "steal_pii" and .confidence == "high") +tags: + - "Natural Language Understanding" + - "Steal PII" \ No newline at end of file diff --git a/signals/content/nlu_steal_pii_low_conf.yml b/signals/content/nlu_steal_pii_low_conf.yml new file mode 100644 index 00000000000..a90fad957db --- /dev/null +++ b/signals/content/nlu_steal_pii_low_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Steal PII - Low Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "steal_pii" and .confidence == "low") +tags: + - "Natural Language Understanding" + - "Steal PII" \ No newline at end of file diff --git a/signals/content/nlu_steal_pii_medium_conf.yml b/signals/content/nlu_steal_pii_medium_conf.yml new file mode 100644 index 00000000000..e12c0c02b31 --- /dev/null +++ b/signals/content/nlu_steal_pii_medium_conf.yml @@ -0,0 +1,7 @@ +name: "NLU Intent: Steal PII - Medium Confidence" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "steal_pii" and .confidence == "medium") +tags: + - "Natural Language Understanding" + - "Steal PII" \ No newline at end of file diff --git a/signals/content/nlu_urgency_entity.yml b/signals/content/nlu_urgency_entity.yml new file mode 100644 index 00000000000..a13b76426b8 --- /dev/null +++ b/signals/content/nlu_urgency_entity.yml @@ -0,0 +1,7 @@ +name: "NLU Entity: Urgency" +type: "query" +source: | + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "urgency") +tags: + - "Natural Language Understanding" + \ No newline at end of file