Give your agent a job, not the world

Your AI agent is going off script. Wrong answers. Hallucinations. Inconsistent behavior.

Work with me
← All posts

The team says the model needs more training. Before you go there, look at what the agent is actually working with.

By default, an agent draws on everything it was ever trained on. No bounds usually means no focus. You’ve handed it the entire massive messy world and asked it to do one infinitesimally small specific job.

Think about a new hire who gets no onboarding, just “Handle customer issues.” They’ll do something. Whether it’s the right thing, done well, is mostly luck. Give the same person the background, the playbook, the goals and the guardrails, and you get a completely different, much better outcome.

Agents work the same way. The more clearly you define what the agent should think about (business goals, allowed actions, relevant knowledge, decision principles), the fewer possible responses it has to choose from. Fewer possibilities means fewer wrong answers.

The inputs that matter: work roles and goals, business documentation, process guidance, brand standards, KPIs. Most organizations already have these. They just haven’t put them deliberately in front of the agent.

Context is often the fix: information, specificity, clarity and constraints. How to use it well is the start of success. Feedback on usage powers the flywheel of wisdom.

Whether you’re building an agent, configuring one you bought or fixing one that’s misbehaving:

  1. Write down the agent’s job the way you’d explain it to a new hire: the role, the goal and what success looks like. If it helps, use a statement of intent: because [what’s wrong today], this agent will [do what] for [whom] so they can [what they gain].
  2. Gather what you already have: roles and goals, business documentation, process guidance, brand standards, KPIs. If they’re missing or out of date, fix that first. The agent can’t follow a playbook nobody wrote.
  3. Put what’s relevant to that job in front of the agent, and leave out what isn’t. Better context over more context. The agent will use whatever you give it.
  4. Spell out its allowed actions and your escalation rules, including what it should do when it doesn’t know.
  5. Then test it against that definition, in whole conversations or tasks, with ordinary cases and difficult ones.
  6. Define success and measure against it for the job you assign, the same way you would for a person in that role.
  7. Collect feedback on how it’s used, and feed it back into the agent’s context. Keep the flywheel turning.
  8. When it misbehaves, check the job definition and the context before blaming the model. More training rarely fixes an unclear job.

Could your agent’s job fit on one page? If you can’t write it down, your agent can’t do it.