Case Study — AI Session Architecture
AI conversations in multi-tenant SaaS platforms are typically stateless or stored in a central database with no project isolation. When users switch projects, conversation history is lost. Sessions can't be shared, exported, or versioned alongside the project assets they relate to.
The existing chat architecture treated all conversations as global — a single bucket with no relation to the work a user was doing in a specific project. Switching between projects meant abandoning the conversation context, and there was no way to bundle AI chat history with project exports or backups.
A complete session architecture where every AI conversation is scoped to a project, persisted as a portable .session SQLite file, and managed through a dedicated REST API.
.session SQLite files stored in Drive-backed project storage — the same system used for documents, images, and other project artifacts. This means sessions are portable, backup-able, and travel with the project on export and restore..session file contains the full conversation history, tool call trace, context window, and configuration. This is lightweight, zero-infrastructure (no separate database), and enables instant project-level backup and restore without any additional services.
7+ years building full-stack web applications with React, TypeScript, and NestJS. Deep experience designing and shipping multi-module AI workspace platforms — project-scoped AI sessions, file management, multi-platform communication channels (Telegram, Slack, Discord), and productivity app integrations (Mail, Google, Drive).
Fixed-price sprints. PM included. First sprint free if we miss scope. Start with Sprint Zero at $2,500 — 2-week diagnostic, money-back guaranteed.