How rakesh000007/ai-business-assistant works
AI Business Assistant is a Flask real-estate CRM: business users manage properties and customers, while public visitors can chat or call to find properties and submit lead details. The principal path runs from AI routes through conversation/property handling to customer and lead records; authenticated dashboard routes support ongoing CRM work. The source excerpts establish app registration, selected route/model operations, and AI-to-Ollama calls. Other documented-by-name capabilities in the AI routes are retained, but their internal wiring is omitted where excerpts do not show it.
Main entry points: ai.py AI chat and calls · __init__.py Flask app setup · lead.py Lead management · public_business.py Public business site
Components 22
Web entry and accounts
- Flask app setup
app/__init__.py - Accounts and login
app/routes/auth.py - Public business site
app/routes/public_business.py
CRM operations
- Dashboard
app/routes/dashboard.py - Customer management
app/routes/customer.py - Property management
app/routes/property.py - Lead management
app/routes/lead.py
AI engagement
- AI chat and calls
app/routes/ai.py - Conversation controller
app/ai/conversation_controller.py - AI response service
app/ai/ai_service.py - Lead analysis and scoring
app/ai/lead_analyzer.py - Property recommendations
app/ai/recommendation.py - Conversation summaries
app/ai/summary.py - Audio transcription
app/services/whisper_service.py
Business records
- Business information
app/models/business_information.py - Properties
app/models/property.py - Customers
app/models/customer.py - Leads
app/models/lead.py - Conversation and requirements records
app/models
Other components
- Visitor
- Business user
- Ollama model service
Connections 36
- Flask app setup → Accounts and login: registers
app/__init__.py - Flask app setup → Dashboard: registers
app/__init__.py - Flask app setup → Customer management: registers
app/__init__.py - Flask app setup → Property management: registers
app/__init__.py - Flask app setup → Lead management: registers
app/__init__.py - Flask app setup → AI chat and calls: registers
app/__init__.py - Flask app setup → Public business site: registers
app/__init__.py - Business user → Accounts and login: signs in
app/routes/auth.py - Business user → Dashboard: views CRM
- Business user → Customer management: manages
- Business user → Property management: manages
- Business user → Lead management: manages
- Visitor → Public business site: visits
- Visitor → AI chat and calls: chats or calls
- Public business site → Business information: reads business
app/routes/public_business.py - Public business site → Properties: reads listings
app/routes/public_business.py - Dashboard → Customers: queries
app/routes/dashboard.py - Dashboard → Properties: queries
app/routes/dashboard.py - Customer management → Customers: manages
app/routes/customer.py - Property management → Properties: manages
app/routes/property.py - Lead management → Leads: manages
app/routes/lead.py - Lead management → Customers: checks customer
app/routes/lead.py - Lead management → Conversation summaries: requests summary
app/routes/lead.py - AI chat and calls → Business information: loads business
- AI chat and calls → Properties: searches listings
- AI chat and calls → Customers: creates or updates
- AI chat and calls → Leads: creates leads
- AI chat and calls → Conversation controller: uses flow logic
app/routes/ai.py - AI chat and calls → AI response service: requests responses
app/routes/ai.py - AI chat and calls → Lead analysis and scoring: analyzes leads
app/routes/ai.py - AI chat and calls → Property recommendations: requests recommendations
app/routes/ai.py - AI chat and calls → Conversation summaries: requests summaries
app/routes/ai.py - AI chat and calls → Audio transcription: requests transcription
app/routes/ai.py - AI chat and calls → Conversation and requirements records: uses conversation records
app/routes/ai.py - AI response service → Ollama model service: generates text
app/ai/ai_service.py - Conversation summaries → Ollama model service: generates summary
app/ai/summary.py