All Case Studies
Technical Build Story· 5 weeks· $4,800 CAD

How We Built Rent Detective

AI-powered property management platform. Multiple entities and backend functions. 5 weeks.

Base44ReactGPT-4oGoogle Calendar OAuthStripeResendDeno Backend Functions
View Full Case Study (Outcomes & ROI) →

The Problem

A Calgary property management company was running 400+ rental units across 5 spreadsheets, 3 email inboxes, and 2 disconnected SaaS tools. Nothing talked to each other. The cheapest enterprise alternative was $2,200/month with 3 months of setup. Traditional agencies quoted $60,000–$80,000 and six months.

Architecture Overview

Rent Detective runs entirely on Base44. No separate AWS infrastructure, no Supabase, no custom auth layer. The Base44 entity database serves as the single source of truth for properties, tenants, applications, and maintenance requests. Backend functions on Deno handle all external API calls — Google Calendar OAuth for showing scheduling and Stripe for payment processing.

We chose a single-page application architecture with React. The admin dashboard and the tenant-facing portal share the same Base44 app but enforce role separation through Base44's built-in role-based access control. Admins see everything; tenants see only their own applications and lease.

Database Design

Propertyaddress, unit_number, bedrooms, bathrooms, rent, status, photos[], amenities[], description
Tenantname, email, phone, status, lease_start, lease_end, unit_id, credit_score, references[]
Applicationproperty_id, applicant_name, applicant_email, income, status, submitted_date, screening_notes
MaintenanceRequesttenant_id, unit_id, category, description, photos[], status, contractor_id, resolved_date
Showingproperty_id, applicant_email, calendar_event_id, booking_time, meet_link, status
MarketDatapostal_code, avg_rent_1br, avg_rent_2br, avg_rent_3br, updated_date, source
LeaseDocumenttenant_id, property_id, file_url, effective_date, expiry_date, renewal_sent
Paymenttenant_id, amount, type, stripe_payment_id, status, due_date, paid_date

The key schema decision was separating Applications from Tenants. An applicant becomes a Tenant only after approval — this kept the pipeline clean and allowed the admin to track conversion rates from application to tenancy. Property status enum (available, pending, leased, maintenance) drove the dashboard's occupancy metrics.

AI Integration

Two AI features power Rent Detective. Natural language property search uses GPT-4o via Base44's InvokeLLM integration. When a tenant types 'pet-friendly 2BR near Chinook Centre under $2,200', the query goes to a backend function that passes it to GPT-4o with the full property database context. GPT-4o returns ranked property IDs with reasoning. We initially tried embedding-based search but found GPT-4o's reasoning gave better results for the ambiguous natural language queries real tenants use.

The AI agents handle tenant FAQs and prospect qualification 24/7. We configured three agents: a Tenant FAQ agent (knows all property rules, amenities, and policies), a Prospect Qualification agent (asks income, timeline, pet questions and routes qualified leads to the showing calendar), and a Maintenance Triage agent (categorizes request urgency and pings the right contractor). Agent configuration in Base44 uses a JSON tool_configs pattern — each agent gets read access to the entities it needs and backend function access for actions.

Stripe Implementation

Stripe handles three payment types: security deposits, first/last month rent at lease signing, and monthly rent collection. We used Stripe Checkout sessions for one-time deposits — the backend function creates a Checkout session with the property address and tenant name as metadata, returns the session URL, and the frontend redirects the tenant to complete payment. On webhook success, a Payment record is created and the Tenant record is updated.

Monthly rent is handled through Stripe's Payment Links — a link with the tenant's monthly amount is generated at lease creation and saved on the Tenant record. Tenants can bookmark it and pay monthly without re-entering card details. Webhook events for payment success and failure trigger automated email reminders via Resend.

Technical Challenges

Google Calendar OAuth token refresh

Calendar OAuth tokens expire and need to be refreshed transparently. We built a token refresh wrapper into the backend function that checks expiry before every Calendar API call and silently refreshes if needed. The first implementation didn't handle this and showed calendar errors every hour or so.

AI search with large property databases

Passing the entire property database to GPT-4o on every search was expensive and slow at scale. We added a pre-filter step — filter by city, bedrooms, and price range before passing results to GPT-4o — reducing the context size by 80% and cutting response time from ~4 seconds to under 1 second.

Maintenance request photo uploads

Tenants uploading maintenance photos from mobile often uploaded large files (5–10MB). We added client-side image compression before upload — a simple canvas resize to max 1200px wide — reducing upload time and storage costs.

Lessons Learned

Separate entity types that seem similar but have different lifecycles — Application vs Tenant saved us significant dashboard complexity.
Pre-filter data before sending to LLMs. Context size directly impacts cost and latency. GPT-4o doesn't need all 400 units to answer 'what's available in NW Calgary under $1,800'.
Build the admin dashboard in week 1, not the last week. Owners using it to see real data early gives the best feedback for what to build next.
Google Calendar OAuth needs a refresh token flow from day one — don't add it as an afterthought.

Want the outcomes, ROI, and client testimonial?

The full case study covers results, metrics, and what the client said.

Full Case Study

Related

Want to Build Something Similar?

Free 30-minute call with Ryan. Fixed quote before we hang up.

$100/hr CAD all-inclusive. 2–6 week delivery on Base44.

Book Free Discovery Call

ESTIMATE DISCLAIMER

Any estimates, pricing proposals, or preliminary assessments provided through this website, AI chat, or email are non-binding estimates only and do not constitute formal quotes. Estimates are subject to change and are provided on an "as-is" basis without guarantee. Official quotes are provided only in writing by Level 44 Labs and are subject to revision based on final scope clarification.

QUOTE & PROJECT TERMS

All formal quotes are subject to errors and omissions. Final project scope, timeline, and costs may change based on requirements discovery, technical constraints, third-party dependencies, and client-requested modifications. A formal written agreement must be executed before work begins. Discovery calls are informational only and do not constitute project commitment.

LIABILITY LIMITATION

Level 44 Labs and its representatives shall not be liable for any indirect, incidental, special, or consequential damages arising from estimates, quotes, website content, AI-generated responses, or service delivery. Our total liability is limited to the amount paid for services rendered. Client assumes all risks associated with third-party services, integrations, and platform dependencies.

NO WARRANTIES

All estimates, preliminary advice, and website information are provided "as-is" without warranty. Level 44 Labs does not warrant accuracy, completeness, or suitability for any particular purpose. Clients are responsible for verifying all technical requirements independently.

INTELLECTUAL PROPERTY

Custom work delivered under formal agreement remains the property of Level 44 Labs until payment in full is received. Third-party libraries, frameworks, and Base44 platform code are governed by their respective licenses.

© 2026 LEVEL 44 LABS · ALL RIGHTS RESERVEDBUILT ON BASE44