1
LISTING AGENT
Accesses Offer Comparison View
Listing agent navigates to OfferComparisonView page for a specific listing. Page loads all submitted offers on that listing via base44.entities.Offer.list() filtered by property_address and status="submitted". Offers displayed in chronological order with financial summary cards.
2
SYSTEM
Triggers AI Re-Ranking Analysis
On page load, if H&B mode is active or multiple offers exist, system invokes analyzeOffers backend function with all offers from the listing as payload. Function aggregates offer data (offer_price, financing_type, closing_date, contingencies, earnest_money, etc.) and loads seller priorities from Listing.highest_best_priorities if H&B is active.
3
AI ENGINE
Scores Each Offer Against Seller Priorities
For each offer, LLM evaluates all weighted scoring factors: offer price premium, closing timeline alignment, financing type preference, earnest money %, contingency count, due diligence period, attorney match, special stipulation compliance. Each factor produces a 0–100 score. Weighted sum computed (high-weight factors contribute more).
4
AI ENGINE
Ranks Offers by Composite Score
All offers sorted by descending composite score. Top-ranked offer (highest alignment to seller priorities) flagged for recommendation to listing agent. Ranking array returned with offer IDs sorted by score. Ties broken by offer submission timestamp (earliest wins).
5
SYSTEM
Persists AI Recommendation to Portal
analyzeOffers returns ranking array and per-offer score breakdown. OfferComparisonView component receives response and renders comparison grid. Top recommendation highlighted with badge and color emphasis. Listing agent sees: (1) ranked offer list, (2) side-by-side financial comparison, (3) contingency audit, (4) AI score explanation.
6
LISTING AGENT
Reviews AI Recommendation & Rationale
Agent views top-ranked offer card with score breakdown: which factors helped/hurt the offer. Detailed card shows offer_summary, all extracted fields, contingency list, and financing details. Agent can expand individual score factors to see how each offer ranked on price premium, timeline, financing, etc.
7
LISTING AGENT
Exports Comparison Report or Presents to Seller
Agent uses OfferAISummary component to generate comparison report. OfferComparisonView includes "Download Analysis" button that exports a formatted PDF showing all offers ranked by AI score with full factor breakdowns. Agent prints or emails report to seller for informed decision-making.
8
SELLER
Reviews Ranked Offers & Expresses Preference
Seller reviews comparison report or views HighestBestAnalysis portal page (if H&B mode). Seller may use drag-and-drop OfferRankingPanel to reorder offers by personal preference. Ranking stored as seller_offer_ranking array on Listing entity with seller_offer_ranking_updated_at timestamp.
9
SYSTEM
Tracks Seller Preference Divergence
System compares seller_offer_ranking (seller preference) with AI-recommended ranking. If seller rank differs from AI recommendation, OfferComparisonView displays "Seller Preference" vs "AI Recommendation" side-by-side. Divergence highlighted to help agent understand seller intent.
10
LISTING AGENT
Presents Ranking to Seller & Facilitates Decision
Agent meets with seller, reviews both AI recommendation and seller preference ranking. Agent explains score factors, contingency risks, and net proceeds for each offer. Seller selects preferred offer for acceptance or counter. All ranking history preserved for audit trail.