ashrivastava
menu
// case study — ai-workflow-builder← all projects

AI Workflow Builder

A real working multi-step LLM workflow tool. v0.1 shipped three curated presets (Research → Summarise → Tweet · Code → Review → Refactor · Email → Classify → Reply); v0.2 added `fetch` and `assert` step types plus an export-to-ai-eval-YAML button; v0.3 added `runIf` conditional execution so any step can declare a condition on a prior output — two mutually-exclusive conditions in sequence form an if/else branch; v0.4 adds `parallel: true` so consecutive parallel-flagged steps fan out via Promise.allSettled — the multi-agent reviewer preset runs three reviewers concurrently then synthesises. Every prompt and input is editable in place. Each step streams independently; outputs flow into the next via {{stepId.output}} templating. Sits alongside the existing AI ops toolkit: ai-eval evaluates single calls, PR Reviewer is a fixed 4+1 workflow, this is the user-defined version. Lives at /workflow.

Experimental·ai·2026

Built in public to learn something or prove a pattern. Some are published packages, some are demos that live on this site.

// hero
AI Workflow Builder
// stack
frontend
Next.js 15React 19TypeScriptTailwind CSSlucide-react
backend
Next.js API RoutesOpenRouter (BYOK)
database
tools
Streaming SSEPer-IP rate limitingTemplate-string substitution
// challenges
  • Most prompt-chain tools require visual flow editors that get unwieldy fast; raw YAML editors lose the wow factor
  • Showing real-time step execution requires per-step streaming, error isolation, and visible state
  • Outputs flowing into prompts is fiddly — needs template substitution that's obvious in the UI
// solutions
  • Preset-first UX: pick a workflow, see all steps + inputs immediately, run with one click; advanced users edit any prompt inline
  • Per-step state machine (idle → running → done/error) with per-step latency surfaced; final-output card highlights the deliverable
  • Simple {{stepId.output}} and {{input.key}} substitution shown plainly in the prompt-template view — no hidden magic
// outcomes — impact3

Working tool with three useful real-world chains out of the box

Built on the existing /api/demo/generate route — no new server plumbing required

Natural sibling of ai-eval (evaluate single steps) and PR Reviewer (fixed workflow)

// related — other projects
Own productpinnedfeatured
ai2026

JobJam.io — AI Job Search & Application Platform

AI-powered job search platform: discover roles, evaluate fit, tailor applications, and close skill gaps. One-time pricing, no subscriptions.

AILLMsJob SearchAnthropic Claude+3
Own productpinnedfeatured
ai2026

Fathohm — Comprehension-Debt System of Record

See how much of your codebase no human understands. A treemap of your repo colored by human comprehension score, with a tracked, assignable metric for 'who understands what' in an AI-native codebase.

AIDeveloper AnalyticsGitHub AppLLM Classification+2
Own productpinnedfeatured
ai2026

Grenz — Firewall for AI Agents

A local firewall for AI agents: scoped, revocable, observable permissions instead of your full GitHub token. Deny-by-default, MIT licensed, live at grenz.dev.

AI AgentsSecurityIAMMCP+2