Day 3 — Data Storage and Basic Reporting_Updated

Day 3 — Data Storage and Basic Reporting_Updated
This commit is contained in:
2025-10-09 06:51:43 +00:00
parent f8287a147f
commit 660a0ee75a

View File

@@ -1,13 +1,13 @@
Day 3 — Data Storage and Basic Reporting
## 🎯 Goal ## 🎯 Goal
Persist the processed data for historical analysis and send a **daily summary report** to stakeholders. Persist processed data and send a **daily summary report** to stakeholders.
--- ---
## 🧩 Tasks ## 🧩 Tasks
### 1. Set Up a Data Destination ### 1. Set Up Data Destination
- Create a **Google Sheet** or **Database Table**. - Create a **Google Sheet** or **Database Table**:
- Define columns such as:
Date | ProductID | TotalRevenue | UnitsSold | AvgSentimentScore Date | ProductID | TotalRevenue | UnitsSold | AvgSentimentScore
yaml yaml
@@ -15,17 +15,16 @@ Copy code
--- ---
### 2. Store the Processed Data ### 2. Store Processed Data
- Add a **Google Sheets Node** after the Python node. - Add a **Google Sheets Node** after Python node.
- Authenticate your Google account. - Authenticate Google account.
- Configure it to **Append** new rows. - Configure to **Append** new rows.
- Map each field from the Python output to the corresponding columns. - Map fields from Python output to sheet columns.
--- ---
### 3. Craft the Summary Report ### 3. Craft Summary Report
- Add a **Set Node** to create a short summary message. - Add a **Set Node** to create a summary message:
- Example:
Daily Report: Top product by revenue was {{ $json.product_name }} with ${{ $json.total_revenue }} in sales. Daily Report: Top product by revenue was {{ $json.product_name }} with ${{ $json.total_revenue }} in sales.
yaml yaml
@@ -33,14 +32,18 @@ Copy code
--- ---
### 4. Send the Report ### 4. Send Report
- Add a **Slack** or **Email Node**. - Add **Slack** or **Email Node**.
- Send the summary to: - Send message to the appropriate channel/email list.
- A Slack channel (e.g., #daily-sales-reports), or
- A mailing list for stakeholders.
--- ---
## ✅ Deliverable ## ✅ Deliverable
- The workflow appends daily data to a Google Sheet. - Daily analysis appended to **Google Sheet**.
- A formatted summary is sent automatically to Slack or email. - Formatted summary sent to Slack/email automatically.
---
## 💡 Solution
- Historical data now stored.
- Stakeholders receive a daily summary without manual effort.