Give an agent a goal, not a task. A task says what to do once: “chase the Ferrer invoice”. A goal says what should be true and keeps working: “keep debtor days under 45 without upsetting our 20 biggest customers”. A goal an agent can work towards has five parts: the outcome and its number, what it must not damage, what it may touch, who it asks, and when it runs.
From tasks to goals
Most people use agents one request at a time. That works, but you are still the one deciding what to do next, all day. The newer agents can take an outcome and choose the tasks themselves. We wrote about the idea, and the LangChain posts behind it, in Give your agents goals, not tasks.
| Team | A task | A goal |
|---|---|---|
| Sales | “Write a follow-up to this prospect” | Every website lead gets a useful first reply within two working hours, and one in five books a call |
| Operations | “Find out why order 4417 shipped late” | Keep late orders under 2% a month, and tell the customer before they notice |
| Finance | “Chase the overdue invoices from Ferrer” | Keep debtor days under 45 without upsetting the 20 biggest customers |
| Customer service | “Reply to this complaint” | Answer every “where is my order” email within an hour, and hand anything about money to a person |
The five parts of a goal
- The outcome and its number. Something the agent can check on its own to know whether it is getting closer: a time, a rate, a count.
- What it must not damage. Any number can be hit the wrong way. Debtor days fall fastest if you threaten every customer. Name the thing that matters more than the number.
- What it may and may not touch. Which systems it can read, what it can change, and what always goes to a person. With a goal you cannot predict every action in advance, so the limits matter more than with a task.
- Who it asks, and where. One channel for its questions and one named person who answers them within a day.
- When it runs, and when it does nothing. Every morning, every Monday, or when something happens. Doing nothing is often the right call. An agent that asks the same question every hour is worse than none.
The goal sheet
Fill one in per agent before it starts, and keep it where the agent and the team can both read it.
Agent: name, and the job it does (one job, across all cases)
Outcome: what should be true, with a number and a period
Must not damage: the customers, relationships, quality or costs that come before the number
May do alone: read, draft, change (list them, with systems)
Needs a person: the actions it proposes but never takes itself, and who approves them
Never: actions its login cannot take at all
Questions go to: channel, person, expected response time
Runs: schedule or trigger, and when it should stay quiet
Review: who checks its work, how often, in what batch
Plan: where it lists what it intends to do this week
The last line is easy to skip and should not be. A list of what the agent plans to do is the fastest way to see that it has misunderstood the goal, before it does anything.