From 0e0a6ce48087171c89af018de7669d5538102e9c Mon Sep 17 00:00:00 2001 From: tejaswini Date: Mon, 6 Oct 2025 06:43:59 +0000 Subject: [PATCH] =?UTF-8?q?Day=203=20=E2=80=94=20Data=20Storage=20and=20Ba?= =?UTF-8?q?sic=20Reporting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Day 3 — Data Storage and Basic Reporting --- Day_003_Data_Storage_and_Reporting.md | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Day_003_Data_Storage_and_Reporting.md diff --git a/Day_003_Data_Storage_and_Reporting.md b/Day_003_Data_Storage_and_Reporting.md new file mode 100644 index 0000000..e3bb272 --- /dev/null +++ b/Day_003_Data_Storage_and_Reporting.md @@ -0,0 +1,46 @@ +## 🎯 Goal +Persist the processed data for historical analysis 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: +Date | ProductID | TotalRevenue | UnitsSold | AvgSentimentScore + +yaml +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. + +--- + +### 3. Craft the Summary Report +- Add a **Set Node** to create a short summary message. +- Example: +Daily Report: Top product by revenue was {{ $json.product_name }} with ${{ $json.total_revenue }} in sales. + +yaml +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. + +--- + +## ✅ Deliverable +- The workflow appends daily data to a Google Sheet. +- A formatted summary is sent automatically to Slack or email.