System Design
20. System Design Case StudiesAnimated
AI Chatbot Platform
A chatbot service with retrieval, memory and safety.
The idea
A gateway handles sessions, retrieves context, calls the LLM, filters output and logs.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
The gateway authenticates and applies limits per tenant.
- step:
- 1/4
- at:
- User
1/11
The green dot is a request moving through the system.
Step by step
- 1User sends a message
- 2Load session memory
- 3Retrieve context
- 4Generate, filter and stream
Where it is used
Customer support bots.
Watch out for
Cost, latency and hallucination control.