✅ Dataset swapped: TheLook → Hosted App Usage
✅ Schema updated: 27 tables
✅ Training data updated: 434 Q-SQL pairs
✅ Agent routing updated: "hosted-app-usage:" prefix
✅ Tasks updated: User engagement & question volume
✅ ALL alert features preserved: Hours, thresholds, anomaly detection
- main.py - Updated with hosted-app-usage agent
- schema.json - 27 tables from your hosted app
- training_data.csv - 434 Q-SQL pairs
- tasks.yaml - Production config (hourly/daily/weekly)
- tasks_test.yaml - Test config (5-10 seconds)
- README.md - Complete documentation
- requirements.txt - Python dependencies
- extract_schema.py - Schema extractor (if you need to re-extract)
- setup_check.py - Setup verification
- MIGRATION_SUMMARY.md - What changed summary
❌ curiosity_agent.py - Replaced by main.py
❌ Old training data CSVs - Replaced
# 1. Download all files above
# 2. In your terminal:
cd curiosity_agent
source venv/bin/activate
# 3. For testing (5-10 second intervals):
cp tasks_test.yaml tasks.yaml
# 4. Run it:
python main.py📋 [STRUCTURED: USER_ENGAGEMENT] hosted-app-usage: What is user engagement...
🔍 Calling Vanna API...
============================================================
✅ VANNA RESULT [STRUCTURED: user_engagement]
Question: What is user engagement for the hosted app...
Result:
[Vanna's response about user engagement metrics]
============================================================
🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔
📢 ALERT: USER_ENGAGEMENT
Type: structured
Reason: 🚨 ANOMALY DETECTED (HIGH): Engagement dropped 15%...
🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔🔔
Configure in your .env file (copy from .env.example):
OPENAI_API_KEY=your-openai-api-key-here
VANNA_API_KEY=your-vanna-api-key-here
VANNA_USER_EMAIL=your-email@example.com
VANNA_AGENT_ID=hosted-app-usageRun this to verify setup:
python setup_check.pyShould show:
✅ BigQuery schema: schema.json
✅ Training data CSV: training_data.csv
✅ Environment variable: OPENAI_API_KEY
✅ Main monitoring agent: main.py
Everything is documented in README.md including:
- Configuration guide
- Alert modes
- Threshold types
- Troubleshooting
- Examples
- Test with
tasks_test.yaml(5-10 sec intervals) - Verify Vanna responses look correct
- Check alerts are triggering properly
- Switch to
tasks.yamlfor production (hourly/daily) - Later: Add Slack integration for alerts
🚀 Ready to go!