feat: Add ROI Reporting Agent to treasure-boxes#430
Merged
toru-takahashi merged 2 commits intoApr 1, 2026
Conversation
Add comprehensive ROI reporting solution with AI agent and workflows.
## Summary
- Integrated ROI Reporting Agent into existing roi_reporting directory
- Added agent configuration files (system prompts, knowledge bases, tools)
- Added form interfaces for Overall Summary and Campaign Details reports
- Added main README to provide overview of complete solution
- Updated workflow README to link to agent
## Features
- Overall Summary Report: KPIs, trends, top performers
- Campaign Detail Report: Deep-dive analysis with revenue attribution
- Multilingual support (English/Japanese)
- Multi-currency support (USD/JPY)
- Autonomous SQL generation and execution
- Interactive Plotly visualizations
## Structure
roi_reporting/
├── README.md # Solution overview
├── agent/ # AI Reporting Agent (new)
│ ├── README.md
│ ├── system_prompt.md
│ ├── knowledge_base_*.md
│ ├── tools.yml
│ └── forms/
└── workflows/ # Data preparation (existing)
└── reporting_agent/
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…bility - Rename forms/ to form_interfaces/ directory - Convert form_schema (YAML) to form_json_schema (JSON string) - Convert ui_schema (YAML) to form_ui_schema (JSON string) - Add agent.yml and tdx.json for tdx push support - Update tools.yml with actual database name These changes align with the form interface format expected by tdx PR #2139 (form-interface-support branch). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
toru-takahashi
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a comprehensive ROI reporting solution to treasure-boxes by integrating the ROI Reporting Agent into the existing
roi_reportingdirectory structure.What's Added
1. ROI Reporting Agent (
engage-box/roi_reporting/agent/)An AI-powered agent that generates interactive ROI dashboards and reports:
2. Main README (
engage-box/roi_reporting/README.md)3. Form Interfaces
td_managed_overall_summary.yml- Overall Summary report formtd_managed_campaign_details.yml- Campaign Details report form4. Documentation
All documentation in English and Japanese:
system_prompt.md,system_prompt_JA.md)tools.yml)Features
✅ Multilingual support (English/Japanese)
✅ Multi-currency support (USD/JPY)
✅ Autonomous SQL generation and execution
✅ Interactive Plotly visualizations
✅ Revenue attribution analysis (direct/contributed)
✅ Graceful degradation when components fail
✅ Progressive disclosure with intermediate visualizations
Structure
Integration
Testing
Related
This follows the same pattern as the email-delivery-reporter agent (#XYZ), providing a consistent experience for users.
Next Steps
Once merged, users can:
🤖 Generated with Claude Code