How bininfotech0/r2wai works
R2WAI is a tenant-scoped platform for connecting external systems, creating and configuring AI agents, testing and publishing them, and monitoring usage. The documented journey is Connect → Create Agent → Configure → Test → Publish → Monitor. The React client fronts a .NET API; application features represent the domain capabilities, while infrastructure persists and serves them. The graph preserves the major documented stages and sampled domain areas. Some controller-to-feature and runtime wiring is not shown, so those links are omitted rather than inferred.
Main entry points: AssistantsController.cs Product API · GetAssistantsQuery.cs Agent management · Chat Conversations · IRepository.cs Repository contract
Components 19
User experience
- Web client
src/R2WAI.Client/src/main.tsx
API and identity
- Authentication
src/R2WAI.Api/Controllers/AuthController.cs - Product API
src/R2WAI.Api/Controllers/AssistantsController.cs
Agent capabilities
- External connections
src/R2WAI.Application/Features/Integrations/Queries/GetIntegrationsQueryHandler.cs - Agent management
src/R2WAI.Application/Features/Assistants/Queries/GetAssistantsQuery.cs - Tools and capabilities
src/R2WAI.Domain/Entities/ToolDefinition.cs - Knowledge bases
src/R2WAI.Application/Features/KnowledgeBases - Document processing
src/R2WAI.Application/Features/Documents - Conversations
src/R2WAI.Application/Features/Chat - Message state
src/R2WAI.Domain/Entities/Message.cs - Chatbot channels
src/R2WAI.Application/Features/Chatbots
Automation
- Workflow authoring
src/R2WAI.Domain/Entities/Workflow.cs - Workflow execution
src/R2WAI.Api/Workflows/StepActivityFactory.cs - Approval handling
src/R2WAI.Infrastructure/Services/ApprovalService.cs - Usage metrics
src/R2WAI.Application/Features/Operations/Queries/GetMetricsQueryHandler.cs
Platform data
- Tenant user
src/R2WAI.Domain/Entities/User.cs - Repository contract
src/R2WAI.Domain/Interfaces/IRepository.cs - Application database
src/R2WAI.Infrastructure/Persistence/ApplicationDbContext.cs
Other components
- Platform user
Connections 19
- Platform user → Web client: uses
- Web client → Product API: requests
- Platform user → Authentication: signs in
- Authentication → Tenant user: loads and updates
src/R2WAI.Api/Controllers/AuthController.cs - Product API → External connections: connects
- Product API → Agent management: creates agent
- Agent management → Tools and capabilities: configures tools
- Agent management → Knowledge bases: configures knowledge
- Document processing → Knowledge bases: adds sources
- Platform user → Conversations: chats
- Conversations → Message state: records messages
- Chatbot channels → Conversations: offers channel
- Workflow authoring → Workflow execution: executes
- Workflow execution → Approval handling: requests approval
- Platform user → Usage metrics: monitors
- Usage metrics → Repository contract: queries metrics
src/R2WAI.Application/Features/Operations/Queries/GetMetricsQueryHandler.cs - External connections → Repository contract: loads definitions
src/R2WAI.Application/Features/Integrations/Queries/GetIntegrationsQueryHandler.cs - Repository contract → Application database: persists entities
- Application database → Tenant user: stores
src/R2WAI.Infrastructure/Persistence/ApplicationDbContext.cs