awesome-llm-apps/ai_agent_tutorials/ai_mental_health_crisis_agent
2025-02-20 07:36:13 +05:30
..
ai_mental_health_crisis_agent.py final inclusions 2025-02-20 07:36:13 +05:30
README.md final inclusions 2025-02-20 07:36:13 +05:30
requirements.txt final inclusions 2025-02-20 07:36:13 +05:30

AI Mental Health Crisis Navigator 🧠

The AI Mental Health Crisis Navigator is a supportive mental health assessment and guidance system powered by AG2(formerly AutoGen)'s AI Agent framework. This app provides personalized mental health support through the coordination of specialized AI agents, each focusing on different aspects of mental health care based on user inputs such as emotional state, stress levels, sleep patterns, and current symptoms. This is built on AG2's new swarm feature run through initiate_swarm_chat() method.

Features

  • Specialized Mental Health Support Team

    • 🧠 Assessment Agent: Analyzes emotional state and psychological needs with clinical precision and empathy
    • 🎯 Action Agent: Creates immediate action plans and connects users with appropriate resources
    • 🔄 Follow-up Agent: Designs long-term support strategies and prevention plans
  • Comprehensive Mental Health Support:

    • Detailed psychological assessment
    • Immediate coping strategies
    • Resource recommendations
    • Long-term support planning
    • Crisis prevention strategies
    • Progress monitoring systems
  • Customizable Input Parameters:

    • Current emotional state
    • Sleep patterns
    • Stress levels
    • Support system information
    • Recent life changes
    • Current symptoms
  • Interactive Results:

    • Real-time assessment summaries
    • Detailed recommendations in expandable sections
    • Clear action steps and resources
    • Long-term support strategies

How to Run

Follow these steps to set up and run the application:

  1. Clone the Repository:

    git clone https://github.com/Shubhamsaboo/awesome-llm-apps.git
    cd ai_agent_tutorials/ai_mental_health_crisis_agent
    
  2. Install Dependencies:

    pip install -r requirements.txt
    
  3. Create Environment File: Create a .env file in the project directory:

    echo "AUTOGEN_USE_DOCKER=0" > .env
    

    This disables Docker requirement for code execution in AutoGen.

  4. Set Up OpenAI API Key:

    • Obtain an OpenAI API key from OpenAI's platform
    • You'll input this key in the app's sidebar when running
  5. Run the Streamlit App:

    streamlit run ai_mental_health_crisis_agent.py
    

⚠️ Important Notice

This application is a supportive tool and does not replace professional mental health care. If you're experiencing thoughts of self-harm or severe crisis:

  • Call National Crisis Hotline: 988
  • Call Emergency Services: 911
  • Seek immediate professional help