RAIA™ Specification

RAiA™ Behavioral Scoring & Profiling Pipeline

AI Behavioral Scorecards track landlord and tenant patience levels, tone preferences, and interaction velocities to optimize autonomous matching without human friction.

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

AI Behavioral Scorecards track landlord and tenant patience levels, tone preferences, and interaction velocities to optimize autonomous matching without human friction.

🧩 Section A: In Plain English

RAiA™ Behavioral Scoring & Profiling Pipeline

Think of this as an automated accounting department that tracks every penny, ensures accurate billing, and handles financial transactions with bank-level security and precision.

Engine Architecture Specification

RAiA™ Behavioral Scoring & Profiling Pipeline

Specifications and pipeline blueprints for backfilling historical contact conduct scores and calculating ongoing standings.

📊 3-Factor Behavioral Engine Map

                        +---------------------------+
                        |  BEHAVIORAL STANDING CORE  |
                        +---------------------------+
                                      |
       +------------------------------+------------------------------+
       |                              |                              |
       v                              v                              v
+---------------+              +---------------+              +---------------+
| Payment (50%) |              | Patience (30%)|              | Co-op (20%)   |
| Rent ledger,  |              | Sentiment     |              | Safety delays,|
| on-time index |              | analysis tone |              | response SLA  |
+---------------+              +---------------+              +---------------+
       |                              |                              |
       +------------------------------+------------------------------+
                                      |
                                      v
                        +---------------------------+
                        |    Combined Score (0-100) |
                        |  Writes: tbl_persons_bsc  |
                        +---------------------------+
      

1. Scoring Formulas & Weighted Criteria

The behavioral scorecard calculations are modeled across three primary operational dimensions to calculate a realistic score between 0 and 100:

💰 Payment Index (50%)

Calculated directly from rent ledger records. Formula: 100 - (Late Days x 2.5) per payment period. A single 10-day late payment reduces the score to 75.

💬 Patience & Sentiment (30%)

AI analyses sentiment, tone, and double-ping frequency. Formula: 100 - (Double-pings < 30 mins x 10) - (Negative sentiment count x 5).

🤝 Cooperation SLA (20%)

Tracks delayed responses on safety certs and audits. Formula: 100 - (Unanswered compliance audits x 15).

Repository Code

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

2. One-Time Recalculation & Backfill Plan

Because tbl_persons_behavioural_scorecards is defined but empty, we are scheduling a one-time backfill process.

Step-by-Step Backfill Blueprint

  1. Identify Active Contacts: Query all tbl_persons linked to active tenancies.
  2. Aggregate Payments: Compute the average late days over the last 12 expected payment periods from tbl_rents.
  3. Extract Comms Tone: Analyze the last 20 messages in tbl_conversation_messages using lightweight sentiment keywords (e.g., "arrears", "court", "unacceptable", "delay").
  4. Populate the Scorecard Table: Perform a bulk upsert inserting populated rows into tbl_persons_behavioural_scorecards.

3. Ongoing Automated Pipeline

To maintain accurate scoring without manual intervention, a background worker runs every night at 04:00 UTC (concurrently with the NotebookLM sync):

Cron Pipeline Blueprint

1. Trigger Event (04:00 UTC daily)
2. Fetch last 14 days of updates on tbl_rents / tbl_conversation_messages
3. Re-calculate sliding-window payment index, sentiment index, cooperation index
4. Upsert values to tbl_persons_behavioural_scorecards
5. Mirror combined score value directly into tbl_persons.behavioural_score

Repository Code

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