When an agent is the wrong tool
Agents are slower, dearer and less predictable
An agent calls a language model several times for one job, and each call takes time and (with paid models) money. It can also take a different route each time it runs. So before building one, ask: could a normal program, or one model call, do this?
| The job | Best tool | Why |
|---|---|---|
| Send every parent a reminder the day before a lesson | A normal program | The steps never change. Code is free, fast and does it the same way every time. |
| Turn a parent's email into a tidy enquiry record | One model call | One step: read the text, fill in the fields |
| Answer "When does Term 2 start?" | One model call with search (RAG) | Look it up, then answer. No decisions about what to do next. |
| "Book my twins into maths on a day with room for both, and tell me the cost" | An agent | The steps depend on what it finds: which days have room, how many places, which price rule applies |
A good rule: use an agent when the steps depend on what you find along the way. If you can draw the steps as a fixed flowchart, write the flowchart in code.
Five questions before you build
- Is the task open-ended? Agents shine when there are many possible paths. If there's one path, code it.
- What can it break? Reading the timetable is harmless. Booking, paying, deleting or emailing a parent are not. Each risky action needs a check (Module 7).
- How will you know it worked? If you can't describe a right answer, you can't test the agent (Module 8).
- Is a slower answer OK? Agents can take 10 to 60 seconds. Fine for an email reply; too slow for a checkout page.
- What happens when it gets stuck? Every agent needs a way out: a step limit, and a hand-over to a person.
Design principles for agents people trust
Microsoft's agent course groups design advice around how an agent fits into people's work. In our words:
- Make it clear it's an agent. People should always know they're talking to software, what it can do, and how to reach a person.
- Show your working. Let people see what the agent looked up and what it did, not just its final answer.
- Keep people in charge. The agent suggests and prepares; a person approves anything that's hard to undo.
- Fit into the tools people already use. An agent that drafts replies in the existing inbox beats a new app nobody opens.
- Fail politely. "I'm not sure, so a staff member will reply" beats a confident wrong answer every time.
You'll build each of these into Front Desk as the course goes on.
Try it
For each job below, decide: normal program, one model call, or agent? Write one sentence on why.
- Every Friday, email each tutor their timetable for next week.
- Read a parent's message and decide whether it's about billing, bookings or a complaint.
- A parent asks to move both children to different days next term, keeping them on the same day if possible.
- Work out a family's term price from the price list.
(Our answers: 1 a normal program; 2 one model call; 3 an agent; 4 a normal program. Number 4 matters: you'll see in Module 3 what happens when you let the model do the sums.)
