Manuals / AI Agents & Workflows / Chapter 2
Build · beginner · ~40 min · Chapter 2 of 3
The tool loop
Observe → think → act → observe. Cap steps. Log every tool call.
Tools are APIs with manners
Give each tool a clear name, input schema, and “when to use” note in the system prompt.
Tools are APIs with mannersDrag stickies · tap for tips
Example
system: You may use search(), fetch_url(), draft_email().
Stop after 5 tool calls. Cite sources.
Do this now
Write a system prompt with 2 tools and a step budget.
Pro tip: Prefer retrieval over inventing facts.
Was this step clear?
Chapter learning outcomes
Clear these before you leave