Skip to content

Sei: An empathetic AI therapist agent built with Google ADK and Gemini for accessible mental wellness support. (Google GenAI Capstone Project)

Notifications You must be signed in to change notification settings

Nate1809/sei_agent_capstone

Repository files navigation

Sei: A Magical AI Therapy Companion

Sei Logo

Where AI meets empathy to create conversations that heal
Capstone Project for Google's 5-day Gen AI Intensive Course

✨ What is Sei?

Sei is an innovative AI therapy companion built with Google's Agent Development Kit (ADK) that creates warm, insightful conversations using a multi-agent architecture. Unlike regular chatbots or general-purpose LLMs, Sei is specifically designed to:

  • 🌟 Create a genuinely warm, engaging therapeutic presence
  • 🧠 Integrate multiple therapeutic perspectives (CBT, Psychoanalytic, Motivational, Faith-based)
  • 💫 Remember your story across sessions with a sophisticated memory system
  • 🚨 Detect crisis situations and provide appropriate resources
  • 🙏 Respect faith preferences and integrate them thoughtfully when desired

Built with the Google Agent Development Kit (ADK) and Gemini 2.0 Flash, Sei represents a new vision for AI companionship—one that feels truly magical rather than mechanical.

🚀 Getting Started

Prerequisites

  • Python 3.9+
  • Google Agent Development Kit (ADK)
  • Access to Google Cloud (for Gemini API)

1. Set up Environment & Install ADK

Create & Activate Virtual Environment (Recommended):

# Create
python -m venv .venv

# Activate (each new terminal)
# macOS/Linux:
source .venv/bin/activate

# Windows CMD:
.venv\Scripts\activate.bat

# Windows PowerShell:
.venv\Scripts\Activate.ps1

Install ADK:

pip install google-adk

2. Clone and Install Sei

# Clone the repository
git clone https://github.com/Nate1809/sei_agent_capstone.git
cd sei_agent_capstone

# Install dependencies
pip install -r requirements.txt

3. Set up Environment Variables

Create a .env file in the root directory (sei_agent_capstone):

GOOGLE_API_KEY=your_api_key_here

4. Run Sei

Using the ADK web interface (recommended for first-time users):

# Make sure you're in the root directory sei_agent_capstone
cd sei_agent_capstone
adk web

Then select "sei_therapist" from the dropdown in the web interface.

Using the command line:

# Make sure you're in the root directory sei_agent_capstone
cd sei_agent_capstone
adk run sei_therapist

🏗️ Architecture

Sei uses a sophisticated multi-agent architecture that creates a seamless, magical experience:

Sei Architecture

The system includes:

  • Root Agent (Sei) - The main orchestration hub
  • Specialized Agents:
    • Onboarding Agent - Creates a warm first-time experience
    • Greeting Agent - Handles session beginnings with continuity
    • Therapeutic Agent - Provides core therapeutic responses
    • Crisis Agent - Detects and handles safety concerns
    • Treatment Agent - Creates personalized therapeutic plans
    • Farewell Agent - Closes sessions with meaningful summary

Behind the scenes, a parallel consultation system analyzes input from multiple therapeutic perspectives simultaneously:

  • Cognitive Behavioral Therapy (CBT)
  • Psychoanalytic approach
  • Motivational perspective
  • Faith-based integration (when appropriate)

🔍 Key Features

Emotional Intelligence

Sei detects emotions and responds with appropriate warmth and insight.

Magical Memory

Sei remembers your story—your job interview next week, your relationship struggles, how you felt last session—creating true continuity.

Therapeutic Depth

Instead of generic advice, Sei offers thoughtful perspectives drawn from multiple therapeutic traditions.

Faith Integration

For users who indicate faith is important, Sei can thoughtfully integrate spiritual perspectives.

Crisis Detection

Sei automatically identifies safety concerns and provides appropriate resources.

Therapeutic Boundaries

Unlike general LLMs, Sei can gently push back when necessary—just as a good therapist would.

Seamless Experience

Despite its complex architecture, Sei presents as a single magical presence with a consistent voice.

📚 Development Resources

🔮 Future Directions

  • Emergency Contact Integration: Notification system for crisis situations
  • Human Therapist Collaboration: Pre-appointment summaries for therapists
  • Vertex AI Vector Storage: Enhanced memory using Google Cloud vector databases
  • Voice Interface: Support for spoken conversations

⚠️ Limitations and Ethical Considerations

  • Sei is not a replacement for professional mental health care
  • For serious mental health concerns, please consult qualified professionals
  • Sei is a research project and companion, not a medical device or service

🙏 Acknowledgments

  • Kaggle and Google: For the Gen AI Intensive Course
  • Fernanda Uria: For clinical psychology expertise
  • Solange Pardo: For the session summarization concept
  • Marielle Morales: For support throughout development

Created with ❤️ as a capstone project for Google's 5-day Gen AI Intensive Course

About

Sei: An empathetic AI therapist agent built with Google ADK and Gemini for accessible mental wellness support. (Google GenAI Capstone Project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages