A chatbot answers. An agent gets something done.
Both use a language model, and both can look like a chat window. The difference is what happens after the user hits send. A chatbot replies with text and stops. An agent can look things up in your systems, work through several