Module 2 of 8
Building with the Claude API
Why: Every Claude system, however many agents it has, is built from the same request. Understand that request and its failure modes, and the rest of the course is composition.
You read TestPilot’s request line by line before sending it, then make it production-shaped: output your pipeline can trust, a rule enforced in code, follow-up questions, screenshots as evidence, an API that sometimes says no, and a bill you can predict. Then you plug TestPilot into your own Playwright or Selenium suite.
Lessons
- Read the request, then send it (25 min) - beginner
- Structured output you can trust: severity, test first (30 min) - intermediate
- A rule the model must not break (30 min) - intermediate
- Follow-up questions: the conversation lives in your code (30 min) - intermediate
- Screenshots as evidence (25 min) - intermediate
- When the API says no: errors, retries and timeouts (25 min) - intermediate
- Tokens are money: model, effort, limits and caching (30 min) - intermediate
- TestPilot in your own Playwright or Selenium suite (30 min) - intermediate
- Quiz: API basics (15 min) - intermediate
Lessons (9)
1
Read the Request, Then Send It
2
Structured Output You Can Trust: Severity, Test First
3
A Rule the Model Must Not Break
4
Follow-up Questions: The Conversation Lives in Your Code
5
Screenshots as Evidence
6
When the API Says No: Errors, Retries and Timeouts
7
Tokens Are Money: Model, Effort, Limits and Caching
8
TestPilot in Your Own Playwright or Selenium Suite
9
Quiz: API Basics