Why this work, at that time
Zillow announced AI mode in March 2026, Gemini-connected rental tours in July and a connector for Claude in October. This design illustrates internal integration patterns. It is not the architecture of those products.
The problem
Renter questions span public policy, listings, preferences and live tour availability. A light orchestration layer can route them to deterministic backends, but the model must never invent an appointment or place a reservation. Out of scope: autonomous booking writes, arbitrary browsing, agent-to-agent delegation, fine-tuning and any recommendation that relies on protected-class data.
The team and my part
Modeled ownership: LangGraph state transitions, two read-only MCP tool adapters, auth context passing, trace ids, the confirmation handoff and integration tests. A platform lead owns gateway and service auth, a touring engineer owns the availability API, and a frontend engineer owns slot cards. QA, security, product, legal and fair-housing reviewers sign off.
Data and index design
agent_run(run_id, session_ref, intent, state, tool_count, policy_decision, model_version, prompt_version, ttl); tool_audit(trace_id, actor_scope, tool_name, args_hash, resource_id, http_status, duration_ms, result_version); tour_slot_card(provider_id, property_id, slot_id, begins_at_utc, expires_at, version, booking_url); consent_handoff(run_id, slot_id, handoff_nonce, confirmed_in_existing_ui, expires_at).
API and event contract
POST /v1/rental-assistant/runs returns runId, status, message, toolEvidence and actions such as open_booking_ui. Example tools, not a published Zillow catalog: search_rentals({region, maxRent, beds, petsAllowed, limit}); get_public_property_policy({propertyId, policyType}); get_tour_slots({propertyId, fromUtc, toUtc}).
Core logic
A fixed graph runs parse_intent, policy_gate, choose_tool, execute_read_only_tool, validate_result and respond_or_ask_user, with no free-form path. Each run is capped at three tool calls and two model turns. Auth travels as server-side scoped context, never as a user-supplied parameter. Only a validated click enters the booking page, which rechecks the slot version.
Implementation sequence
- Diagram trust boundaries and decide which steps need a model. Keep price, bedroom and availability filtering deterministic.
- Implement typed graph state and nodes for classify, validate, call, finalize and abstain, with step limits.
- Build MCP tool adapters with strict JSON schemas, allowlisted operations, per-user rate limits and end-to-end trace ids.
- Add a policy gate for public-property entitlements and protected-class steering. Convert risky queries into neutral, factual alternatives.
- Add a short-lived checkpointer with session TTL, cancellation, transient-only retries and fail-closed auth.
- Integrate React property and slot cards, then failure-inject 429s, stale slots, missing ids and ambiguous requests.
- Run a limited opt-in pilot on 100 to 300 scenario prompts, then document rollback and ownership.
Environments and release
Local mocks, then CI with graph-transition and tool-auth tests plus the golden set, then staging fault injection, shadow, and an opt-in flag at 1, 5 and 15 percent. Global and per-tool kill switches disable the assistant while search and booking APIs keep running.
Failure drill
A tool returns an expired slot. The card carries a version and expiry, the normal booking screen revalidates, and the renter sees current times instead. A model response never confirms a booking.
Scale and targets
Modeled scale
- 2,000 opt-in runs per day at 1.8 tool calls per run
- 3,600 tool calls per day, about 0.042 per second on average
- Synthetic burst of 12 runs per second, load tested separately
Acceptance targets
- Tool selection accuracy of at least 95% on 250 approved scenarios
- Zero unauthorized write operations by construction
- p95 under 4.5 s for two-tool flows, with fallback after 7 s
- Modeled cost ceiling of $0.04 per run
The trade-off I would defend
A graph is used only for multi-step requests, and it is far smaller than a general agent platform. Giving up autonomy costs a click, and it keeps availability and booking authority in systems that can be audited.
