← Week 10: Assemble at scale: build Claude into your product SESSION 01 · TUESDAY

Put Claude to work inside your product

Tonight your product makes its first call to Claude: from your server, with a key you control, a reply you check and a person who decides.

THE CLAUDE APISPEND LIMIT FIRSTSTRUCTURED OUTPUTFAKE-RESPONSE TESTSFEATURE FLAG
Present slides Full screen, one slide at a time · 11 slides
TONIGHT 01

By the end of tonight you can

  • Explain how your app talks to Claude: your server, a key, a request, a response, your checks
  • Set up the Claude Console safely: spend limit first, a key per environment, the key in .env
  • Describe a Messages API request and response in plain English, including token usage
  • Ask Claude for structured output, validate it in code, and say when tool use fits
  • Build the AI slice behind a feature flag, with tests that use a fake Claude response

OUTPUT · AI slice working on staging behind a feature flag, with tests

THE IDEA 02

How an app talks to Claude

  1. YOUR SERVERYour product’s back end makes the call; the user’s browser never talks to Claude
  2. A KEYA secret from the Claude Console that proves the call is yours and bills your account
  3. A REQUESTThe model, standing instructions, the user’s text and only the data Claude needs
  4. A RESPONSEClaude’s reply, the reason it stopped, and how many tokens it used
  5. YOUR CHECKSCode checks the reply before anyone sees it; a person approves anything that matters

Claude suggests, your code checks, a person decides. That order never changes.

THE IDEA 03

Claude Code builds your product vs Claude runs inside it

Claude Code builds it

  • A tool at your desk that plans, writes and tests your code with you
  • You watch each step and approve its edits and commands
  • Its mistakes land in your repository, where tests and review catch them

Claude runs inside it

  • A call your product makes for users, many times a day, while you’re not watching
  • Each call uses tokens billed to your Console account, through your key
  • Its mistakes reach users unless your code checks the reply first

Tonight you use the first to build the second. Same Claude, different jobs, different safeguards.