Case 03
Pranik.ai · Built with AI coding tools
Hat 02 · Product leadership
Agent Flow Blueprint: a spec format for products that branch on conversation.
PRDs and user stories don’t describe agents that branch on what a patient says. So I built, in Claude Code, the living blueprint our whole team now works from: a single source of truth for 30+ agent workflows.
- 30+agent workflows specified
- 1source of truth for the whole team
- Team-wideused by product, engineering, QA and leadership
- 01There is no industry standard for specifying agentic, conversation-driven product flows. PRDs and user stories fall apart when the product branches on what a patient says.
- 02I was tired of remaking FigJam flows, documents and sample scenarios every time a flow changed. So I built a tool in Claude Code.
- 03The Agent Flow Blueprint and Tracking System is now the team’s single source of truth: a living PRD for 30+ agent workflows, with step-level flags, performance and bugs.
- 04AI, mobile, backend and QA build and test against it. Leadership tracks progress in it instead of asking for exports.
- 05No hard number yet. The signal so far: fewer meetings and touchpoints, and no more PRDs falling out of sync.
Why PRDs break for agents
A traditional PRD describes screens and user stories. Click this, see that. An agentic product does not work like that. A patient says something, the agent decides which flow it belongs to, hands off to a sub-agent, calls a tool, changes what the screen shows, and sometimes loops back because the answer was unclear.
Every one of those decisions needs a spec: what the step is for, when it is allowed to move on, what it calls, and what the user sees. And every one of them changes weekly as we learn from real conversations.
What we tried first
Three ways to spec an agent
Option A
PRDs and user stories
- Describe screens, not branches
- No place to say when a step may move on
- Written once, stale by the next sprint
Didn’t fit
Option B
FigJam flows, long docs and sample scenarios
- Familiar to everyone
- Three artifacts to remake on every change
- Drifted apart as flows changed
Retired
Option C
A living blueprint, built in Claude Code
- One page per workflow: spec and tracker in one
- Status, flags and bugs at the step level
- Someone has to keep it current (product does)
In daily use
What I built
I built the Agent Flow Blueprint and Tracking System myself, in Claude Code. It treats each agent workflow as a living blueprint rather than a document: the flow, its steps and the rules between them sit in one place, and every step carries its own status, so the spec and the progress tracker are the same thing.
Anatomy of a living blueprint
The spec and the progress tracker are the same page.
- Step Greet + identify
- Router Understand the need
- Sub-agent Symptom intake
- Step Suggest specialty
- Step Offer slots
- Tool call Confirm + remind
Sub-agentSymptom intakeflagged
- Goal
- Ask follow-ups until the complaint is clear. ← Why this step exists
- Moves on when
- Chief complaint, duration and key negatives are captured. ← The exit rule AI engineers prompt against
- Tool call
- save_intake() ← What backend must persist
- UI shown
- Body-part picker ← What mobile renders at this stage
- Status
- Flagged ← What QA and leadership track
Today it holds 30+ agent workflows, with step-level flags, performance and bugs.
How the team uses it
One source of truth, six readers
What changed
The bigger change is in how we talk. When someone says “the intake flow is broken”, we now point at a specific step, not at a long document.
Why it matters beyond Pranik
Every team building agents is going to hit this wall. The interesting product question is not only what the agent should do, but how a cross-functional team should describe, build and track what it does. This tool is our team’s answer, built with the same AI coding tools that are changing how products get made.
Shared at a public-safe level. Vendor names, internal data and patient examples stay out. Happy to go deeper in a conversation.