Finance Demo

Multi-Agent Ticket Review

A review pipeline where parser, quality inspector and knowledge matcher collaborate through structured state.

Runnable demo · Repo path: workshops/workshop2-ticket-review

Structure Blueprint

Multi-Agent Ticket Review blueprint

Clickable pattern simulator

Interactive Browser Demo

This simulator does not replace the CLI run, but it makes each step, state, log, gate and final output visible in the browser.

Live pipeline

State inspector

Execution log

Current output

Step-by-step Design

01

Raw Ticket

The input remains a messy operational object: text, priority, component, environment, and user signal.

Context Triage
02

Parser Agent

The parser converts prose into structured JSON so the rest of the graph can reason on fields.

Tool Dispatch
03

Quality Agent

The quality role checks reproduction steps, environment, expected behavior, and evidence completeness.

Adversarial Review
04

Knowledge Agent

The knowledge role searches related tickets and detects duplicates or known incidents.

RAG Pipeline
05

Merge Node

Parallel findings are gathered into one decision state with score, risks, and routing reason.

Fan-out/Gather
06

Human Review

Weak, duplicate, or high-priority cases are escalated instead of auto-closed.

Approval Gate

Screenshots

Three sample tickets: approved, needs human review, potential duplicate.
Three sample tickets: approved, needs human review, potential duplicate.

Pattern Mapping

PatternDesign role
Handoff ChainEach agent owns one responsibility and passes a structured report.
Fan-out/GatherQuality and knowledge checks can run in parallel and merge later.
Adversarial ReviewA second role challenges ticket completeness and priority claims.
RAG PipelineHistorical ticket knowledge is retrieved as evidence, not guessed.
Approval GateRisk tier determines auto-pass, revision, or human review.

Design Insights

Topology before agents

Do not add agents first; decide whether work should be sequential, parallel, or review-gated.

JSON is the interface

The key collaboration surface is structured state, not free-form conversation.

Risk routing is the product

The system is useful because it decides what can move and what needs attention.

Run Path

cd workshops/workshop2-ticket-review python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt cd src python main.py # optional visual walkthrough open ../visual/index.html
READMEworkshops/workshop2-ticket-review/README.md
Blueprintimages/training/visual/workshop2-pattern-blueprint.png