Admin Panel
Manage the news pipeline and system operations
Pipeline Controls
Fetch news articles and run AI sentiment analysis
Download new articles without running AI analysis Run AI analysis on articles without summaries
Download new articles without running AI analysis Run AI analysis on articles without summaries
Automation Status
Loading scheduler status...
Email Digest
Send full digest with charts and summaries
Send test email to verify functionality
Test SMTP connection to Mailgun
Data Export
Download Daily Scores (CSV)
Today's group and commodity sentiment scores
Download Summaries (JSON)
Latest 100 AI sentiment analyses in JSON format
System Information
OpenAI API
ConfiguredDatabase
ConnectedRecent Operations
No recent operations
Setup Instructions
Initial Setup
- Ensure the
OPENAI_API_KEY
environment variable is set - Run the seeding script:
python scripts/seed_basics.py
- Use the "Run Complete Pipeline" button to fetch initial articles
Pipeline Schedule
The pipeline can be run manually using the controls above or scheduled to run automatically:
- Daily: Run complete pipeline once per day for fresh news
- Hourly: Fetch news only for real-time updates
API Endpoints
Endpoint | Method | Description |
---|---|---|
/health |
GET | Health check endpoint |
/admin/run_daily |
POST | Run complete pipeline |
/admin/fetch_news |
POST | Fetch news articles only |
/admin/analyze_sentiment |
POST | Run sentiment analysis only |
/admin/send_digest |
POST | Send daily email digest |
/admin/test_digest |
POST | Send test email digest |