Let’s talk

AI Friend Chatbot

  • #Social Network

An AI friend chatbot for a US mental wellness startup: a companion on iOS, Android and the web that listens, remembers what a person told it weeks ago and adapts its voice to theirs, with strict rules on privacy and emotional safety.

  • Mobile
  • Web
AI friend app: welcome screen with the mascot and a Get started button

Impact

The founders had run a beta on a plain GPT-4 wrapper: about 2,400 people signed up, and roughly 3 in 5 never came back after their third conversation because the friend forgot what they had said. A team of seven rebuilt the product in nine months of two-week sprints, with a memory layer, an adaptive personality and a safety layer outside the prompt.

Week-one return rate rose from about 40% to 68%, average session length grew from 5 turns to 14, and 30-day fact recall holds at 91%. Median reply time is under 2 seconds, and running background analysis on Llama 2 cut per-user inference costs by roughly 35%.

Services we provided

– AI/ML Development

– Backend Architecture

– Mobile App

– Privacy Engineering

Tech Stack

Python

Redis

React Native

React.js

AI friend app: chat where the friend asks how the user is feeling and offers suggested replies
AI friend app: onboarding screen with the star-shaped character
AI friend app: chat about data protection next to the onboarding greeting

Challenges and Solutions

🧐 Challenges

The beta told the story: the friend did not feel like one. Three problems shaped the work:

  • Emotional intelligence without manipulation: read tone and answer with warmth, with no guilt trips, streak pressure or "don't leave me" hooks.
  • Memory and personality: GPT-3.5 lost the thread after about 40 exchanges, and every user got the same personality.
  • Privacy and safety: chats held health details, breakups and work stress, so data had to be minimized, encrypted and kept out of any third-party model training.

💡 Solutions

Memory came first and the model choice second. GPT-4 for live conversation, Llama 2 for background work, LangChain orchestrating both and PostgreSQL holding the memory layer:

  • Emotionally aware conversation engine that adjusts warmth, pacing and follow-up questions to the last few messages.
  • Adaptive personality that mirrors how each person writes over the first 10 to 15 chats.
  • Session memory: every chat ends with a summary and a fact update, with 91% recall after 30 days.
  • Crisis detection: a separate classifier hands distress to a fixed, clinician-reviewed script, and a human reviews every flagged case within 24 hours.
  • Privacy-first architecture: identifiers stripped before any model API, encryption at rest, one-tap deletion.
  • One account on iOS, Android and the web, with memory synced across devices.

7

people worked

9

months of work

68%

week-one return rate

This website uses cookies

We use cookies to personalize content and advertising, provide social networking features, and analyze our traffic. We also share information about your use of our website with our social media, advertising and analytics partners, who may combine it with other information you have provided to them or collected from your use of their services. You agree to our cookies if you continue to use our website.

Okay, I understand