How zainbaig313/ai-agent-dotnet-and-angular-project works
Banking AI Assistant is a full-stack banking dashboard and conversational assistant. A customer selects a profile to view account and transaction information, or submits a question; Angular services call the ASP.NET API, whose agent can query customer banking data and use OpenRouter tool-calling to produce a natural-language answer. The API also exposes customer, account, and transaction endpoints backed by SQL Server. The graph preserves these domain stages and the UI/API/persistence layers. Controller and dashboard internals are unsampled, so some links rely on the README or source index.
Main entry points: AppDbContext.cs EF Core context · dashboard.component.ts Banking dashboard · AgentService.cs Agent orchestration · customer.service.ts Customer API client
Components 20
Angular banking UI
- App shell
banking-ui/src/app/app.ts - Banking dashboard
banking-ui/src/app/components/dashboard/dashboard.component.ts - UI data models
banking-ui/src/app/models.ts - Customer API client
banking-ui/src/app/services/customer.service.ts - Account API client
banking-ui/src/app/services/account.service.ts - Transaction API client
banking-ui/src/app/services/transaction.service.ts - Agent API client
banking-ui/src/app/services/agent.service.ts
Banking REST API
- Customer endpoints
BankingAgent.Api/Controllers/CustomersController.cs - Account endpoints
BankingAgent.Api/Controllers/AccountsController.cs - Transaction endpoints
BankingAgent.Api/Controllers/TransactionsController.cs - Agent endpoint
BankingAgent.Api/Controllers/AgentController.cs
AI assistant
- Agent orchestration
BankingAgent.Api/Services/AgentService.cs - OpenRouter client
BankingAgent.Api/Services/OpenRouterService.cs
Banking data
- EF Core context
BankingAgent.Api/Data/AppDbContext.cs - SQL Server
- Customer entity
BankingAgent.Api/Models/Customer.cs - Account entity
BankingAgent.Api/Models/Account.cs - Transaction entity
BankingAgent.Api/Models/Transaction.cs
Other components
- Customer
- OpenRouter AI
Connections 21
- Customer → Banking dashboard: uses
README.md - App shell → Banking dashboard: renders
banking-ui/src/app/app.ts - Banking dashboard → Customer API client: loads customers
banking-ui/src/app/components/dashboard/dashboard.component.ts - Banking dashboard → Account API client: loads accounts
banking-ui/src/app/components/dashboard/dashboard.component.ts - Banking dashboard → Transaction API client: loads transactions
banking-ui/src/app/components/dashboard/dashboard.component.ts - Banking dashboard → Agent API client: submits questions
banking-ui/src/app/components/dashboard/dashboard.component.ts - Customer API client → Customer endpoints: HTTP requests
README.md - Account API client → Account endpoints: HTTP requests
README.md - Transaction API client → Transaction endpoints: HTTP requests
README.md - Agent API client → Agent endpoint: POST question
banking-ui/src/app/services/agent.service.ts - Agent endpoint → Agent orchestration: delegates chat
BankingAgent.Api/Controllers/AgentController.cs - Agent orchestration → OpenRouter client: sends chat
BankingAgent.Api/Services/AgentService.cs - OpenRouter client → OpenRouter AI: HTTP chat calls
BankingAgent.Api/Services/OpenRouterService.cs - Agent orchestration → EF Core context: queries banking data
BankingAgent.Api/Services/AgentService.cs - Customer endpoints → EF Core context: queries customers
BankingAgent.Api/Controllers/CustomersController.cs - Account endpoints → EF Core context: accesses accounts
BankingAgent.Api/Controllers/AccountsController.cs - Transaction endpoints → EF Core context: accesses transactions
BankingAgent.Api/Controllers/TransactionsController.cs - EF Core context → SQL Server: reads and writes
- EF Core context → Customer entity: maps entity
BankingAgent.Api/Data/AppDbContext.cs - EF Core context → Account entity: maps entity
BankingAgent.Api/Data/AppDbContext.cs - EF Core context → Transaction entity: maps entity
BankingAgent.Api/Data/AppDbContext.cs