The Oxford AI School

Home/AI Learning Hub/How To Prompt AI/How to Prompt an AI Agent

How to Prompt an AI Agent - The Seven-Line Brief

A chatbot answers questions. An agent goes off and does things. That changes what a good prompt looks like, and what happens when you get it wrong.

By Harry LangPublished 17 October 20267 minute read

The Obliging Automaton The Obliging AutomatonFig. 3
In this article
  1. What is an AI agent prompt?
  2. How is an agent prompt different from a chatbot prompt?
  3. What should an agent prompt include?
  4. How much freedom should I give an agent?
  5. What do real agent prompts look like?
  6. How do I check what an agent did?
  7. How do AI agents go wrong?
  8. How do I start with agents?
  9. How to prompt an AI agent: questions people ask

The short answer

To prompt an AI agent, write a brief with seven lines: the goal, the done-when test, the tools it may use, the boundaries, the check-in points, the output format and what to do if stuck. Start with read-only tasks, then extend its freedom once it has behaved well several times.

Prompting a chatbot is asking a question. Prompting an agent is handing over a job. The difference is the difference between asking a colleague what time the post goes and asking them to sort the post for the week.

An agent can open files, search the web, click through sites, write code and send things, usually in a long run of steps you do not watch. That makes the prompt less like a question and more like a Monday-morning brief to a new starter you cannot interrupt. Here is how to write one that does not end in tears.

What is an AI agent prompt?

An AI agent prompt is a set of instructions that tells an AI system what outcome to achieve, which tools and information it may use, what it must not do, and when to stop and check with you. It differs from a chatbot prompt because the AI will take many actions on its own before it answers.

If the difference between agents and chatbots is still fuzzy, read AI agents vs chatbots first, then come back.

How is an agent prompt different from a chatbot prompt?

Same task, two kinds of prompt
Chatbot promptAgent prompt
ShapeA question or a request for a draftA goal with a finish line
Who actsYou, with the AI's helpThe AI, with you checking
Mistakes costA bad paragraphA sent email, a deleted file, a wasted afternoon
What to includeRole, material, formatGoal, done-when, tools, limits, check-ins
ReviewRead the answerRead the log of what it did

What should an agent prompt include?

Seven lines. Skip one and the agent fills the gap with a guess, and agents guess confidently.

  1. GoalThe outcome in one sentence. Not the method.
  2. Done whenHow the agent knows it has finished. A number, a file, a list of ten.
  3. Tools and accessWhat it may use, and what it may read or change.
  4. BoundariesWhat it must never do. Name the expensive mistakes.
  5. Check-insWhere it must stop and ask before carrying on.
  6. OutputWhat you want back, in what shape, saved where.
  7. If stuckWhat to do when it cannot continue. Usually: stop and tell you.
Copy this :- the seven-line agent brief
GOAL: Find ten UK accountancy firms with 5 to 20 staff within 30 miles of Oxford that have posted about AI in the last 90 days.

DONE WHEN: I have a spreadsheet of exactly ten firms, each with a source link and a one-line reason it qualifies.

TOOLS: Web search and the browser. Read-only. Do not sign up to anything or fill in any forms.

BOUNDARIES: Do not contact anyone. Do not include firms you cannot verify from a public page. Do not guess.

CHECK-INS: After the first three firms, show me your method and wait for my OK.

OUTPUT: A table with firm, town, staff estimate, source link, reason. British English.

IF STUCK: Stop and tell me what is blocking you. Do not work around it.

Notice: the check-in after three firms is the cheapest insurance in this prompt. It catches a wrong method before it runs ten times.

How much freedom should I give an agent?

Think of a leash with four lengths. Start short. Lengthen it only when the agent has earned it on that specific task.

Autonomy levels for AI agents
LevelWhat the agent may doGood for
1. LookRead and report. Change nothing.Research, audits, summaries
2. DraftWrite drafts and save them for you to sendEmails, reports, replies
3. Act with approvalTake actions only after you click yesBooking, filing, posting
4. Act aloneCarry out the task and tell you afterwardsLow-risk, reversible, well-tested jobs

What do real agent prompts look like?

A Monday-morning competitor watch (level 1)

Copy this :- weekly research agent
Every Monday, check the websites of these five competitors [list]. Look only for new pages, price changes and new case studies since last Monday. Report what changed in a table of competitor, what changed, link, why it might matter. If nothing changed, say so in one line. Do not visit any other sites.

A tidy-up job for a shared folder (level 2)

Copy this :- filing agent
Look through the folder 'Client Documents 2026'. Propose a new folder structure and a renaming scheme, but do not move or rename anything. Save your proposal as proposal.md in the same folder. List any files you are unsure how to classify.

A first project with a coding agent (level 3)

Coding agents such as Claude Code are the most capable agents most people will meet. They also show why the brief matters. The more precise the goal and the stricter the boundaries, the better the result.

Copy this :- coding agent brief
Build a single-page website for a dog groomer in Witney with a price list, opening hours and a contact form that emails me. Plain HTML and CSS only. Before writing any code, show me your plan and wait for approval. Do not install anything or change any files outside this folder. When finished, tell me what to do to publish it.

If that last example made you curious, our Introduction to Claude Code and Building Agents in Claude Code courses are written for people who are not developers.

How do I check what an agent did?

Reading the final answer is not enough. An agent can reach the right answer by a dubious route or report success on something it did not finish. Ask for a debrief and read the evidence.

Copy this :- the debrief
Give me a debrief on what you just did. List each step you took, each source you used, anything you could not verify, and anything you assumed. Then tell me what you would check next if this were your job on the line.

How do AI agents go wrong?

How do I start with agents?

  1. Pick a boring taskSomething repetitive, low stakes and easy to check.
  2. Run it at level 1Let the agent look and report. Compare with what you would have done.
  3. Tighten the briefEvery surprise in the result is a missing line in the prompt. Add it.
  4. Lengthen the leashMove to drafts, then to approvals, once it behaves three times running.
  5. Write it downSave the final brief. The next agent job starts from it.

How to prompt an AI agent: questions people ask

What is the difference between a prompt and an agent prompt?

A normal prompt asks for an answer. An agent prompt hands over a task that the AI completes through many steps and tool actions. It needs a done-when test, limits on access and points where the AI must stop and check with you.

Do I need to code to use AI agents?

No. Many agent features in ChatGPT, Claude and Copilot work from plain-English instructions. Coding agents are more powerful but also respond to plain-English briefs.

Are AI agents safe to use at work?

Safe enough if you control what they can touch. Start read-only, keep approvals on anything irreversible, and keep sensitive data out of tools you have not vetted. See are AI agents safe for business.

How detailed should an agent prompt be?

More detailed than a chatbot prompt. Agents work for a long time on their own, so a vague line early becomes a long wrong run. Seven short lines usually do it.

What tasks suit an AI agent?

Repetitive, well-defined jobs with a clear finish: research roundups, document sorting, data checking, first-draft reports. Avoid anything where a single error is expensive or hard to reverse.

Can non-technical teams use agents?

Yes, with training. We run AI agent training for non-technical teams for exactly this.

Keep reading

The Oxford AI School crest

Learn to brief an agent before one briefs itself

Our agent courses take you from your first safe, read-only agent to building your own in Claude Code, with plenty of time for the questions people are usually too polite to ask.

Harry Lang
Harry Lang founded The Oxford AI School in Witney, Oxfordshire. He trains UK businesses and teams to use AI well, writes the Marketing Unfiltered newsletter, and is the author of Learn To Fly With AI.