Manish Goyal

Case study AI companion app for Android

Saathi Plus

An AI companion that remembers you and talks your language: Hinglish, Hindi or English.

A chat with Kabir, a best-friend companion, in Hinglish about a job interview

The problem

Most chat apps forget you between conversations and only speak formal English.

What I did

Designed and built it on my own: the Android app, the server, the companions and the release process.

How it works

  1. On the phone

    The Expo app keeps chats, memories and settings in encrypted SQLite; the key sits in the phone’s secure storage.

  2. Context

    The phone builds the context: the companion’s persona, up to 30 memories, a rolling summary and the recent messages that fit.

  3. Safety

    A check on the phone, in three languages, shows a helpline card when a message sounds like a crisis.

  4. Server

    A stateless server checks the sign-in, the messages left and fair use, then builds the prompt.

  5. Reply

    Several AI services, with fallback, stream the reply back. The server keeps nothing.

  6. Remember

    The phone splits the reply into chat bubbles, saves it, and updates memories and the summary every 12 messages.

A Postgres database holds only accounts and purchases; payments are confirmed through signed webhooks.

Decisions that mattered

Chats stay on the phone

What you say is never stored anywhere else, so there is no personal data on the server to protect, lose or hand over.

The server checks every message

The app’s locks are only a convenience; whether a message can be sent is decided on the server each time.

A stable prompt start and more than one AI service

A prompt that starts the same way lets the service reuse cached input, which costs much less, and a fallback keeps chats going when one service is down.

How it is tested

  • A load test runs 500 paid users at once against a slow fake AI and checks every reply arrives, correct and in time.
  • No test calls a real model; prompt changes are compared on a fixed set of test conversations before they ship.

Screens

A chat with Kabir, a best-friend companion, in Hinglish about a job interview
A chat with Kabir, a best-friend companion, in Hinglish about a job interview
Kabir’s memories, kept only on the phone, with check-ins switched on
Kabir’s memories, kept only on the phone, with check-ins switched on
Family companions: Maa, Papa, a brother, a sister and Dadi
Family companions: Maa, Papa, a brother, a sister and Dadi
The privacy screen: chats only on this phone, messages passed through and not kept
The privacy screen: chats only on this phone, messages passed through and not kept

Built with

  • React Native (Expo)
  • SQLite on the phone
  • Hono
  • PostgreSQL
  • Several model providers