Week 2
SDK, chat, generative UI and memory
By Anusheel Bhushan, co-founder of PlankAnatomy of an AI app, from a single API call to a full-stack chat application with generative UI and memory.
What the week builds toward
WorkBot's web chat, running on either provider and deployed on Vercel. It streams responses and shows tool calls in the UI. WorkBot also generates pages from a safe component catalog. It remembers each visitor's entities, cases and preferences.
The 5 days
- Day 6
Anatomy of an AI app
Call the Anthropic and OpenAI SDKs, tune their sampling controls, stream replies, and build a CLI chatbot that tracks its own cost.
You ship: WorkBot's conversation core: a streaming CLI chatbot on either provider, with model switching and cost tracking.
- Day 7
Tool use and chaining calls
Implement tool use end to end, run multi-turn tool loops, and chain focused model calls into a research pipeline.
You ship: 4 tools running on both providers, and a research command with citations.
- Day 8
Full-stack AI chat app
Build and deploy a streaming chat app in Next.js, with tool execution visible in the interface.
You ship: WorkBot's web chat deployed on either provider, with tool status and results in the UI.
- Day 9
Generative UI
Generate dashboards and forms from a constrained component catalog, rendered as the JSON streams in.
You ship: An AI dashboard generator with a catalog of 15 or more components, and 3 demo scenarios.
- Day 10
Context and memory
Manage conversation context within token limits, add long-term memory, and ship WorkBot's web chat with memory.
You ship: WorkBot's web chat with context management and memory, deployed.
