Module 5 · Design an AI Agent · Lesson 11 of 34
The agent spec
Goal, tools, instructions, limits and a stopping rule: write the one-page design before any code.
In this lesson · about 20 minutes
- Decide whether a task needs an agent at all
- Write the six parts of an agent spec
- Apply least privilege and human approval to risky tools
First question: do you need an agent?
Agents are flexible, but slower, costlier and harder to predict than a fixed program. Use the simplest thing that works:
- One model call: summarise, classify, extract, translate. The input has everything needed.
- A fixed workflow (a few calls in a set order, Module 12): the steps are known in advance.
- An agent: the steps depend on what it finds along the way, such as investigating a customer's problem, researching a question, or fixing a failing test.
The six parts of an agent spec
- Goal and success criteria: what the agent is for and how you will know it worked.
- Users and scope: who talks to it, what is in scope, what is out.
- Tools: the actions it can take. Each one with a clear name, description and inputs.
- Instructions: the system prompt: role, rules, tone, format, when to ask for help.
- Limits: maximum steps, time and cost per task; which actions need a person's approval.
- Stopping rule and hand-over: when it is done, when it gives up, and who takes over.
Try it · simulator
Agent spec builder and test drive
Design a help-desk agent for a bakery: choose its tools, approvals, instructions and limits. Five test requests show how your design behaves, and a review flags the risks.
Tools the agent may use
Instructions written
Test drive: 1 of 5 requests handled well
Spec review
Your agent spec (summary)
AGENT: Bloom Bakery help desk - Role and audience: ✓ written TOOLS: - search_help_articles (read) LIMITS: max 8 steps per request STOP: (none)
Check your understanding0 of 3 correct
Quiz score: 0 of 3
Written by Noviq Academy in its own words. The simulators are small teaching models that keep the real idea and leave out the scale; their numbers (prices, speeds, scores) are illustrative. Model names, prices and features change quickly, so check your provider's current documentation before you build. Read-aloud uses your device's built-in voices.