From 80b666c1d92a49991e49918a17981950d2d828f9 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Wed, 16 Aug 2023 14:44:15 -0400 Subject: [PATCH] Updating to use current_thread --- signals/content/nlu_bec_high_conf.yml | 2 +- signals/content/nlu_bec_low_conf.yml | 2 +- signals/content/nlu_bec_med_conf.yml | 2 +- signals/content/nlu_benign_high_conf.yml | 4 ++-- signals/content/nlu_benign_low_conf.yml | 4 ++-- signals/content/nlu_benign_medium_conf.yml | 2 +- signals/content/nlu_callback_scam_high_conf.yml | 2 +- signals/content/nlu_callback_scam_low_conf.yml | 2 +- signals/content/nlu_callback_scam_medium_conf.yml | 2 +- signals/content/nlu_credtheft_high_conf.yml | 2 +- signals/content/nlu_credtheft_low_conf.yml | 2 +- signals/content/nlu_credtheft_med_conf.yml | 2 +- signals/content/nlu_extortion_high_conf.yml | 2 +- signals/content/nlu_extortion_low_conf.yml | 2 +- signals/content/nlu_extortion_med_conf.yml | 2 +- signals/content/nlu_financial_entity.yml | 2 +- signals/content/nlu_greeting_entity.yml | 2 +- signals/content/nlu_invoice_high_conf.yml | 2 +- signals/content/nlu_invoice_low_conf.yml | 2 +- signals/content/nlu_invoice_medium_conf.yml | 2 +- signals/content/nlu_job_scam_high_conf.yml | 2 +- signals/content/nlu_job_scam_low_conf.yml | 2 +- signals/content/nlu_job_scam_medium_conf.yml | 2 +- signals/content/nlu_org_entity.yml | 2 +- signals/content/nlu_payment_high_conf.yml | 2 +- signals/content/nlu_payment_low_conf.yml | 2 +- signals/content/nlu_payment_medium_conf.yml | 2 +- signals/content/nlu_purchase_order_high_conf.yml | 2 +- signals/content/nlu_purchase_order_low_conf.yml | 2 +- signals/content/nlu_purchase_order_medium_conf.yml | 2 +- signals/content/nlu_recipient_entity.yml | 2 +- signals/content/nlu_request_entity.yml | 2 +- signals/content/nlu_salutation_entity.yml | 2 +- signals/content/nlu_sender_entity.yml | 2 +- signals/content/nlu_steal_pii_high_conf.yml | 2 +- signals/content/nlu_steal_pii_low_conf.yml | 2 +- signals/content/nlu_steal_pii_medium_conf.yml | 2 +- signals/content/nlu_urgency_entity.yml | 2 +- 38 files changed, 40 insertions(+), 40 deletions(-) diff --git a/signals/content/nlu_bec_high_conf.yml b/signals/content/nlu_bec_high_conf.yml index e5250b989fd..20c5f37a036 100644 --- a/signals/content/nlu_bec_high_conf.yml +++ b/signals/content/nlu_bec_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Business Email Compromise - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "bec" and .confidence == "high") + 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 index ef557484313..c94c12c06f1 100644 --- a/signals/content/nlu_bec_low_conf.yml +++ b/signals/content/nlu_bec_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Business Email Compromise - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "bec" and .confidence == "low") + 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 index 11f9a17acea..70521baffcd 100644 --- a/signals/content/nlu_bec_med_conf.yml +++ b/signals/content/nlu_bec_med_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Business Email Compromise - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "bec" and .confidence == "medium") + 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_benign_high_conf.yml b/signals/content/nlu_benign_high_conf.yml index f1932f4e869..323d0827e49 100644 --- a/signals/content/nlu_benign_high_conf.yml +++ b/signals/content/nlu_benign_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Benign - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "benign" and .confidence == "high") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "benign" and .confidence == "high") tags: - "Natural Language Understanding" - - "Benign" \ No newline at end of file + - "Benign" diff --git a/signals/content/nlu_benign_low_conf.yml b/signals/content/nlu_benign_low_conf.yml index b6577a595dc..aee483f54e3 100644 --- a/signals/content/nlu_benign_low_conf.yml +++ b/signals/content/nlu_benign_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Benign - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "benign" and .confidence == "low") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "benign" and .confidence == "low") tags: - "Natural Language Understanding" - - "Benign" \ No newline at end of file + - "Benign" diff --git a/signals/content/nlu_benign_medium_conf.yml b/signals/content/nlu_benign_medium_conf.yml index 1339a418fbf..a2ba84cb0ac 100644 --- a/signals/content/nlu_benign_medium_conf.yml +++ b/signals/content/nlu_benign_medium_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Benign - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "benign" and .confidence == "medium") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "benign" and .confidence == "medium") tags: - "Natural Language Understanding" - "Benign" \ No newline at end of file diff --git a/signals/content/nlu_callback_scam_high_conf.yml b/signals/content/nlu_callback_scam_high_conf.yml index 58c1c1b5c5f..1a27d1b09cc 100644 --- a/signals/content/nlu_callback_scam_high_conf.yml +++ b/signals/content/nlu_callback_scam_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Callback Scam - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "callback_scam" and .confidence == "high") + 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 index 93a955e10c6..05a69e83197 100644 --- a/signals/content/nlu_callback_scam_low_conf.yml +++ b/signals/content/nlu_callback_scam_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Callback Scam - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "callback_scam" and .confidence == "low") + 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 index d65303bba24..1facc9db9fe 100644 --- a/signals/content/nlu_callback_scam_medium_conf.yml +++ b/signals/content/nlu_callback_scam_medium_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Callback Scam - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "callback_scam" and .confidence == "medium") + 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 index 01f399f6bb2..b137a29762f 100644 --- a/signals/content/nlu_credtheft_high_conf.yml +++ b/signals/content/nlu_credtheft_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Credential Theft - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "cred_theft" and .confidence == "high") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "cred_theft" and .confidence == "high") severity: "medium" tags: - "Natural Language Understanding" diff --git a/signals/content/nlu_credtheft_low_conf.yml b/signals/content/nlu_credtheft_low_conf.yml index 6a98f7f3cad..0c0beed8131 100644 --- a/signals/content/nlu_credtheft_low_conf.yml +++ b/signals/content/nlu_credtheft_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Credential Theft - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "cred_theft" and .confidence == "low") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "cred_theft" and .confidence == "low") severity: "medium" tags: - "Natural Language Understanding" diff --git a/signals/content/nlu_credtheft_med_conf.yml b/signals/content/nlu_credtheft_med_conf.yml index 36394f1fb01..f0eb2ea3c37 100644 --- a/signals/content/nlu_credtheft_med_conf.yml +++ b/signals/content/nlu_credtheft_med_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Credential Theft - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "cred_theft" and .confidence == "medium") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "cred_theft" and .confidence == "medium") severity: "medium" tags: - "Natural Language Understanding" diff --git a/signals/content/nlu_extortion_high_conf.yml b/signals/content/nlu_extortion_high_conf.yml index 727db06d53f..1b78bd3c20d 100644 --- a/signals/content/nlu_extortion_high_conf.yml +++ b/signals/content/nlu_extortion_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Extortion - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "extortion" and .confidence == "high") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "extortion" and .confidence == "high") severity: "medium" tags: - "Natural Language Understanding" diff --git a/signals/content/nlu_extortion_low_conf.yml b/signals/content/nlu_extortion_low_conf.yml index 3fe4cfb4b0a..918a8dc74ac 100644 --- a/signals/content/nlu_extortion_low_conf.yml +++ b/signals/content/nlu_extortion_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Extortion - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "extortion" and .confidence == "low") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "extortion" and .confidence == "low") severity: "medium" tags: - "Natural Language Understanding" diff --git a/signals/content/nlu_extortion_med_conf.yml b/signals/content/nlu_extortion_med_conf.yml index 04525d046ec..32f0355e5e7 100644 --- a/signals/content/nlu_extortion_med_conf.yml +++ b/signals/content/nlu_extortion_med_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Extortion - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "extortion" and .confidence == "medium") + any(ml.nlu_classifier(body.current_thread.text).intents, .name == "extortion" and .confidence == "medium") severity: "medium" tags: - "Natural Language Understanding" diff --git a/signals/content/nlu_financial_entity.yml b/signals/content/nlu_financial_entity.yml index 2f8e23ea159..0ba3bccd299 100644 --- a/signals/content/nlu_financial_entity.yml +++ b/signals/content/nlu_financial_entity.yml @@ -1,7 +1,7 @@ name: "NLU Entity: Financial" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities, .name == "financial") + 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 index 958ccc83500..d1d83eb3503 100644 --- a/signals/content/nlu_greeting_entity.yml +++ b/signals/content/nlu_greeting_entity.yml @@ -1,7 +1,7 @@ name: "NLU Entity: Greeting" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities, .name == "greeting") + 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 index aa40143097e..aa94fd0f933 100644 --- a/signals/content/nlu_invoice_high_conf.yml +++ b/signals/content/nlu_invoice_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Invoice - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "invoice" and .confidence == "high") + 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 index 399aa1accb2..af0a17e126c 100644 --- a/signals/content/nlu_invoice_low_conf.yml +++ b/signals/content/nlu_invoice_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Invoice - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "invoice" and .confidence == "low") + 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 index 3b7989e2197..85ff75d1955 100644 --- a/signals/content/nlu_invoice_medium_conf.yml +++ b/signals/content/nlu_invoice_medium_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Invoice - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "invoice" and .confidence == "medium") + 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 index 2bb849a894a..1236e7ef5f6 100644 --- a/signals/content/nlu_job_scam_high_conf.yml +++ b/signals/content/nlu_job_scam_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Job Scam - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "job_scam" and .confidence == "high") + 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 index a8b92c6bcfa..67b0143c933 100644 --- a/signals/content/nlu_job_scam_low_conf.yml +++ b/signals/content/nlu_job_scam_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Job Scam - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "job_scam" and .confidence == "low") + 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 index 12a3d96c651..082c1fd347b 100644 --- a/signals/content/nlu_job_scam_medium_conf.yml +++ b/signals/content/nlu_job_scam_medium_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Job Scam - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "job_scam" and .confidence == "medium") + 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 index b7d4fe353e2..d29cde883ab 100644 --- a/signals/content/nlu_org_entity.yml +++ b/signals/content/nlu_org_entity.yml @@ -1,7 +1,7 @@ name: "NLU Entity: Organization" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities, .name == "org") + 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 index 1a9db85ebaa..eed7bd8b0e5 100644 --- a/signals/content/nlu_payment_high_conf.yml +++ b/signals/content/nlu_payment_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Payment - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "payment" and .confidence == "high") + 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 index 30fcda38905..7d964112b32 100644 --- a/signals/content/nlu_payment_low_conf.yml +++ b/signals/content/nlu_payment_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Payment - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "payment" and .confidence == "low") + 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 index abe761ac42b..12dcc38846b 100644 --- a/signals/content/nlu_payment_medium_conf.yml +++ b/signals/content/nlu_payment_medium_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Payment - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "payment" and .confidence == "medium") + 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 index f2b45c53bff..35df25f3274 100644 --- a/signals/content/nlu_purchase_order_high_conf.yml +++ b/signals/content/nlu_purchase_order_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Purchase Order - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "purchase_order" and .confidence == "high") + 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 index f7dcf9f927b..6b5786bd0bd 100644 --- a/signals/content/nlu_purchase_order_low_conf.yml +++ b/signals/content/nlu_purchase_order_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Purchase Order - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "purchase_order" and .confidence == "low") + 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 index 42b5000e585..9866c11ce64 100644 --- a/signals/content/nlu_purchase_order_medium_conf.yml +++ b/signals/content/nlu_purchase_order_medium_conf.yml @@ -1,7 +1,7 @@ name: "NLU Tag: Purchase Order - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).tags, .name == "purchase_order" and .confidence == "medium") + 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 index 07cf270b112..47963cc3921 100644 --- a/signals/content/nlu_recipient_entity.yml +++ b/signals/content/nlu_recipient_entity.yml @@ -1,7 +1,7 @@ name: "NLU Entity: Recipient" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities, .name == "recipient") + 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 index fe48deb9d25..168d1d38d6f 100644 --- a/signals/content/nlu_request_entity.yml +++ b/signals/content/nlu_request_entity.yml @@ -1,7 +1,7 @@ name: "NLU Entity: Request" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities, .name == "request") + 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 index 25c0b0f6877..c22ba076704 100644 --- a/signals/content/nlu_salutation_entity.yml +++ b/signals/content/nlu_salutation_entity.yml @@ -1,7 +1,7 @@ name: "NLU Entity: Salutation" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities, .name == "salutation") + 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 index 20e60dd3cbe..da32e4e3e4d 100644 --- a/signals/content/nlu_sender_entity.yml +++ b/signals/content/nlu_sender_entity.yml @@ -1,7 +1,7 @@ name: "NLU Entity: Sender" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities, .name == "sender") + 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 index 937403d1500..0bd6937019b 100644 --- a/signals/content/nlu_steal_pii_high_conf.yml +++ b/signals/content/nlu_steal_pii_high_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Steal PII - High Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "steal_pii" and .confidence == "high") + 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 index 8ad00ce92ca..a90fad957db 100644 --- a/signals/content/nlu_steal_pii_low_conf.yml +++ b/signals/content/nlu_steal_pii_low_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Steal PII - Low Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "steal_pii" and .confidence == "low") + 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 index 97a4b9ed95a..e12c0c02b31 100644 --- a/signals/content/nlu_steal_pii_medium_conf.yml +++ b/signals/content/nlu_steal_pii_medium_conf.yml @@ -1,7 +1,7 @@ name: "NLU Intent: Steal PII - Medium Confidence" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).intents, .name == "steal_pii" and .confidence == "medium") + 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 index af5130699e2..a13b76426b8 100644 --- a/signals/content/nlu_urgency_entity.yml +++ b/signals/content/nlu_urgency_entity.yml @@ -1,7 +1,7 @@ name: "NLU Entity: Urgency" type: "query" source: | - any(ml.nlu_classifier(coalesce(body.html.display_text, body.plain.raw)).entities, .name == "urgency") + any(ml.nlu_classifier(body.current_thread.text).entities, .name == "urgency") tags: - "Natural Language Understanding" \ No newline at end of file