Kavvo Agents

How to Prompt an Agent

November 29, 2026 · 4 min read · By the Kavvo Agents team

Start with the goal, not the task

Most bad agent prompts fail before the agent starts, because they describe a task instead of a goal. “Summarise this document” is a task. “Summarise this contract so a non-lawyer can decide whether to sign it, and flag any clause that costs us money if we cancel early” is a goal. The agent can now make judgement calls: what to include, what to leave out, and what counts as a warning.

Write the goal in one sentence, then add the outcome you will accept. What does done look like? A list of five risks with a quote for each? A working app with login and a database? A draft email ready to send? If you cannot describe done, the agent cannot either, and you will get a plausible-looking result that answers the wrong question.

Give context the agent cannot guess

An agent only knows what you give it. The context it needs falls into four buckets. First, the background: what is this about, who is it for, and what has already happened. Second, the materials: the documents, data, links and examples it should work from — attach them rather than describing them. Third, the rules of the world it operates in: your company’s tone, the style guide, the policies, the facts it must not contradict. Fourth, the examples: one good example of the output you want is worth a paragraph of description.

Keep context relevant and current. An agent that reads a stale price list or an outdated policy will give stale, confident answers. If a document has changed, say so and point to the new version.

Name the tools it may use

An agent is defined by what it can touch. Tell it explicitly: which tools, systems and data it may use, and which it may not. “Use the order database to look up the customer’s last three orders” is a permission. “Do not send emails or change records” is a boundary. Both belong in the prompt.

Give the agent the smallest set of tools that can do the job. A research agent needs search and read access, not write access. A support agent needs the knowledge base and the order lookup, not the refund button — unless refunds are exactly the job, in which case name the limit: refunds under a set value, with anything above going to a human. If the agent has a tool it does not need, it may use it at the worst moment.

Set constraints before it runs

Constraints are where most prompts are weakest, and where most agent failures come from. State the limits in plain language: what the agent must not do, what it must always do, and when it must stop and ask. Useful constraints include the format of the output, the length, the tone, the sources it must cite, the facts it must not invent, and the conditions for escalation.

Be specific about uncertainty. Tell the agent what to do when it does not know: say so, ask a question, or look it up — never guess. Tell it what to do when instructions conflict: which source wins. And tell it what to do when the task is bigger than expected: stop and report, rather than guessing its way through.

Check its work like a manager, not a fan

An agent’s output is a draft until you verify it. Check three things. First, the facts: are the names, numbers, dates and quotes right, and do they come from the sources you gave it? Second, the logic: does the reasoning hold up, or does it jump from a fact to a conclusion that does not follow? Third, the actions: did it touch only what it was allowed to touch, and is there a log of what it did?

The best habit is to ask the agent to show its work: cite the source for each key claim, list the tools it used, and flag anything it was unsure about. Then spot-check the claims that matter most.

A prompt template you can reuse

Use this shape for any agent, in any tool: goal, context, tools, constraints, and what evidence it should show.

Sources