How rohitguddin/graminai works
GraminAI is a scaffold for a multilingual business-feasibility advisory product. The documented user journey runs from business inputs through four independent analyses—market, geographic, competition, and financial—then opportunity synthesis, SWOT, and a consolidated report. The API and workflow structure, agent contexts, schemas, provider adapters, calculator, and scheme repositories are represented; the README describes several capabilities as planned. Provider calls and persistence wiring are not established by the sampled source, so uncertain connections are omitted.
Main entry points: graph.py Workflow Graph · openrouter_llm.py LLM Adapter · agent.py Financial Agent · useFeasibility.ts Feasibility Hook
Components 23
User Experience
- Web App
apps/web/app/page.tsx - Feasibility Hook
apps/web/hooks/useFeasibility.ts - Feasibility Report
apps/api/app/schemas/report.py
API Workflow
- FastAPI App
apps/api/app/main.py - Feasibility Route
apps/api/app/api/routes/feasibility.py - Feasibility Service
apps/api/app/services/feasibility.py - Workflow Graph
apps/api/app/workflows/graph.py
Feasibility Analysis
- Market Agent
apps/api/app/agents/market/agent.py - Geographic Agent
apps/api/app/agents/geographic/agent.py - Competition Agent
apps/api/app/agents/competition/agent.py - Financial Agent
apps/api/app/agents/financial/agent.py - Opportunity Agent
apps/api/app/agents/opportunity/agent.py - SWOT Agent
apps/api/app/agents/swot/agent.py - Report Agent
apps/api/app/agents/report/agent.py - Financial Calculator
apps/api/app/calculators/financial.py
Data Integrations
- Market Data Provider
apps/api/app/providers/implementations/datagov_market.py - Geographic Provider
apps/api/app/providers/implementations/google_maps_geographic.py - Places Provider
apps/api/app/providers/implementations/google_places_competition.py - Government Schemes
apps/api/app/providers/implementations/government_schemes.py - LLM Adapter
apps/api/app/providers/implementations/openrouter_llm.py
Schemes and State
- Scheme Repository
apps/api/app/repositories/schemes.py - Scheme Database
apps/api/app/database/models.py
Other components
- Entrepreneur
Connections 28
- Entrepreneur → Web App: enters inputs
- Web App → Feasibility Hook: submits request
- Feasibility Hook → FastAPI App: posts request
- FastAPI App → Feasibility Route: dispatches route
- Feasibility Route → Feasibility Service: handles analysis
- Feasibility Service → Workflow Graph: starts workflow
- Workflow Graph → Market Agent: runs independently
- Workflow Graph → Geographic Agent: runs independently
- Workflow Graph → Competition Agent: runs independently
- Workflow Graph → Financial Agent: runs independently
- Workflow Graph → Opportunity Agent: then synthesizes
- Workflow Graph → SWOT Agent: then synthesizes
- Workflow Graph → Report Agent: generates report
- Financial Agent → Financial Calculator: calculates figures
- Report Agent → Feasibility Report: produces report
- Feasibility Hook → Feasibility Report: receives response
- Market Agent → Market Data Provider
- Geographic Agent → Geographic Provider
- Competition Agent → Places Provider
- Financial Agent → Government Schemes
- Government Schemes → Scheme Repository
- Scheme Repository → Scheme Database
- Market Agent → LLM Adapter
- Geographic Agent → LLM Adapter
- Competition Agent → LLM Adapter
- Financial Agent → LLM Adapter
- Opportunity Agent → LLM Adapter
- SWOT Agent → LLM Adapter