More than 635 historical deals were cleaned and migrated before the
old form was retired. Authenticated users now create and review
records through a Next.js product surface; typed server actions
persist canonical rows to Supabase Postgres, and FastAPI services
own long integrations, scheduled jobs, content, crawlers, and
notifications.
Application boundary
Privileged access begins after authorization.
Google sign-in creates the portal session. Sensitive server
actions verify session and role helpers before constructing
privileged database clients. RLS covers application and
internal tables; internal retrieval tables use explicit deny or
scoped policies.
Closed-deal intake
The packet becomes a reviewed operating record.
Closing calculators, executed lease materials, and deal files
are parsed into commissions, splits, contributions, payments,
dates, and lease terms. Deterministic financial math stays out
of the prompt. Ambiguous extraction carries source and review
state before persistence.
AI lease intake + abstraction
Thirty-six candidate fields retain their evidence.
A separate brokerage deployment supports both new close-out
intake and enrichment of historical closed leases. A reviewer
can select or upload as many as eight executed leases,
amendments, commission agreements, deal sheets, and invoices.
PDFs are sent as native documents first, DOCX files are
converted to text, and scanned lease pages can use a bounded
OCR fallback after two native attempts.
The structured draft covers parties, premises, dates, term,
rentable area, rent schedules and escalations, renewal and
termination options, notice requirements, concessions, TI,
commissions, broker splits, payment terms, and invoice data.
Every field carries confidence and source context. Missing
values remain null; conditional dates are not promoted to fixed
dates; materially conflicting documents require human
resolution.
Reviewed write path
Approval crosses one guarded database boundary.
The browser compares current values with AI candidates and
records the reviewer's confirmed values. An idempotent,
optimistic-concurrency-checked Postgres function then updates
the existing deal and lease plus approved commission, split,
provenance, document-link, and reminder state. Source document
IDs must belong to the deal, its source listing, or the related
lease, and provenance cannot reference a file outside the
reviewed packet. Closed stage/date, listing status, and settled
payments remain immutable to enrichment.
Listing intake
OMs and Drive folders become upload-ready listings.
Google-native files and uploads are resolved, text and images
are extracted, and candidate fields are normalized into the
required Crexi and CoStar upload forms plus Canva flyer inputs.
Missing required fields keep creation locked for broker review.
Saving writes the listing, source files, extracted fields, and
provenance to Supabase.
Social publishing
Deals and listings have separate branded pipelines.
A closed-deal save can create Instagram and LinkedIn captions,
branded Canva announcement graphics, a Slack approval packet,
celebration, and Proxi map record. An approved listing can
create its flyer, channel-specific social copy, and
#new-listings packet. The published case study
attributes roughly $1,000 per month in savings to this flow.
Revenue and CRM operations
External systems reconcile around the portal.
A Sunday 168-hour Instantly sweep complements live webhook
handling, classifies reply intent, performs conservative FUB
matching, writes an audit workbook, and sends warm-lead alerts.
Lease timing, payments, and commission state drive reminders
and receivables work.
Market intelligence
Named jobs feed distinct reviewed surfaces.
A reusable GrowthZone adapter crawls multiple regional Chamber
of Commerce calendars nightly, dedupes cross-posted events, and
delivers a seven-day Slack digest Monday morning. A separate
Monday market-presence job uses reviewed market context.
Crexi/CoStar exports remain labeled external market data, while
the 15-minute Drive queue extends the private corpus and
automatically extracts lease/LOI terms.