RAIA™ Specification

Private Specification

A one-shot AI agent crawls an estate agent's existing PropTech stack, red-teams each application's API, and generates a consent-gated extraction plan — without a single line of manual integration code by the agency.

← Back to Developer Hub TEXTBOOK SPECIFICATION
RAIA™ (Real estate Artificial Intelligence Agent) Specification

Connect to Tailscale VPN, then open via dev.estateaigents.com.

🧩 Section A: In Plain English

Legacy Data Sources & Systems — One-Shot AI Agent Crawl

A one-shot AI agent crawls an estate agent's existing PropTech stack, red-teams each application's API, and generates a consent-gated extraction plan — without a single line of manual integration code.

§ 4.1 — Legacy Data Sources & Systems

Legacy Data Sources
& Systems

3
Extraction methods per app
1-shot
AI agent crawl & report
0
Manual integration code by agency
∞
PropTech systems supported
Architecture principle: Every PropTech application is treated as an untrusted black box with three standard attack vectors — REST/GraphQL API, MCP server (if available), and authenticated browser scrape. All three run in parallel; their outputs are cross-referenced to produce the most complete, deduplicated dataset possible. This is the same method used to build the RentProfile R2R scraper (§3.2b).

1.Why — The Legacy PropTech Problem

🏚️

Siloed, Closed Systems

Most PropTech applications (Alto, Goodlord, RentProfile, Fixflo, Reapit, Jupix, etc.) were built as self-contained SaaS products with deliberately closed data boundaries. They want you in their product, not exporting to competitors.

🔑

Weak or Missing APIs

When APIs exist they are often heavily scoped (read-only on specific endpoints), rate-limited, require per-record IDs with no list/search endpoint, or hide critical data fields only accessible in their browser UI.

🤖

RAIA (Real estate Artificial Intelligence Agent) Needs the Data Anyway

RAIA™ (Real estate Artificial Intelligence Agent) OS must ingest tenancy history, referencing outcomes, maintenance logs, and compliance records from wherever they currently live — not just data entered after migration day. Historical context is irreplaceable for AI scoring.

🔒

Agency Consent Is Non-Negotiable

We cannot extract data without explicit written consent from the estate agent. The Background Data Agent produces a formal consent form, scoped to the exact tools and data fields discovered — GDPR-compliant and auditable.

The RentProfile Case Study

RentProfile is the canonical example of this methodology. When building the R2R scraper (§3.2b), we discovered that:

  • The REST API requires a request_id per lookup — no list or search endpoint exists. This makes bulk extraction impossible via API alone.
  • MCP is not available — no server-sent events or tool protocol is exposed.
  • The browser UI at /agent/r2r-reporting lists all Right to Rent records paginateable without individual IDs. The PDF certificates are downloadable per-record.

Result: Browser scrape wins. The Playwright scraper extracts data the API cannot reach. The API is still used for status lookups when a request_id is available. Both cross-reference each other for completeness. This two-pronged approach is now the standard pattern for all legacy PropTech systems.

2.How — The Background Data Agent

What the Agent Does

The Background Data Agent is a one-shot autonomous AI agent that runs at estate agent onboarding. Its job is to:

  1. Detect and inventory the agency's current PropTech stack (from their provided credentials, browser session, or a short questionnaire).
  2. For each detected application, attempt all three extraction methods (API → MCP → Browser) and record what data is reachable.
  3. Cross-reference results across methods to produce the most complete data map possible.
  4. Generate a consent form scoped to the exact tools and fields found — no blanket permissions.
  5. Present a structured onboarding wizard to the estate agent, asking them to confirm the tools found and grant extraction permissions.
  6. On consent, begin scheduled background extraction into RAIA™ (Real estate Artificial Intelligence Agent) OS.

The Onboarding Wizard Flow

1

Stack Detection

Agent asks the agent for their primary PropTech tools (or reads from their provided API keys / browser cookies). Compares against the RAIA™ (Real estate Artificial Intelligence Agent) Known PropTech Application Registry. Auto-detects version, plan, and data scope.

2

Three-Method Red Team (Parallel)

For each detected application, the agent simultaneously probes: REST API (what endpoints exist? what data is returned? what is rate-limited?), MCP (does a server exist? what tools are registered?), and Browser UI (what can be scraped after authenticated login?).

3

Cross-Reference & Data Map

Results from all three methods are compared. Fields only accessible via one method are flagged. Gaps (data not reachable by any method) are documented. The agent produces a human-readable data availability report per application.

4

Consent Form Generation

A scoped consent form is generated listing: (a) applications detected, (b) extraction methods required, (c) exact data fields to be extracted, (d) data classification (PII / non-PII), (e) extraction frequency, (f) GDPR lawful basis.

5

Agency Confirmation

The estate agent reviews the discovered tools and data map. They can deselect any application or data field. They digitally sign the consent form. The agent records the consent timestamp and scope to the audit log.

6

Background Extraction Begins

On consent, RAIA™ (Real estate Artificial Intelligence Agent) OS schedules the appropriate extractor agents (API poller / MCP subscriber / Playwright scraper) as nightly crons. Data flows into db_esoteric tables. The agency's RAIA™ (Real estate Artificial Intelligence Agent) dashboard immediately begins populating with their historical data.

The Three-Method Extraction Trio

A

REST / GraphQL API

First choice. Structured, fast, officially supported. Red-team for: list endpoints, pagination limits, missing fields, rate limits, auth scopes, and hidden write-only endpoints. Document all gaps.

B

MCP (Model Context Protocol)

If available. Rare in legacy PropTech but emerging in newer platforms. Check for /.well-known/mcp.json, SSE endpoints, and tool registries. Subscribe to real-time events where possible.

C

Browser UI Scrape

Fallback and supplement. Playwright authenticated login replicates what a human agent sees. Can reach data completely absent from the API (lists, PDFs, UI-only fields). Always the richest source.

Cross-reference discipline: Never trust a single method alone. API may return stale data; browser may miss paginated records; MCP may have incomplete tool coverage. Run all three, compare record counts and field coverage. Gaps in one method are filled by another. Discrepancies are flagged for human review.

Architecture Mind Map — Background Data Agent

ESTATE AGENT BACKGROUND DATA AGENT EXTRACTION METHODS (A · B · C) RAIA™ (Real estate Artificial Intelligence Agent) OS — DATA LAYER New Agency Onboarding Wizard Stack Declaration Alto · Goodlord · Fixflo… Consent Form Scoped · GDPR · Digital Sign Agency Confirmation ✓ Tools ✓ Fields ✓ Frequency Stack Detection Known PropTech Registry API Key / Cookie Scan API Red-Team Endpoints · Rate Limits · Gaps Auth Scopes · Hidden Fields Cross-Ref & Data Map A ∩ B ∩ C overlap Field gaps flagged Consent Generator Scoped by tool & field GDPR lawful basis tagged A — REST / GraphQL API Official. Fast. Rate-limited. • List/search endpoints (if any) • Per-record ID lookups • Webhook subscriptions ⚠ Often missing list endpoints B — MCP Protocol Emerging. Real-time. Rare. • /.well-known/mcp.json probe • Tool registry scan • SSE / WebSocket subscription Usually absent in legacy PropTech C — Browser Scrape Authenticated Playwright. Richest. • Login + session cookie • Paginated list scraping • PDF / file download ✓ Reaches API-invisible data cross-ref cross-ref Scheduled Extractors API Poller (nightly cron) MCP Subscriber (realtime) Playwright Scraper (nightly) ETL Pipeline Normalise → Deduplicate Validate → Transform → db_esoteric (Supabase) RAIA™ (Real estate Artificial Intelligence Agent) Dashboard Historical data populated AI scoring activated Landlord/Tenant profiles live

Repository Code

The live codebase implementation for this specification sits within the following repository folder:

nd="url(#arr-violet)"/> API / Agent flow Cross-reference Red-team probe Scheduled / async RAIA™ (Real estate Artificial Intelligence Agent) OS layer Browser scrape

Security Model

Guard RailLayerEnforcement
Explicit written consent before any extraction Onboarding wizard — consent form step Hard Block
Scope locked to fields consented at sign-off Extractor agent configuration Hard Block
Read-only mode enforcement on all browser scrapers Playwright URL allowlist + no POST/PUT/DELETE Hard Block
No PII transmitted to third-party LLM providers GDPR envelope — anonymised before AI scoring Hard Block
Extraction rate throttling per platform ToS Extractor retry/backoff config Soft Gate
Consent version-locked — re-consent on scope change Consent audit log in db_esoteric Audit
All extraction events logged with timestamp + method ETL pipeline audit trail Audit

3.What — Known PropTech Application Map

Application Registry & Method Outcomes

The table below documents known PropTech applications, their API quality, MCP availability, and scrape viability — based on RAIA™ (Real estate Artificial Intelligence Agent) red-team findings. This is a living document; add rows as new systems are onboarded.

Application Category A — API Quality B — MCP C — Browser Scrape Recommended Method Data Available
RentProfile Referencing Partial — request_id required, no list/search None Confirmed — Playwright R2R list + PDF C + A (cross-ref) R2R certs, applicant names, check dates, status
Goodlord Referencing Limited — Zendesk API, document endpoints partial None Likely — PDF downloads available in UI C primary, A supplement Referencing reports, guarantor docs, tenancy timeline
Alto (Landmark) CRM / PMS Moderate — REST API, scoped OAuth None Complex — React SPA, requires deep DOM A primary Properties, applicants, tenancies, maintenance
Reapit CRM / PMS Good — Foundations API, REST + webhooks None Moderate A primary, C supplement Properties, contacts, tenancies, inspection reports
Fixflo Maintenance Partial — issue status, limited history None Confirmed — issue list, photos, contractor notes C primary, A supplement Maintenance issues, photos, resolution timeline, contractors
Jupix CRM / PMS Weak — legacy SOAP/REST, outdated docs None Moderate C primary Properties, lettings, tenancy records
Inventory Hive Compliance Limited None Confirmed — inventory reports, check-in/out, photos C primary Inventory reports, property condition, signed PDFs
Future PropTech App Unknown Run red-team probe Check /.well-known/mcp.json Attempt authenticated scrape Determined by agent Determined by agent

How to Red-Team a New PropTech API

When the Background Data Agent encounters an unfamiliar application, it follows this structured probe sequence:

  1. Discover the API: Check for /api/v1/, /openapi.json, /swagger.json, developer docs, or Postman collections. Search GitHub and StackOverflow for unofficial documentation.
  2. Authenticate: Test API key, OAuth2 client credentials, and session token approaches. Record which scopes are granted.
  3. Probe list endpoints: Can you list all records without a prior ID? If not, how do you discover IDs? Is there a search endpoint? Are there pagination controls?
  4. Probe field depth: Compare the API response schema against the browser UI — what fields are visible in the UI but absent from the API response?
  5. Rate limit test: How many requests per minute before throttling? Is there a 429 with Retry-After? What are the consequences of exceeding limits?
  6. MCP probe: Check /.well-known/mcp.json. Try SSE endpoint /mcp/events. Check Link headers for MCP tool registry.
  7. Browser audit: With authenticated session, what lists are accessible? Are PDFs or files downloadable? Is the UI a standard HTML table (easy) or a JS-rendered SPA (complex DOM navigation required)?
  8. Document gaps: Record all data fields NOT reachable by any method. These become manual migration items or negotiation points with the vendor.

The consent form generated by the Background Data Agent follows this schema, stored in db_esoteric.tbl_agency_data_consents:

{
  "consent_id": "uuid",
  "agency_id": "uuid",
  "signed_at": "ISO8601",
  "signed_by": "name + email",
  "applications": [
    {
      "name": "RentProfile",
      "extraction_methods": ["C_browser"],
      "data_fields": ["r2r_certificate", "applicant_name", "check_date", "status"],
      "pii_fields": ["applicant_name"],
      "gdpr_basis": "legitimate_interest",
      "frequency": "nightly",
      "retention_days": 2555
    }
  ],
  "scope_version": 1,
  "re_consent_required_if_scope_changes": true
}

Pitfalls

Critical
Never assume the API is complete

Every PropTech API we have red-teamed is missing at least one critical data type that exists only in the browser UI. Always run the browser probe alongside the API probe, not as a fallback after the API fails.

Critical
Consent must be scoped to exact fields — no blanket permissions

A consent form that says "extract all data from RentProfile" is legally unenforceable and creates liability. The consent must name each application, each data field, each extraction method, and the GDPR lawful basis. The Background Data Agent generates this automatically from its probe findings.

Caution
Browser scrapes can break on UI updates

Unlike APIs, browser scrapers are tied to DOM structure. PropTech vendors update their UIs without notice. Build self-healing selectors (text-based, not class-based) and add monitoring that alerts when extraction yields zero records unexpectedly.

Caution
MCP probe may trigger vendor security alerts

Probing /.well-known/mcp.json and undocumented API paths may trigger WAF or security monitoring alerts at the vendor. Only probe paths that are explicitly listed in their developer documentation or that are standard convention endpoints. Never brute-force undocumented paths.

Info
Cross-reference discrepancies are valuable signals

When the API and browser scrape return different record counts or field values, this is not an error — it's useful data. It reveals stale API caches, partial sync delays, or data that was entered in the UI but never hit the API write path. Document and surface these discrepancies to the agency as data quality findings.

Vibe Check

Pre-Extraction Gates

  • ✓ Consent form signed and stored in db_esoteric
  • ✓ Consent scope matches extractor config exactly
  • ✓ All three method probes completed and documented
  • ✓ Data map reviewed by agency and confirmed accurate
  • ✓ Read-only mode enforced on browser scraper
  • ✓ Rate limits configured per vendor ToS
  • ✓ GDPR lawful basis documented per field

Post-Extraction Verification

  • ✓ Record count matches expected volume (±5% tolerance)
  • ✓ Cross-reference discrepancies < 2% between methods
  • ✓ No PII transmitted to external LLM providers
  • ✓ Audit log entries present for each extraction run
  • ✓ RAIA™ (Real estate Artificial Intelligence Agent) dashboard showing correct historical data
  • ✓ Zero write operations detected in browser scrape logs
  • ✓ Agency notified of any data gaps identified
§ 4.1 Legacy Data Sources & Systems · RAIA™ (Real estate Artificial Intelligence Agent) Developer Guide · See also: § 4.2 ETL Method · § 3.2b RentProfile R2R Scraper

Repository Code

The live codebase implementation for this textbook logic sits within the following repository folder: