Let the model understand.
Let your code decide.
QuoteGraph turns a customer's details into a calculated insurance quote. Models recognize information and handle ambiguity. Code validates facts, applies example rating rules, supports revisions, and records acceptance.
A demonstration application and rating engine. Inspect the source ↗
Follow the application from intake to acceptance.
Each stage uses the same prompt, tool, validation, and transition contract. The graph declares business history spaces and a separate termination history.
Driver
Capture identity and license details. Reject invalid dates, unsupported state codes, and inconsistent licensed years before saving the profile.
See validated collectionVehicle
Resolve the customer's vehicle against a code-owned catalog. Ask for disambiguation when several matches remain, then save an accepted selection.
See catalog disambiguationInsurance history
Collect prior coverage and incidents with stage-specific validation. Its business history space keeps detailed incident dialogue separate from general intake.
See named historiesCoverage
Validate the coverage request against accepted facts. Calculate tiers with a deterministic rating engine, then hand off to presentation.
See code-owned ratingQuote and acceptance
Present tiers, apply deductible changes, return to coverage when needed, and record a chosen tier. Code constructs exact confirmation content.
See revisions and acceptanceDeclare what is shared.
Keep ownership visible.
Driver, vehicle, and coverage nodes share intake history. Insurance incidents and quote presentation use separate business spaces. The graph's model policy and restore policy have established locations alongside topology.
Explore the graph and state registryhistorySpaces: [
[DriverNode, "quote-intake"],
[VehicleNode, "quote-intake"],
[HistoryNode, "quote-incidents"],
[CoverageNode, "quote-intake"],
[QuoteNode, "quote-present"],
[TerminateSessionNode, "quote-terminal"],
]Inspect the behavior before connecting a model.
The deterministic suite covers validation, state, transitions, rating, and acceptance. The tutorial includes a recorded live replay and instructions for a separately configured provider-backed run.
git clone https://github.com/picoflowio/ezgraph-demo.git
cd ezgraph-demo
yarn
yarn test:quote-graphGive your next LangGraph application a consistent foundation.
Run the starter, inspect the session, and decide whether the node contract fits your team.