No description
Automated daily report that analyzes all workflow logs and sends email summary at 7pm. NEW SCRIPT: daily_report.py - Analyzes last 24 hours of all workflow logs - Parses campaign and asset statistics - Extracts error messages - Sends comprehensive email report - Run via cron at 7pm daily FEATURES: ✓ Overall summary statistics across all workflows ✓ Per-workflow breakdown (A1→A2, A2→A3, A5→A6, B1→B2) ✓ Success rate calculation ✓ Campaign details with status (completed/partial/no_assets) ✓ Error log extraction ✓ Collapsible sections for campaign and error details ✓ Color-coded metrics (green=good, orange=warning, red=error) STATISTICS TRACKED: - Campaigns found/processed/completed/partial - Total assets processed/successful/failed - NOT APPROVED assets (A5→A6) - Skipped assets (approved items) - Success rate percentage - Error count and messages EMAIL TEMPLATE: daily_report - Blue theme (#1976d2) - Grid layout for statistics - Collapsible campaign details - Collapsible error logs (max 10 shown) - Professional dashboard-style formatting USAGE: python scripts/daily_report.py CRON SCHEDULE (7pm daily): 0 19 * * * cd ~/Python-Version && venv/bin/python scripts/daily_report.py >> logs/daily_report.log 2>&1 TESTED: ✓ Successfully parsed all 4 workflow logs ✓ Found 26 campaigns, 58 assets from last 24 hours ✓ Email sent successfully with all statistics ✓ Success rate: 48.3% (from test data) ✓ Error extraction working Changes: - NEW: scripts/daily_report.py (241 lines) - EDIT: shared/notifier.py (add daily_report template) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| Python-Version | ||
| src | ||
| .gitignore | ||
| 43984435_n1izyn3l_config.json | ||
| Box-config.json | ||
| campaign_response.json | ||
| check_folder_status.php | ||
| clean_workflow.php | ||
| config.example.json | ||
| config.php | ||
| config_v3.php | ||
| Content Scaling Flow V3.postman_collection.json | ||
| Content Scaling Flow.postman_collection_Oliver(New).json | ||
| Content Scaling Flow_Oliver.Postman_Collection.json | ||
| DAM_LOOKUPDOMAINS_RAW.json | ||
| debug_assets.php | ||
| debug_status.php | ||
| ECOMMERCE_ALLOWED_FIELDS.md | ||
| EXTRACTION_GUIDE.md | ||
| fetch_lookupdomains.php | ||
| HANDOFF_NEXT_SESSION.md | ||
| index.php | ||
| PROJECT_STATUS.md | ||
| PROJECT_STATUS_2025-10-24.md | ||
| PROJECT_STATUS_2025-10-28.md | ||
| PROJECT_STATUS_2025-10-29.md | ||
| PROJECT_STATUS_2025-10-30.md | ||
| PROJECT_STATUS_2025-11-03.md | ||
| PYTHON_AUTOMATION_PLAN.md | ||
| QUESTIONS_FOR_DAM_IT_TEAM.md | ||
| README.md | ||
| simple_test.php | ||
| test_asset_detail.php | ||
| test_creativex.php | ||
| test_direct_download.php | ||
| test_filename_parser.php | ||
| test_runner.php | ||
| test_search.php | ||
| test_upload.jpg | ||
| test_upload_standalone.php | ||
| UPLOAD_FROM_BOX_COMPLETE.md | ||
| UPLOAD_FROM_BOX_PHASE2_COMPLETE.md | ||
| UPLOAD_FROM_BOX_STATUS.md | ||
| UPLOAD_TROUBLESHOOTING.md | ||
| workflow.php | ||
| workflow_v3.php | ||
Ferrero OpenText Content Scaling Workflow
Complete automation system for Ferrero DAM content scaling workflows
Version: 2.0.0
Status: ✅ Production Ready
Last Updated: November 3, 2025
📚 START HERE
PROJECT_STATUS_2025-11-03.md ← Complete status report with everything you need to know!
🎯 What This System Does
Automates the complete content scaling workflow:
- A1→A2: Download Local Adaptation master assets → Box
- A2→A3: Upload agency files from Box → DAM
- B1→B2: Download Global Master assets → Box
- A5→A6: Handle rework assets
Features: V2 naming, 27-28 MVP metadata fields, Box metadata integration, automated status updates, email notifications, webhook integration.
✅ What's Working
- ✅ PHP web interface (4 workflows)
- ✅ Python automation (3 scripts)
- ✅ Box metadata integration (CreativeX)
- ✅ Full metadata preservation (JSONB)
- ✅ Email notifications (detailed)
- ✅ Log rotation (1 month)
- ✅ All tested and production-ready
🚀 Quick Start
PHP App:
http://localhost:8888/ferrero-opentext/workflow_v3.php
Python Scripts:
cd Python-Version
source venv/bin/activate
python scripts/test_connection.py
📖 Documentation
Essential Reading:
- PROJECT_STATUS_2025-11-03.md - Complete status (read this!)
- Python-Version/DEPLOYMENT.md - Production deployment
- Python-Version/README.md - Python automation guide
All workflows documented with screenshots and examples.
Repository: bitbucket.org:zlalani/ferrero-opentext.git
Latest Commit: b3fbb8b
Status: Production Ready ✅