A comprehensive, empathetic AI chatbot for LCF Group that provides company information, handles customer queries, and includes advanced deal evaluation capabilities.
- Company Information: Learn about LCF Group, our mission, and values
- Product Guidance: Explore financing options and understand terms
- Eligibility Check: Review requirements and qualification criteria
- Contact & Support: Get contact information and office hours
- Empathetic Responses: Warm, professional, and helpful interactions
- AI-Powered Assessment: Quick loan evaluation using advanced algorithms
- Risk Analysis: Low/Medium/High risk classification
- Product Recommendations: Suggest the most suitable financing option
- Loan Terms: Provide suggested amounts, rates, and tenures
- Next Steps: Clear guidance on what to do next
- Intent Recognition: Understands user queries and responds appropriately
- Context Awareness: Maintains conversation context
- Multi-Modal Interface: Seamless switching between chat and evaluation modes
- Professional Design: Clean, modern UI with intuitive navigation
- Python 3.8+
- Google Gemini API key
- Required Python packages (see requirements.txt)
-
Clone the repository
git clone <repository-url> cd lcf-chatbot
-
Set up virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Configure environment variables Create a
.envfile in the root directory:GOOGLE_API_KEY=your_gemini_api_key_here -
Run the application
streamlit run app.pylcf-chatbot/
โโโ app.py # Main Streamlit application
โโโ logic.py # Core chatbot logic and business rules
โโโ prompt_templates/ # AI prompt templates
โ โโโ deal_prompts.txt # Deal evaluation prompts
โโโ assets/ # Static assets (images, etc.)
โโโ venv/ # Virtual environment
โโโ README.md # This file
- Select "๐ฌ General Chat" from the sidebar
- Ask questions about LCF Group, products, or eligibility
- Use quick action buttons for common queries
- Get empathetic, informative responses
- Select "๐ Deal Evaluation" from the sidebar
- Fill in your business details:
- Industry
- Monthly revenue
- Loan amount needed
- Business age
- Credit score
- Click "Evaluate Deal" for instant AI assessment
- Review comprehensive evaluation results
Use the sidebar buttons for instant access to:
- ๐ข About LCF
- ๐ฐ Our Products
- ๐ Eligibility
- ๐ Contact Info
The chatbot understands various types of queries:
- Company Information: "Tell me about LCF", "What does LCF do?"
- Products: "What loans do you offer?", "Tell me about working capital"
- Eligibility: "Do I qualify?", "What documents do I need?"
- Contact: "How can I reach you?", "What are your office hours?"
- Application: "How do I apply?", "What's the process?"
Advanced risk assessment based on:
- Revenue Analysis: Monthly revenue patterns and stability
- Loan-to-Revenue Ratio: Risk assessment based on borrowing amount
- Business Age: Experience and stability factors
- Credit Score: Creditworthiness evaluation
- Industry Factors: Sector-specific considerations
- Responsive Layout: Works on desktop and mobile
- Clean Interface: Professional, easy-to-navigate design
- Visual Hierarchy: Clear information organization
- Interactive Elements: Engaging buttons and forms
- Conversation History: Maintains chat context
- Quick Actions: One-click access to common queries
- Progress Indicators: Loading states and feedback
- Error Handling: Graceful error management
GOOGLE_API_KEY: Your Google Gemini API key
You can customize the chatbot by modifying:
logic.py: Business logic and response generationprompt_templates/deal_prompts.txt: AI prompt templates- Company information in the knowledge base
- Low Risk: High approval probability
- Medium Risk: Requires manual review
- High Risk: Likely rejection with improvement suggestions
- Monthly Revenue: Stability and amount
- Business Age: Experience and track record
- Credit Score: Creditworthiness
- Loan Amount: Reasonableness vs. revenue
- Industry: Sector stability and growth potential
- In-App Chat: Use the chatbot for immediate assistance
- Contact Information: Available in the chat interface
- Office Hours: Monday-Friday, 9 AM - 6 PM
- Documentation: This README and inline code comments
- Code Structure: Modular design for easy maintenance
- Extensibility: Easy to add new features and capabilities
- API Key Security: Environment variable protection
- Data Privacy: No sensitive data stored permanently
- Session Management: Secure session handling
- Input Validation: Proper data validation and sanitization
- Multi-language Support: Hindi and other regional languages
- Voice Integration: Speech-to-text and text-to-speech
- Document Upload: Direct document submission
- Integration APIs: Connect with external systems
- Analytics Dashboard: Usage analytics and insights
- CRM Systems: Customer relationship management
- Loan Management: Direct loan application processing
- Payment Gateways: Online payment processing
- Email Systems: Automated email notifications
This project is proprietary to LCF Group. All rights reserved.
For internal development:
- Follow the existing code structure
- Add comprehensive documentation
- Test thoroughly before deployment
- Follow security best practices
Built with โค๏ธ for LCF Group
Empowering businesses with smart financial solutions