How khaledamir8200/smart-business-collaboration-agent works
Smart Business Collaboration Agent guides a business owner from onboarding through AI-assisted partner discovery, shortlist refinement, partnership briefs and recommendations, then outreach and pipeline tracking. The React app owns the user workflow; its agent service connects to the AI API, whose Python layer scores candidates and supports follow-up, briefs, decisions, settings, uploads and learning. The ASP.NET API separately exposes business records and proxies chat to the AI service. Some frontend/API wiring and unsampled feature internals are inferred only where documented; uncertain links are omitted or dashed.
Main entry points: App.js Workflow app · api.py AI routes · agentTrial.py Agent matching loop · briefs.py Brief generation
Components 29
Business workflow UI
- Workflow app
Frontend/src/App.js - Business onboarding
Frontend/src/Onboard/AllOnboard.js - Partner discovery
Frontend/src/Discover/AllDiscover.js - Agent client
Frontend/src/Data/agentService.js - Partner shortlist
Frontend/src/Shortlist/AllShortList.js - Partner brief
Frontend/src/Brief/AllBrief.js - Partner decisions
Frontend/src/Decide/AllDecide.js - Outreach composer
Frontend/src/Outreach/AllOutreach.js - Outcome tracking
Frontend/src/Track/AllTrack.js - Pipeline column
Frontend/src/Track/PipelineColumn.jsx - Pipeline card
Frontend/src/Track/PipelineCard.jsx - Matching settings
Frontend/src/Settings/AllSettings.js
AI service API
- AI routes
AI/api/api.py - Session and pipeline store
AI/api/demo_store.py
Matching and insights
- Agent matching loop
AI/AI_layer/agentTrial.py - Company upload
AI/AI_layer/csv_upload.py - Scoring and ranking
AI/AI_layer/decisions.py - Brief generation
AI/AI_layer/briefs.py - Outreach writing
AI/AI_layer/writer.py - Output guardrails
AI/AI_layer/guardrails.py - Feedback learning
AI/AI_layer/learning.py
Business API and data
- Collaboration endpoints
Backend/SmartBusinessCollaborationAgent.API/Controllers/CollaborationController.cs - AI HTTP client
Backend/SmartBusinessCollaborationAgent.API/Services/AiAgentService.cs - Business endpoints
Backend/SmartBusinessCollaborationAgent.API/Controllers/BusinessesController.cs - Business repository
Backend/SmartBusinessCollaborationAgent.API/Repositories/BusinessRepository.cs - Business database context
Backend/SmartBusinessCollaborationAgent.API/Data/ApplicationDbContext.cs - Business record
Backend/SmartBusinessCollaborationAgent.API/Models/Business.cs
Other components
- Business owner
- AI model provider
Connections 35
- Business owner → Workflow app: uses
README.md - Workflow app → Business onboarding: renders
Frontend/src/App.js - Workflow app → Partner discovery: renders
Frontend/src/App.js - Workflow app → Partner shortlist: renders
Frontend/src/App.js - Workflow app → Partner brief: renders
Frontend/src/App.js - Workflow app → Partner decisions: renders
Frontend/src/App.js - Workflow app → Outreach composer: renders
Frontend/src/App.js - Workflow app → Outcome tracking: renders
Frontend/src/App.js - Workflow app → Matching settings: renders
Frontend/src/App.js - Workflow app → Agent client: calls
Frontend/src/App.js - Business onboarding → Workflow app: provides profile
Frontend/src/App.js - Partner discovery → Workflow app: provides refinements
Frontend/src/App.js - Workflow app → Partner shortlist: supplies recommendations
Frontend/src/App.js - Outcome tracking → Pipeline column: renders
- Pipeline column → Pipeline card: renders
Frontend/src/Track/PipelineColumn.jsx - Agent client → AI routes: sends chat
- AI routes → Agent matching loop: runs chat
AI/api/api.py - AI routes → Brief generation: generates briefs
AI/api/api.py - AI routes → Scoring and ranking: ranks partners
AI/api/api.py - AI routes → Company upload: handles uploads
AI/api/api.py - AI routes → Session and pipeline store: reads and writes
AI/api/api.py - AI routes → Feedback learning: records feedback
AI/api/api.py - Agent matching loop → Scoring and ranking: scores candidates
AI/AI_layer/decisions.py - Brief generation → Scoring and ranking: uses decision
AI/AI_layer/briefs.py - Brief generation → Agent matching loop: reads profiles
AI/AI_layer/briefs.py - Scoring and ranking → Output guardrails: checks text
AI/AI_layer/decisions.py - Brief generation → Output guardrails: scrubs output
AI/AI_layer/briefs.py - Outreach writing → Output guardrails: checks content
AI/AI_layer/writer.py - Feedback learning → Agent matching loop: updates weights
AI/AI_layer/learning.py - Agent matching loop → AI model provider: requests language output
- Collaboration endpoints → AI HTTP client: requests chat
Backend/SmartBusinessCollaborationAgent.API/Controllers/CollaborationController.cs - AI HTTP client → AI routes: posts chat
- Business endpoints → Business repository: queries businesses
Backend/SmartBusinessCollaborationAgent.API/Controllers/BusinessesController.cs - Business repository → Business database context: queries and saves
Backend/SmartBusinessCollaborationAgent.API/Repositories/BusinessRepository.cs - Business database context → Business record: maps records
Backend/SmartBusinessCollaborationAgent.API/Data/ApplicationDbContext.cs