How jrdheeraj/razorgrowth-ai works
RazorGrowth AI turns merchant commerce data into debated, ranked growth opportunities and human-approved, auditable actions; it also supports an AI Buyer checkout. The principal flow is merchant sign-in, Razorpay TEST-data ingestion, radar and agent analysis, debate and recommendation, then approval-gated execution. The graph includes documented dashboard, marketing-agent, experiment, customer-intelligence, RAG, and checkout capabilities. Edges are limited to relationships shown in excerpts, the SOURCE INDEX, or README; unsampled wiring is omitted.
Main entry points: main.py HTTP API · App.tsx Growth workspace · orchestrator.py Agent orchestration · order.py Merchant commerce records
Components 27
Merchant experience
- Growth workspace
frontend/src/App.tsx - Growth Radar
frontend/src/pages/GrowthRadar.tsx - Agent dashboard
frontend/src/pages/AgentsPage.tsx - Marketing workstation
frontend/src/pages/MarketingAGIPage.tsx - Debate view
frontend/src/pages/DebatePage.tsx - Approval console
frontend/src/pages/ActionsPage.tsx - AI Buyer checkout
frontend/src/pages/Checkout.tsx
Commerce data
- Merchant commerce records
backend/app/models/order.py - Razorpay client
backend/app/integrations/razorpay.py - Commerce ingestion
backend/app/services/razorpay_ingestion.py - Payment webhooks
backend/app/api/routes/webhooks.py - Razorpay TEST payments
backend/app/integrations/razorpay.py
Growth intelligence
- Growth signals
backend/app/services/radar.py - RAG context
backend/app/services/rag_context.py - Agentic retrieval
backend/app/ai/rag/pipeline.py - LLM providers
backend/app/ai/llm/provider.py - Specialist agents
backend/app/agents
Debate and action
- Growth manager
backend/app/agents/manager_agent.py - Agent orchestration
backend/app/agents/orchestrator.py - Structured debate
backend/app/services/agent_debate_service.py - Opportunity ranking
backend/app/services/opportunity_service.py - Action approval and execution
backend/app/services/action_service.py - Audit trail
backend/app/models/audit_event.py
Runtime and integrations
- HTTP API
backend/app/main.py - Tenant security
backend/app/core/security.py
Other components
- Merchant
- LLM service
Connections 38
- Merchant → Growth workspace: uses
frontend/src/App.tsx - Growth workspace → Growth Radar: routes to
frontend/src/App.tsx - Growth workspace → Agent dashboard: routes to
frontend/src/App.tsx - Growth workspace → Marketing workstation: routes to
frontend/src/App.tsx - Growth workspace → Debate view: routes to
frontend/src/App.tsx - Growth workspace → Approval console: routes to
frontend/src/App.tsx - Growth workspace → AI Buyer checkout: routes to
frontend/src/App.tsx - Growth Radar → HTTP API: requests data
- Agent dashboard → HTTP API: fetches runs
frontend/src/pages/AgentsPage.tsx - Marketing workstation → HTTP API: requests analysis
- Debate view → HTTP API: requests debate
- Approval console → HTTP API: submits decisions
- AI Buyer checkout → HTTP API: starts checkout
- HTTP API → Tenant security: applies security
backend/app/main.py - HTTP API → Commerce ingestion: routes requests
- HTTP API → Growth signals: routes requests
- HTTP API → Agent orchestration: routes analysis
- Razorpay client → Commerce ingestion: fetches commerce data
backend/app/services/razorpay_ingestion.py - Commerce ingestion → Merchant commerce records: upserts records
backend/app/services/razorpay_ingestion.py - Merchant commerce records → Growth signals: supplies business data
backend/app/services/radar.py - Merchant commerce records → RAG context: supplies merchant context
backend/app/services/rag_context.py - RAG context → Agentic retrieval: uses retrieval
backend/app/services/rag_context.py - Agentic retrieval → LLM providers: selects tools
backend/app/ai/rag/pipeline.py - LLM providers → LLM service: calls provider
- Agent orchestration → RAG context: builds context
backend/app/agents/orchestrator.py - Agent orchestration → Specialist agents: dispatches agents
backend/app/agents/orchestrator.py - Agent orchestration → Structured debate: starts debate
backend/app/agents/orchestrator.py - Growth manager → Growth signals: detects signals
backend/app/agents/manager_agent.py - Growth manager → Opportunity ranking: loads opportunities
backend/app/agents/manager_agent.py - Growth manager → Structured debate: coordinates findings
backend/app/agents/manager_agent.py - Structured debate → Opportunity ranking: synthesizes recommendation
- Opportunity ranking → Action approval and execution: proposes action
- Action approval and execution → Audit trail: records actions
- Merchant → Action approval and execution: approves or rejects
- Payment webhooks → Razorpay client: verifies signature
backend/app/api/routes/webhooks.py - Payment webhooks → Merchant commerce records: syncs payment state
backend/app/api/routes/webhooks.py - AI Buyer checkout → Razorpay TEST payments: initiates purchase
- Razorpay TEST payments → Razorpay client: creates TEST payment
backend/app/integrations/razorpay.py