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
You can learn more about the project at this link
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
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