From 519c2907e6370ecc22d31b3d37055bf5f89fe264 Mon Sep 17 00:00:00 2001 From: tejaswini Date: Mon, 6 Oct 2025 06:44:55 +0000 Subject: [PATCH] =?UTF-8?q?Day=204=20=E2=80=94=20Implementing=20Intelligen?= =?UTF-8?q?t=20Alerts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Day 4 — Implementing Intelligent Alerts --- Day_004_Intelligent_Alerts.md | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Day_004_Intelligent_Alerts.md diff --git a/Day_004_Intelligent_Alerts.md b/Day_004_Intelligent_Alerts.md new file mode 100644 index 0000000..6dea808 --- /dev/null +++ b/Day_004_Intelligent_Alerts.md @@ -0,0 +1,48 @@ +# 📅 Day 4 — Implementing Intelligent Alerts + +## 🎯 Goal +Make the workflow proactive — detect issues automatically and notify the right people. + +--- + +## 🧩 Tasks + +### 1. Branch the Workflow +- After the Python node, create two branches: + - One for **reporting/storage**. + - One for **alerts**. + +--- + +### 2. Define Alerting Logic +- Add an **If Node**. +- Configure the following conditions: + - `avg_sentiment_score < -0.4` + - `num_negative_reviews > 5` + +--- + +### 3. Craft Alert Message +- Add a **Set Node** on the “True” branch. +- Example: +🚨 URGENT: Negative Sentiment Spike! +Product: {{ $json.product_name }} +Avg Sentiment: {{ $json.avg_sentiment_score }} +Please investigate immediately. + +yaml +Copy code + +--- + +### 4. Configure Alert Notification +- Add a **Slack Node** connected to the alert. +- Send the alert to a **high-priority channel** like `#ecommerce-alerts`. +- Optionally, tag users (`@channel`) for instant visibility. + +--- + +## ✅ Deliverable +A proactive alerting system that: +- Detects negative sentiment or unusual review spikes. +- Sends urgent alerts directly to Slack. \ No newline at end of file