Updated
The short answer
Use an automation when a task follows the same steps every time, like moving invoices into accounting. Use an AI agent when the input varies and needs judgement, like replying to customer emails. Most processes need both: an agent for the messy front end, automations for the fixed steps behind it.
Automations: same steps, every time
An automation is a set of rules: when an invoice arrives, save it, enter it, file it. It is fast, cheap to run and completely predictable. It is also brittle when the input changes shape.
AI agents: work that varies
An agent reads what came in and decides what to do, within limits you set. Customer emails, enquiries and documents rarely look the same twice, which is where agents earn their keep.
A simple test
Ask whether you could write the task down as steps on a sticky note. If you can, start with an automation. If the honest answer is “it depends on what they send”, you need an agent, often with automations behind it for the steps that don’t change.