← All work

Built with partners

Sanni

A clinician-governed AI psychotherapy assistant for SanaBot

An AI psychotherapist bot with a clinician-reviewed knowledge base and built-in safety safeguards.

Partner
SanaBotSwitzerland
Sector
Mental Health, Digital Health
Services
  • Product Architecture
  • Frontend Development
  • Backend Development
  • AI Integration
Sanni coverWatch the trailer
2languages, English and German

Background

Sanni was conceived as an AI-based psychotherapy assistant providing accessible, structured mental health support while staying grounded in established therapeutic methodologies.

The core challenge was building a system that could engage users conversationally while remaining clinically responsible, culturally appropriate and safe. Unlike generic AI chatbots, Sanni had to operate within strict methodological boundaries and include escalation mechanisms for high-risk situations.

The platform also had to support qualified psychotherapists, letting them continuously assess, refine and update the therapeutic logic behind the system without engineering involvement.

Title frame reading 'Sanni is a Mental Health Companion' beside a phone showing the SanaBot logo

What we delivered

We designed and built Sanni as an AI-native conversational system backed by a centralised, clinician-managed knowledge base.

Users talk to the AI psychotherapist through a chat interface, while all therapeutic logic, tone and response structures are governed by a continuously evolving knowledge base maintained by certified psychotherapists based in Switzerland.

Safety, traceability and controlled evolution of the AI's behaviour were treated as first-class system requirements, not secondary features.

Woman sitting with her head in her hand next to a SanaBot chat where the assistant asks what she is thinking about

Key capabilities

AI psychotherapy assistantA conversational AI interface that supports structured therapeutic dialogue within predefined methodological boundaries.
Clinician-managed knowledge baseA dedicated admin panel lets qualified psychotherapists add, review and refine therapeutic content and response logic. All changes are versioned and validated before they reach the live system.
Built-in safety safeguardsThe system continuously evaluates user input for high-risk signals. When suicidal ideation or critical language is detected, Sanni immediately shifts behaviour, encouraging off-platform support and surfacing emergency contact numbers for the user's geographic location.
Multilingual supportThe assistant works in English and German, with language-specific phrasing and therapeutic tone adapted per locale.
Cross-platform accessFully responsive and available on desktop and mobile.
SanaBot chat on a phone, labelled with AI Psychotherapy Assistant, Clinician-Managed Knowledge Base and Built-in Safety callouts

What made it complex

Sanni had to balance conversational flexibility with strict methodological and safety constraints. It needed to generate empathetic, natural responses while staying grounded in clinician-approved frameworks, detect high-risk signals in real time, and avoid unsafe or misleading outputs.

Further complexity came from multilingual therapeutic nuance, keeping knowledge changes auditable, and making safety interventions reliable without excessive false positives.

SanaBot desktop chat on a laptop next to a photo of a woman thinking at her computer

Tech stack

The Sanni platform was designed for safety, maintainability and controlled evolution using a modern, proven stack.

Frontend
React + Tailwind CSSMobile-first design with dynamic flows. Responsive chat interface and admin tools for users and clinicians.
Backend & Data
Node.js + NestJSModular backend handling conversation orchestration, safety logic and knowledge base management
AI Layer
OpenAI API (GPT-based models)Custom system prompts, safety filters and knowledge grounding logic keep responses within approved methodologies
Database
PostgreSQLStructured storage for user sessions, knowledge base content, version history and audit logs
Authentication & Access Control
JWT-based authentication + role-based permissionsSeparate access levels for users, clinicians and administrators
Hosting & Infrastructure
AWS (EC2, RDS) + DockerContainerised environments across development and production
Monitoring & Logging
AWS CloudWatchApplication monitoring, error tracking and operational visibility
Node.js, Tailwind CSS, React, PostgreSQL, AWS and OpenAI icons over a landscape painting
SanaBot mobile login screen with the tagline 'Your mental health companion'

Delivery and team

The product was delivered by a focused, cross-functional team: 2 software engineers, 1 product designer, 1 QA engineer and 1 product lead.

The team worked closely with SanaBot throughout development to keep technical execution aligned with therapeutic intent.

Software EngineerProduct DesignerQA EngineerProduct Lead

Outcome

Sanni launched as a clinically grounded AI psychotherapy assistant with built-in safeguards and continuous human oversight.

The platform lets our partner evolve therapeutic methodologies over time while keeping every user interaction consistent, safe and accountable. It provides a scalable foundation for future expansion without compromising responsible use.

SanaBot chat shown on a phone and a laptop in front of a landscape painting

Need something like Sanni built and kept running?

Got a market and a problem worth a company? Build it with us →

Say hi. We reply to every email.

hey@greenrepublic.ai

Contact

Send us a message

Goes straight to hey@greenrepublic.ai · Privacy · Terms