How sanjnashenoy05-glitch/enterprise-opportunity-agent works
This Streamlit application turns a company name into an enterprise opportunity report: it retrieves recent news, asks an AI model for strategic analysis, adds available revenue trends, and assembles a downloadable PDF that can also be emailed. News, AI analysis, financial retrieval, charting, report generation, and delivery are distinct runtime stages. The sampled app.py shows how these stages are orchestrated; unsampled infrastructure is not included, and external-service links reflect the visible API calls or configuration.
Main entry points: app.py Streamlit workflow · fetchnews.py News retrieval · analyze_deepseek.py AI opportunity analysis · financial_data.py Revenue data retrieval
Components 12
User workflow
- Streamlit workflow
app.py
News and analysis
- News retrieval
fetchnews.py - AI opportunity analysis
analyze_deepseek.py
Financial performance
- Revenue data retrieval
financial_data.py - Revenue charts
financial_data.py
Report delivery
- PDF report generation
generate_pdf.py - Email delivery
app.py
Other components
- Company analyst
- NewsAPI
- OpenRouter model API
- Alpha Vantage
- Gmail SMTP
Connections 12
- Company analyst → Streamlit workflow: enters company
app.py - Streamlit workflow → News retrieval: fetches news
app.py - News retrieval → NewsAPI: requests articles
fetchnews.py - Streamlit workflow → AI opportunity analysis: analyzes articles
app.py - AI opportunity analysis → OpenRouter model API: requests analysis
analyze_deepseek.py - Streamlit workflow → Revenue data retrieval: fetches revenue
app.py - Revenue data retrieval → Alpha Vantage: requests statements
financial_data.py - Streamlit workflow → Revenue charts: creates graphs
app.py - Streamlit workflow → PDF report generation: builds report
app.py - Streamlit workflow → Email delivery: sends report
app.py - Email delivery → Gmail SMTP: sends message
app.py - Streamlit workflow → Company analyst: offers PDF download
app.py