No description
Find a file
DJP ba7b68a38d Add comprehensive 70-page workflow guide with Mermaid diagrams
Complete end-to-end documentation of Ferrero DAM asset production
system covering all workflows, tools, processes, and troubleshooting.

COMPLETE_WORKFLOW_GUIDE.md (3,438 lines, ~70 pages):

1. Executive Overview:
   - System purpose and benefits
   - Time savings metrics (2 hours → 30 seconds)
   - Error reduction (15-20% → <1%)
   - Stakeholder roles
   - High-level architecture Mermaid diagram

2. Complete Asset Lifecycle:
   - Phase 1-6 detailed walkthroughs
   - From brief to live asset
   - All workflow stages explained
   - Master flow, revision flow, global flow diagrams

3. Naming Convention Tool:
   - Why naming is CRITICAL for automation
   - V2.1 structure field-by-field
   - How to use the tool (step-by-step)
   - Real examples: wrong vs right filenames
   - What happens when naming fails

4. Python Automation Scripts:
   - All 6 scripts explained in detail
   - Cron schedule and why every 5 minutes
   - Shared modules (DAM client, Box client, Database, Parser, etc.)
   - Sequence diagrams for each workflow
   - Dependencies and data flow

5. Detailed Workflows with Mermaid Diagrams:
   - A1→A2: 15-step sequence diagram
   - A2→A3: 25-step sequence diagram
   - A5→A6: Rejection/rework cycle flowchart
   - B1→B2: Global masters flow
   - Each with database queries, email examples, error scenarios

6. CreativeX Integration:
   - Master vs derivative scores explained
   - PDF extraction workflow (LlamaExtract AI)
   - Database storage (3 statuses)
   - A2→A3 integration and fallbacks
   - Version tracking
   - Dual-source flow diagram

7. Database Architecture:
   - Entity Relationship Diagram (ERD)
   - 5 tables explained (master_assets, derivative_assets, creativex_scores, etc.)
   - JSONB usage for metadata
   - Backup strategy (daily + weekly)
   - Query examples for each table

8. Common Mistakes & Pitfalls (15+ scenarios):
   - Wrong field order (V1 vs V2.1)
   - Manual typing errors
   - Tracking ID typos
   - Wrong Box folder
   - Timing issues
   - CreativeX filename mismatches
   - Intentional shortcuts and why they fail
   - Process violations
   - Real examples with consequences

9. Monitoring & Health Checks:
   - Email notification guide (what each color means)
   - Daily report interpretation
   - Log file locations and commands
   - Health check procedures

10. Troubleshooting Guide:
    - Symptom-based troubleshooting
    - "File not processing" → 4-step checklist
    - "CreativeX score shows 0" → diagnosis
    - "Wrong metadata uploaded" → recovery
    - Emergency procedures (DB corruption, all workflows failing)

11. Reference Materials:
    - Glossary of terms
    - FAQ (10 common questions)
    - Box folder ID reference
    - Status code meanings
    - Quick command reference
    - Contact information and escalation path

12. Golden Rules:
    - For campaign managers (7 do's and don'ts)
    - For agencies (10 critical rules)
    - For approvers (4 best practices)
    - For operations (5 monitoring practices)

Mermaid Diagrams Included (8 diagrams):
1. System architecture overview (5 layers)
2. Complete asset lifecycle flow
3. A1→A2 sequence diagram (detailed)
4. A2→A3 sequence diagram (detailed)
5. Rejection/rework cycle flowchart
6. Global masters (B1→B2) flow
7. CreativeX dual-source architecture
8. Database ERD with relationships
9. Naming error cascade
10. Emergency recovery flowchart

Key Topics Covered:
 Why naming matters (automation dependency)
 All workflow stages (A1→A6, B1→B2)
 Tracking ID lifecycle and reuse
 CreativeX integration (master vs derivative)
 Asset type mapping (45 types)
 Common mistakes with real examples
 Error scenarios and recovery
 Monitoring and troubleshooting
 Complete reference materials

Target Audience:
- Campaign managers (understand workflow)
- Creative teams (know requirements)
- Agencies (follow processes correctly)
- Approvers (provide good feedback)
- Operations (monitor and troubleshoot)
- New team members (onboarding)
- Executives (high-level overview)

Document serves as:
- Training material for new users
- Reference guide for daily work
- Troubleshooting resource
- Process documentation
- System architecture reference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-14 13:50:53 -05:00
Python-Version Add comprehensive 70-page workflow guide with Mermaid diagrams 2025-11-14 13:50:53 -05:00
src Add Global campaign search methods and update debug to show both Local and Global 2025-11-03 12:25:28 -05:00
.gitignore Add automated PostgreSQL backup and restore system 2025-11-11 17:30:10 -05:00
43984435_n1izyn3l_config.json Implement proper Box JWT authentication with RSA signing 2025-10-28 14:07:52 -04:00
Box-config.json Implement proper Box JWT authentication with RSA signing 2025-10-28 14:07:52 -04:00
campaign_response.json Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
check_folder_status.php Add Global campaign search methods and update debug to show both Local and Global 2025-11-03 12:25:28 -05:00
clean_workflow.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
config.example.json Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
config.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
config_v3.php Fix status updates and enhance workflow with proper error handling 2025-10-23 16:43:09 -04:00
Content Scaling Flow V3.postman_collection.json Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
Content Scaling Flow.postman_collection_Oliver(New).json Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
Content Scaling Flow_Oliver.Postman_Collection.json Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
CREATIVEX_SUMMARY.md Move CreativeX configuration to environment variables 2025-11-11 16:22:32 -05:00
DAM_LOOKUPDOMAINS_RAW.json Add Upload from Box workflow - Phase 1 Complete 2025-10-29 15:47:30 -04:00
debug_assets.php Add debug tools: direct asset lookup and delete logging 2025-10-29 17:40:03 -04:00
debug_status.php Fix workflow V3: metadata display and download error handling 2025-10-17 15:13:01 -04:00
ECOMMERCE_ALLOWED_FIELDS.md Add Upload from Box workflow - Phase 1 Complete 2025-10-29 15:47:30 -04:00
EXTRACTION_GUIDE.md Add Global Campaign Reference extraction and storage for A1→A2 workflow 2025-11-04 10:19:50 -05:00
fetch_lookupdomains.php Add Upload from Box workflow - Phase 1 Complete 2025-10-29 15:47:30 -04:00
HANDOFF_NEXT_SESSION.md Add HANDOFF_NEXT_SESSION.md - Complete session handoff document 2025-11-04 12:30:36 -05:00
index.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
PROJECT_STATUS.md Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
PROJECT_STATUS_2025-10-24.md Add comprehensive project status report for session preservation 2025-10-24 12:21:37 -04:00
PROJECT_STATUS_2025-10-28.md Add comprehensive session report for October 28, 2025 2025-10-28 17:49:31 -04:00
PROJECT_STATUS_2025-10-29.md Add PROJECT_STATUS_2025-10-29.md - Complete session documentation 2025-10-29 15:12:46 -04:00
PROJECT_STATUS_2025-10-30.md Add PROJECT_STATUS_2025-10-30.md - Complete session summary 2025-10-30 14:47:02 -04:00
PROJECT_STATUS_2025-11-03.md Add PROJECT_STATUS_2025-11-03.md and update README - Complete session documentation 2025-11-03 15:13:59 -05:00
PYTHON_AUTOMATION_PLAN.md Add comprehensive Python automation plan 2025-10-30 16:20:33 -04:00
QUESTIONS_FOR_DAM_IT_TEAM.md Add questions document for DAM IT team re: metadata inheritance 2025-10-30 09:38:04 -04:00
README.md Add PROJECT_STATUS_2025-11-03.md and update README - Complete session documentation 2025-11-03 15:13:59 -05:00
simple_test.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
test_asset_detail.php Add download buttons to test page - downloads confirmed working! 2025-10-17 16:35:16 -04:00
test_creativex.php Fix CREATIVEX extraction - detect at category level not field level 2025-10-31 11:29:06 -04:00
test_direct_download.php Add download buttons to test page - downloads confirmed working! 2025-10-17 16:35:16 -04:00
test_filename_parser.php Add Upload from Box workflow - Phase 1 Complete 2025-10-29 15:47:30 -04:00
test_runner.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
test_search.php Fix workflow V3: metadata display and download error handling 2025-10-17 15:13:01 -04:00
test_upload.jpg Match AssetUploader to working standalone script approach 2025-10-28 08:48:58 -04:00
test_upload_standalone.php Simplify standalone test - accept token as argument + show token in UI 2025-10-28 08:39:25 -04:00
UPLOAD_FROM_BOX_COMPLETE.md Fix asset name to use clean filename without OMG Job and Tracking ID 2025-10-29 16:36:04 -04:00
UPLOAD_FROM_BOX_PHASE2_COMPLETE.md Add Phase 2 completion documentation 2025-10-29 15:56:46 -04:00
UPLOAD_FROM_BOX_STATUS.md Add Upload from Box workflow - Phase 1 Complete 2025-10-29 15:47:30 -04:00
UPLOAD_TROUBLESHOOTING.md Re-enable master asset fetching + Upload troubleshooting document 2025-10-24 11:24:39 -04:00
workflow.php Initial commit: Ferrero OpenText Content Scaling Application 2025-10-17 14:29:20 -04:00
workflow_v3.php Replace Debug View table with rich metadata display matching Download tab 2025-11-09 14:59:49 -05:00

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:

  1. A1→A2: Download Local Adaptation master assets → Box
  2. A2→A3: Upload agency files from Box → DAM
  3. B1→B2: Download Global Master assets → Box
  4. 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:

  1. PROJECT_STATUS_2025-11-03.md - Complete status (read this!)
  2. Python-Version/DEPLOYMENT.md - Production deployment
  3. 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