Evolving Quality Control AI Agents with LangGraph
rexera · Tech · 2024 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)
Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.
Problem
Domain: Real estate transaction quality control
Rexera needed AI quality-control checks for thousands of real-estate workflows per day, but single-prompt LLM checks and later CrewAI agents struggled with complex multi-step workflows, wrong decision paths, and false positives or false negatives.
Constraints:
- The QC system reviews errors across documents, workflow timeliness, client communication, and counterparties.
- Single-prompt LLMs had limited context and could not navigate multi-dimensional workflow scenarios properly.
- CrewAI improved metrics but still let agents choose wrong decision paths in complex cases.
- Rush-order workflows required different checks from standard orders.
- The system needed deterministic enough control to prevent delays and issues in real estate transactions.
Architecture
Rexera evolved its QC architecture from single-prompt LLM checks to CrewAI multi-agent checks and then to LangGraph. The final LangGraph design uses tree-like branching and cycles to route each transaction through custom decision paths, such as a rush-order branch versus standard-order checks, while measuring false positives, false negatives, execution speed, and cost efficiency.
Diagram confidence: explicit (topology described by the source).
flowchart LR real-estate-workflow-input["Real estate workflow input"] --> quality-control-application["Quality Control application"] quality-control-application --> single-prompt-llm-checks["Single-prompt LLM checks"] quality-control-application --> crewai-agents["CrewAI agents"] quality-control-application --> langgraph-decision-tree["LangGraph decision tree"] single-prompt-llm-checks --> metrics-evaluator["Metrics evaluator"] crewai-agents --> metrics-evaluator langgraph-decision-tree --> rush-order-branch["Rush-order branch"] langgraph-decision-tree --> standard-order-branch["Standard-order branch"] langgraph-decision-tree --> metrics-evaluator rush-order-branch --> qc-finding-output["QC finding output"] standard-order-branch --> qc-finding-output qc-finding-output --> quality-control-application
Components
| Component | Role | Interacts with |
|---|---|---|
Real estate workflow input |
Provides transaction data, documents, SLA state, client communications, and counterparty interactions for review. | Quality Control application |
Quality Control application |
Reviews thousands of workflows daily and coordinates AI checks. | Single-prompt LLM checks, CrewAI agents, LangGraph decision tree |
Single-prompt LLM checks |
Initial QC checks for document accuracy, SLA compliance, and other workflow issues. | Quality Control application, Metrics evaluator |
CrewAI agents |
Multi-agent iteration where different agents oversee different transaction-process areas. | Quality Control application, Metrics evaluator |
LangGraph decision tree |
Custom branching and cyclic control flow that directs checks based on scenario-specific requirements. | Rush-order branch, Standard-order branch, Metrics evaluator |
Rush-order branch |
Checks whether requested rush orders were acknowledged, executed, and marked correctly. | LangGraph decision tree, QC finding output |
Standard-order branch |
Runs regular processing checks for non-rush workflows. | LangGraph decision tree, QC finding output |
Metrics evaluator |
Tracks false positives, false negatives, execution speed, and cost efficiency across architecture iterations. | Single-prompt LLM checks, CrewAI agents, LangGraph decision tree |
QC finding output |
Reports accurate workflow issues to prevent delays or missed transaction problems. | Quality Control application |
Data flow
A real-estate workflow enters the QC application, task-specific checks inspect documents, SLA timing, communications, and transaction context, LangGraph routes the case through branches such as rush-order handling, the agent compares requested and recorded order states, and the QC finding flags inconsistencies before they cause delays.
Why this architecture
Rexera moved to LangGraph because the CrewAI system improved headline error rates but still lacked precise control over decision paths. LangGraph let Rexera encode branching for complex workflow scenarios so the QC application could follow the right checks rather than letting agents wander into wrong paths.
Models used: LLMs · LangChain · LangGraph · CrewAI · Single-prompt LLM checks · Quality Control application
Scale
- Rexera operates in a $50 billion real estate transaction industry.“Rexera is revolutionizing the $50 billion real estate transaction industry by harnessing AI to automate manual workflows.”article, stated
- The QC application reviews thousands of workflows daily.“Rexera has developed a specialized QC application that reviews thousands of workflows daily.”article, stated
- Single-prompt checks had 35% false positives and 10% false negatives before CrewAI.“False positives** (incorrectly flagging non-issues) dropped from 35% to 8%.”article, stated
- CrewAI reduced false positives to 8% and false negatives to 5%.“False negatives** (failing to flag real issues) fell from 10% to 5%.”article, stated
- LangGraph reduced false positives and false negatives to 2% each.“False positives reduced from 8% to 2%”article, stated
Alternatives considered (roads not taken)
Single-prompt LLM checks.
Rejected because: They could not grasp the full workflow context or navigate multi-dimensional real-estate scenarios.
CrewAI multi-agent checks.
Rejected because: CrewAI improved error rates, but the agents still sometimes chose wrong decision paths in complex workflows.
Use the same check path for rush and standard orders.
Rejected because: Rush orders require scenario-specific routing to check both acknowledgment/execution and whether the system recorded the rush status correctly.
Patterns
multi-agent-orchestration (workflow-specialized agents)
Rexera tried CrewAI with different agents overseeing different parts of the real-estate transaction process.
eval-driven-development (quality-control iteration)
Rexera compared each architecture using false positives, false negatives, execution speed, and cost efficiency.
guardrails-io-filtering (deterministic decision routing)
LangGraph constrained checks through custom branches so the QC application followed scenario-specific paths instead of arbitrary agent routes.
Tradeoffs
How to improve beyond simple LLM checks.
Chose CrewAI multi-agent decomposition over Single-prompt LLM checks.
Rationale: Dividing the process among agents reduced false positives and false negatives, even though it was not precise enough as the final architecture.
How to gain precise decision control.
Chose LangGraph tree-like branching and cycles over CrewAI agents choosing paths dynamically.
Rationale: LangGraph gave Rexera control over scenario-specific paths and reduced randomness in QC decisions.
How to handle rush-order QC logic.
Chose Dedicated rush-order branch over Standard-order processing path.
Rationale: Rush orders require checking acknowledged rush requests, execution, and whether the system marks the order type correctly.
Gotchas (what bit them)
Single-prompt LLMs missed workflow complexity.
Root cause: They had limited context and could not navigate multi-dimensional real-estate scenarios.
Resolution: Move first to multi-agent checks and then to LangGraph-controlled decision paths.
Multi-agent systems can still take the wrong route.
Root cause: CrewAI agents were capable but lacked precise control over decision-making in complex cases.
Resolution: Use LangGraph to custom-design scenario-specific paths with branches and cycles.
A QC agent can miss a discrepancy even when it recognizes the high-level outcome.
Root cause: CrewAI identified that the rush order was acted on but missed whether the order type was marked correctly.
Resolution: LangGraph's custom path checked both the rush acknowledgment/execution and the recorded order-type state.
Evaluation
Rexera evaluated QC architecture iterations using false positives, false negatives, execution speed, cost efficiency, and side-by-side outputs on rush-order scenarios.
Metrics: False positives · False negatives · Execution speed per transaction · Cost efficiency · Rush-order scenario accuracy
Outcomes
- CrewAI reduced false positives from 35% to 8% and false negatives from 10% to 5%.
- LangGraph further reduced false positives and false negatives to 2% each.
- The LangGraph rush-order path identified an order-type discrepancy that CrewAI missed.
- The final QC application became more deterministic and complete for complex real-estate workflows.
Rexera reports thousands of daily workflow reviews in a $50 billion real-estate transaction market, with published error-rate reductions across the single-prompt, CrewAI, and LangGraph iterations.