Building AI Product Features
Advanced · 13 missions · about 4 hours
Go past the demo. Stream replies, run tool-use loops, trim memory to a budget, cache, retry, rate-limit and guard every request, then ship a chat endpoint that holds up under real users and real bills.
Missions
- Streaming: parse server-sent events: Turn a raw SSE stream into events and text.
- UX patterns for AI features: Streaming, control, sources and honest failure.
- Fix the AI: streams arrive in pieces: Network chunks don't line up with events.
- The tool-use loop: Run tools until the model is done, safely.
- Conversation memory on a token budget: Keep the newest turns that fit, and nothing broken.
- Know your bill: cost from token usage: Turn usage numbers into dollars per request.
- Response caching that is actually correct: Stable keys, TTLs, in-flight dedupe, no cached errors.
- Retries, backoff and model fallback: Survive overloads without hammering the API.
- Per-user rate limiting with a token bucket: Bursts are fine; abuse is not.
- Fix the AI: guardrails that fail open: Moderation that blocks nothing when it matters.
- Versioning system prompts: Treat prompts like code: review, test, roll back.
- Spec an AI feature for your coding agent: One prompt that covers UX, limits, safety and evals.
- Boss: a production chat endpoint: Validation, limits, trimming and a model call, as a handler.
Part of: AI Product Engineer career path