Design an AI Chatbot System

Medium · System Design

Design an authenticated web AI chatbot with token-by-token SSE streaming and in-memory browser sessions, implementing an incremental SSE parser, client message state machine, and budget-aware context truncation.

This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.

See Pro plans

More OpenAI problems