PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/ML System Design/OpenAI

Design an AI chatbot with browser storage

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's system-design and ML-integration skills for privacy-preserving, browser-only AI chatbots, including client-side state and session management, streaming response delivery, security of credentials and API keys, rate limiting, failure modes, and trade-off analysis.

  • medium
  • OpenAI
  • ML System Design
  • Software Engineer

Design an AI chatbot with browser storage

Company: OpenAI

Role: Software Engineer

Category: ML System Design

Difficulty: medium

Interview Round: Technical Screen

Design an AI chatbot system with a frontend focus under these constraints: user messages and conversation history are not stored in any server-side database and instead live in the user's browser; bot messages must be streamed to the user; refreshing the page starts a new conversation; and user credential handling must be addressed on the client. Describe the architecture (client, edge, backend/LLM), data flow, how streaming is implemented (SSE vs WebSockets), session management without a server database, security for credentials and API access, rate limiting, failure modes and retries, and trade-offs of the no-DB approach.

Quick Answer: This question evaluates a candidate's system-design and ML-integration skills for privacy-preserving, browser-only AI chatbots, including client-side state and session management, streaming response delivery, security of credentials and API keys, rate limiting, failure modes, and trade-off analysis.

Related Interview Questions

  • Design a Text-to-Video Generation System - OpenAI (hard)
  • Design a Real-Time Sensor Intelligence System - OpenAI (medium)
  • Mine Novel Images from Unlabeled Data - OpenAI (medium)
  • Design a GPU-Efficient Video Service - OpenAI (medium)
  • How would you build an image classifier with dirty data? - OpenAI (easy)
OpenAI logo
OpenAI
Sep 6, 2025, 12:00 AM
Software Engineer
Technical Screen
ML System Design
8
0

System Design: Browser-Only Chatbot With Streaming and No Server-Side Conversation Storage

Context

Design an AI chatbot where all user messages and conversation history exist only in the user's browser. No server-side database stores conversations. The bot's responses must stream to the UI. Page refresh starts a new conversation. User credential handling occurs on the client.

Requirements

Describe and justify:

  1. Architecture boundaries (client, edge, backend/LLM)
  2. End-to-end data flow
  3. Streaming implementation (SSE vs. WebSockets) and how to implement it
  4. Session management without a server database
  5. Security for user credentials and API access keys
  6. Rate limiting without a server database
  7. Failure modes, timeouts, and retry strategies
  8. Trade-offs of the no-database approach and mitigations

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More ML System Design•More OpenAI•More Software Engineer•OpenAI Software Engineer•OpenAI ML System Design•Software Engineer ML System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.