Part 15 / Topic 5 of 6
Prompt chains
One prompt doing five jobs does all five poorly. A chain gives each step its own prompt with a checkable output:
ticket → [extract fields] → JSON → validate
→ [classify intent] → category → route
→ [draft reply] → text → review
Benefits: each step is testable alone (section 6), failures localise ("extraction broke, routing is fine"), and cheap steps can run on smaller models. The cost is latency — chain where quality matters more than milliseconds.
Done here? The practice set for Part 15 — 4 exercises with solutions — is on the part page.