A virtual companion providing personalized guidance, emotional support, and actionable insights to help navigate life's challenges.
AI Personal Life Coach leverages artificial intelligence to create a supportive, non-judgmental environment where users can discuss their concerns, set goals, and receive personalized guidance. The system combines therapeutic techniques with practical advice to deliver a holistic coaching experience.
- AI Model
- Features
- Screenshots & Demos
- Technology Stack
- Installation
- Usage
- How It Works
- Project Structure
- Contributing
- Future Enhancements
- License
- Acknowledgments
- Contact
This project uses Google's Gemini 2.0 Flash model through the Google Generative AI API. Gemini is a powerful, multimodal AI model that offers:
- Advanced natural language understanding
- Contextual awareness for meaningful conversations
- Fast response times for real-time coaching
- Ability to remember conversation context and provide personalized guidance
- Personalized Guidance ๐ฏ: Tailored advice based on your specific situation and goals
- Emotional Support ๐: Empathetic responses that acknowledge your feelings and experiences
- Goal Setting & Tracking ๐: Help identifying and working toward meaningful objectives
- Mindfulness Practices ๐งโโ๏ธ: Techniques to reduce stress and improve mental well-being
- Actionable Insights ๐ก: Practical steps and strategies you can implement immediately
- 24/7 Availability โฐ: Support whenever you need it, day or night
- Private & Secure ๐: Your conversations remain confidential
- Network Status Monitor ๐: Real-time connection monitoring for improved reliability
- Consistent UI Experience ๐ฅ๏ธ: Standardized header design across all pages
- Smooth In-Page Navigation ๐: Enhanced user experience with anchor-based navigation
Note: Click the buttons above to download and view the demo videos locally on your device
- Backend: Python, Flask
- Frontend: HTML, CSS, JavaScript
- AI: Google Generative AI (Gemini API)
- Deployment: Render.com cloud platform
- Clone this repository:
git clone https://github.com/anugrahk21/Personal_AI_Life_Coach.git
cd AI_Personal_Life_Coach
- Install dependencies:
pip install -r requirements.txt
-
Set up your Gemini API key:
- Create a
.envfile in the root directory - Add your API key:
GEMINI_API_KEY=YOUR GOOGLE GEMINI 2.0 FLASH API - You can get an API key from: https://makersuite.google.com/app/apikey
- Create a
-
Run the application:
python app.py
- Open your browser and navigate to the URL displayed in your terminal:
http://localhost:5000
Note: The port may vary depending on your system configuration or if port 5000 is already in use. The application will display the correct URL when it starts.
- Start a conversation by typing a message in the input field
- Share your thoughts, challenges, or goals with the AI coach
- Receive personalized guidance and support
- Continue the conversation to explore topics in depth
This project transforms Google's Gemini 2.0 Flash model into a compassionate, motivational life coach through careful system design and prompt engineering.
The AI coach's personality has been meticulously crafted by providing specific instructions that shape how it responds:
-
Empathetic First Approach: The system is programmed to always validate emotions before offering guidance, creating a supportive experience similar to human therapeutic interactions.
-
Conversational Memory: The coach maintains conversation history to provide contextually relevant responses that reference previous discussions, creating a coherent coaching experience.
-
Carefully Structured Responses: All AI outputs are formatted with:
- Short, digestible paragraphs (2-3 sentences maximum)
- Strategic use of line breaks for readability
- Bullet points for actionable suggestions
- Appropriate emotional tone markers (emojis) used sparingly
-
Motivational Framework: The coach incorporates positive psychology principles, focusing on strengths and growth potential rather than just problem-solving.
The core coaching capabilities are implemented in the TherapistCoach class within coach.py:
-
System Instruction: A comprehensive prompt establishes the coach's personality, communication style, and therapeutic approach.
-
Context Management: The system tracks conversation history and session duration to provide personalized responses.
-
Response Enhancement:
- Therapeutic openers ensure responses begin with empathetic acknowledgment
- Periodic integration of motivational quotes to inspire and encourage
- Fallback mechanisms for graceful handling of API issues
-
Web Integration: The Flask application in
app.pyserves as the interface between the user and the AI coach, handling request processing and response formatting.
The custom prompt engineering ensures the Gemini model behaves consistently as a life coach rather than a general information system, focusing on emotional support, personal growth, and actionable guidance.
AI_Personal_Life_Coach/
โโโ app.py # Main Flask application
โโโ coach.py # TherapistCoach implementation
โโโ README.md # Project documentation
โโโ requirements.txt # Python dependencies
โโโ runtime.txt # Python runtime specification for deployment
โโโ render.yaml # Configuration for Render.com deployment
โโโ __pycache__/ # Compiled Python files
โโโ static/ # Static assets
โ โโโ assets/ # Images, videos and resources
โ โ โโโ favicon/ # Favicon files
โ โ โโโ img/ # Image resources and screenshots
โ โ โโโ videos/ # Demo videos
โ โโโ css/ # Stylesheets
โ โโโ js/ # JavaScript files
โโโ templates/ # HTML templates
โโโ index.html # Landing page
โโโ coachai.html # Coach interface
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add some amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
- Voice interaction capabilities ๐ค
- Mobile application version ๐ฑ
- Integration with health tracking devices โ
- Specialized coaching modules (career, relationships, health) ๐
- Multilingual support ๐
This project is licensed under the MIT License - see the LICENSE file for details.
- Google for providing the Gemini AI capabilities
- Flask team for the web framework
- HTML5, CSS3, JavaScript for frontend development
- Atmosyn for web development support
Anugrah K - anugrah.k910@gmail.com
Project Link: GitHub Repository
Live Demo: https://personal-ai-ally.onrender.com




