Skip to content

AI Personal Life Coach - A virtual companion providing personalized guidance, emotional support, and actionable insights to help navigate life's challenges

Notifications You must be signed in to change notification settings

anugrahk21/Personal_AI_Life_Coach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  AI Personal Life Coach

A virtual companion providing personalized guidance, emotional support, and actionable insights to help navigate life's challenges.

๐Ÿ“‹ Overview

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.

๐ŸŒ Live Demo

๐Ÿ“‘ Contents

๐Ÿค– AI Model

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

โœจ Features

  • 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

๐Ÿ“ธ Screenshots & Demos

Application Screenshots

Landing Page

Landing Page Screenshot 1 Landing Page Screenshot 2 Landing Page Screenshot 3 Landing Page Screenshot 4

AI Interface

Live Working Screenshot

Demo Videos

Download and View Demo Videos

Download Landing Page Demo ย ย  Download Live Working Demo

Note: Click the buttons above to download and view the demo videos locally on your device

๐Ÿ’ป Technology Stack

  • Backend: Python, Flask
  • Frontend: HTML, CSS, JavaScript
  • AI: Google Generative AI (Gemini API)
  • Deployment: Render.com cloud platform

๐Ÿš€ Installation

  1. Clone this repository:
git clone https://github.com/anugrahk21/Personal_AI_Life_Coach.git
cd AI_Personal_Life_Coach
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up your Gemini API key:

  2. Run the application:

python app.py
  1. 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.

๐Ÿ” Usage

  1. Start a conversation by typing a message in the input field
  2. Share your thoughts, challenges, or goals with the AI coach
  3. Receive personalized guidance and support
  4. Continue the conversation to explore topics in depth

โš™๏ธ How It Works

AI Implementation

This project transforms Google's Gemini 2.0 Flash model into a compassionate, motivational life coach through careful system design and prompt engineering.

Therapeutic Personality Design

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.

Technical Implementation

The core coaching capabilities are implemented in the TherapistCoach class within coach.py:

  1. System Instruction: A comprehensive prompt establishes the coach's personality, communication style, and therapeutic approach.

  2. Context Management: The system tracks conversation history and session duration to provide personalized responses.

  3. 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
  4. Web Integration: The Flask application in app.py serves 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.

๐Ÿ“ Project Structure

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

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add some amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

๐Ÿ”ฎ Future Enhancements

  • Voice interaction capabilities ๐ŸŽค
  • Mobile application version ๐Ÿ“ฑ
  • Integration with health tracking devices โŒš
  • Specialized coaching modules (career, relationships, health) ๐ŸŒŸ
  • Multilingual support ๐ŸŒ

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘ Acknowledgments

  • Google for providing the Gemini AI capabilities
  • Flask team for the web framework
  • HTML5, CSS3, JavaScript for frontend development
  • Atmosyn for web development support

๐Ÿ“ฌ Contact

Anugrah K - anugrah.k910@gmail.com

Project Link: GitHub Repository

Live Demo: https://personal-ai-ally.onrender.com

About

AI Personal Life Coach - A virtual companion providing personalized guidance, emotional support, and actionable insights to help navigate life's challenges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published