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