A chatbot talks. An agent looks it up.
A plain chatbot answers from whatever it already knows, in one pass. An agent behaves more like a colleague with your course open beside them: it works out what it needs, opens the right report for that course, reads the rows that are actually in it, and only then writes an answer. The numbers come from your class, not from the model's memory.