PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/OpenAI

Design a ChatGPT-like web chat UI

Last updated: Mar 29, 2026

Quick Overview

This English summary evaluates a question that assesses front-end–focused system design competencies such as UI architecture, real-time streaming interactions, state management, persistence strategies, and integration with API and model/inference layers.

  • hard
  • OpenAI
  • System Design
  • Software Engineer

Design a ChatGPT-like web chat UI

Company: OpenAI

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

## Scenario You are interviewing for a **front-end** role. Design a web application similar to a ChatGPT chat experience. The interviewer expects a **front-end–focused** system design, but you should also sketch the key **back-end** pieces at a high level. ## Functional requirements - Users can: - Start a new conversation and view a list of past conversations. - Send a message (prompt) and receive an AI assistant reply. - See the assistant response **stream in progressively** ("AI is typing" / token-by-token effect). - Scroll through message history. - Persistency: - Conversations should be **persisted** so they remain after refresh/reopen. - Address a follow-up: handling **storage persistency** tradeoffs (local-only vs server-backed, offline, multi-device). ## Non-functional requirements - Responsive UI, accessible, and handles long conversations. - Resilient to network failures (reconnect, retry, prevent duplicate sends). - Reasonable performance for large histories (hundreds/thousands of messages). ## What to produce 1. A high-level architecture covering **front-end, API layer, and model/inference layer**. 2. A proposed **React component breakdown** and key client-side data structures/state. 3. The **data flow** from UI → server → AI model → streamed tokens → UI. 4. How you implement the streaming/typing effect. 5. Persistency approach and edge cases (refresh, multi-tab, conflicts, offline).

Quick Answer: This English summary evaluates a question that assesses front-end–focused system design competencies such as UI architecture, real-time streaming interactions, state management, persistence strategies, and integration with API and model/inference layers.

Related Interview Questions

  • Design Video Generation Orchestration - OpenAI (medium)
  • Design CI/CD Build Caching - OpenAI
  • Design an Instagram-like Feed System - OpenAI (medium)
  • Design Online Chess Matchmaking - OpenAI (hard)
  • Design Android MVVM API Architecture - OpenAI (medium)
OpenAI logo
OpenAI
Jan 2, 2026, 12:00 AM
Software Engineer
Technical Screen
System Design
28
0
Loading...

Scenario

You are interviewing for a front-end role. Design a web application similar to a ChatGPT chat experience. The interviewer expects a front-end–focused system design, but you should also sketch the key back-end pieces at a high level.

Functional requirements

  • Users can:
    • Start a new conversation and view a list of past conversations.
    • Send a message (prompt) and receive an AI assistant reply.
    • See the assistant response stream in progressively ("AI is typing" / token-by-token effect).
    • Scroll through message history.
  • Persistency:
    • Conversations should be persisted so they remain after refresh/reopen.
    • Address a follow-up: handling storage persistency tradeoffs (local-only vs server-backed, offline, multi-device).

Non-functional requirements

  • Responsive UI, accessible, and handles long conversations.
  • Resilient to network failures (reconnect, retry, prevent duplicate sends).
  • Reasonable performance for large histories (hundreds/thousands of messages).

What to produce

  1. A high-level architecture covering front-end, API layer, and model/inference layer .
  2. A proposed React component breakdown and key client-side data structures/state.
  3. The data flow from UI → server → AI model → streamed tokens → UI.
  4. How you implement the streaming/typing effect.
  5. Persistency approach and edge cases (refresh, multi-tab, conflicts, offline).

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

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

Master your tech interviews with 8,000+ 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.