What happens when you send a message to an AI app

You type a question and an answer appears. What happens in between, and which part is slow when it's slow?

System design · about 5 minutes

An AI app is a few parts passing your message along: your browser, the app's server, its database and the AI company. Each part does one job. When you can name the parts, you know where to look when the app is slow or broken.

Picture: your browser sends the question to our server and gets the answer back; the server checks, reads, then asks; it talks to our database, which keeps your chats and notes, and to DeepSeek, which writes the answer