How kvkrpm/business-intelligence-agent works
This is a Streamlit founder-focused BI agent that answers questions using live Monday.com Deals and Work Orders data. A user submits a question in the chat; the agent selects a rule-based analysis, fetches the relevant board data, computes metrics, and returns an answer with visible action traces. The product covers quarterly pipeline, closed revenue, win rate, data-quality reporting, and delivered-revenue execution insights. Edges reflect calls visible in excerpts or relationships explicitly documented in the README; the normalizer is present but no use of it is shown.
Main entry points: agent.py Question agent · monday_api.py Board data fetch · streamlit_app.py Streamlit chat · settings.py API and board settings
Components 12
User interface
- Streamlit chat
streamlit_app.py
Agent orchestration
- Question agent
app/agent/agent.py
Monday integration
- Board data fetch
app/tools/monday_api.py - API and board settings
app/config/settings.py
Business analytics
- Quarterly pipeline
app/tools/metrics.py - Closed revenue
app/tools/metrics.py - Win rate
app/tools/metrics.py - Data quality report
app/tools/metrics.py - Delivered revenue
app/tools/metrics.py - Normalization helpers
app/tools/normalizer.py
Other components
- Founder or executive
- Monday.com GraphQL API
Connections 11
- Founder or executive → Streamlit chat: asks question
streamlit_app.py - Streamlit chat → Question agent: runs query
streamlit_app.py - Question agent → Board data fetch: fetches boards
app/agent/agent.py - Board data fetch → Monday.com GraphQL API: queries boards
app/tools/monday_api.py - Question agent → API and board settings: reads board IDs
app/agent/agent.py - Board data fetch → API and board settings: reads API config
app/tools/monday_api.py - Question agent → Quarterly pipeline: computes pipeline
app/agent/agent.py - Question agent → Closed revenue: computes revenue
app/agent/agent.py - Question agent → Win rate: computes win rate
app/agent/agent.py - Question agent → Data quality report: checks data quality
app/agent/agent.py - Question agent → Delivered revenue: computes delivery
app/agent/agent.py