Module 10 · Lesson 1 · 15 min read
From idea to design
From Idea to Design
Introduction
Most agent projects that fail do not fail because of the code, but because the problem was not well defined or because the team built an agent where a simple workflow would have been enough. In this lesson we learn a method for turning a vague idea into a clear design document that answers the questions of user, task, tools, memory and autonomy level before writing a single line.
Learning objectives
- Formulate the problem in terms of the user, the task and the success criterion
- Distinguish between needing a fixed workflow and needing an agent
- Define the tools, the memory, the autonomy level and the human approval points
- Write an agent design document and check that it is complete
Start with the problem, not the technology
The phrase "We want an AI agent for the college" is not a project idea yet. Turn it into three specific answers:
- Who is the user? First-year students? Student affairs staff?
- What is the painful recurring task? For example: students ask the same questions about the add/drop dates, and staff spend hours replying.
- How do we know we have succeeded? For example: a correct answer that cites its source, and escalation of cases the regulations do not cover.
The success criterion here is the seed of the evaluation set we learned to build in the Evaluating agents lesson.
Do you really need an agent?
Anthropic's guide "Building effective agents" distinguishes between workflows, where the system follows a path predefined in code, and agents, where the model decides its steps and its use of tools dynamically. And it advises starting with the simplest solution.
| Question | If the answer is yes |
|---|---|
| Are the steps fixed and known in advance? | A workflow, or even a single model call |
| Do the number and order of steps vary from case to case? | Agent |
| Is a mistake very costly and irreversible? | Less autonomy and more human approval |
| Do we need recent or private information? | A retrieval or search tool |
An FAQ agent for registration may at first be served by a simple pattern: retrieval from the regulations, then an answer. There is no need for multi-step planning or multiple agents.
Design components
After defining the problem, we design the components we studied in the academy's modules:
- Instructions: the agent's role, limits and style.
- Tools: a small list; each tool has a name, a description and an input schema, classified as read or write.
- Memory: short-term memory for the conversation? A knowledge base for retrieval? Do we need long-term memory about the user at all?
- Planning: a simple ReAct loop, or plan-then-execute?
- Autonomy level: what does the agent do on its own, and what does it only suggest?
- Evaluation and limits: the step limit, the success criteria and the approval points.
Practical example: a design document in a structured format
Let us turn the idea of a "registration dates assistant" into a design document that can be checked automatically. The following standard Python code uses dataclass and applies simple rules to the design:
from dataclasses import dataclass, field
@dataclass
class Tool:
name: str
description: str
writes: bool = False
needs_approval: bool = False
@dataclass
class AgentDesign:
user: str
task: str
success_criteria: list
tools: list = field(default_factory=list)
memory: str = "conversation"
max_steps: int = 6
def problems(self):
issues = []
if not self.success_criteria:
issues.append("There are no success criteria")
if len(self.tools) > 5:
issues.append("Too many tools for the first phase")
for t in self.tools:
if t.writes and not t.needs_approval:
issues.append(f"Write tool without approval: {t.name}")
return issues
design = AgentDesign(
user="First-year students",
task="Answering about the add/drop dates from the regulations",
success_criteria=["An answer citing its article", "Escalation when the information is missing"],
tools=[Tool("knowledge_search", "Searches the registration regulations"),
Tool("create_ticket", "Creates a request for student affairs", writes=True)],
)
print(design.problems())The program will print a warning because the create_ticket tool writes without approval. This kind of check turns the review from a general discussion into a concrete list.
Reviewing the design before building
Questions the document should answer
- What does the agent do when it does not find the answer in the regulations?
- Who receives the tickets it creates, and within how many days do they reply?
- What personal data does the agent see, and does it keep it?
- What will the agent never do, even if asked?
Before moving on to the code, show the document to at least one real user and ask them: is this the task that really causes you pain? Then write ten initial evaluation cases from their real questions. If you cannot write them, the design is still vague.
Summary
A good idea is formulated in terms of a specific user, a recurring task and a measurable success criterion. Not every problem needs an agent; a fixed workflow is simpler and more reliable when the steps are known. The design document defines the instructions, tools, memory, planning, autonomy level and limits. And the design can be represented in a structured format and checked automatically before building, then reviewed with a real user.
Terms
| Term | English | Definition |
|---|---|---|
| Workflow | Workflow | A system that follows a path predefined in code |
| Agent design document | Agent Design Doc | A document that defines the user, the task, the tools, the memory and the limits |
| Success criteria | Success Criteria | Checkable conditions that define when the task counts as done |
| Autonomy level | Autonomy Level | How much the agent does without human intervention |
| Scope | Scope | The limits of what the agent covers and what it refers elsewhere |
Review questions
- Turn the idea of "an agent for the university library" into specific answers about the user, the task and the success criterion.
- When do you choose a fixed workflow instead of an agent? Give an example.
- Why is having a write tool without approval a design problem that should be caught early?
- What is the benefit of writing ten evaluation cases before writing the code?
References
- Building effective agents (Anthropic, 2024) www.anthropic.com Reviewed on 2026-11-18
- Building agents track (OpenAI) developers.openai.com Reviewed on 2026-11-18
