ShoeBox CRM - Technical Description for Patent Application
TITLE OF INVENTION
INTEGRATED MULTI-TENANT CUSTOMER RELATIONSHIP MANAGEMENT SYSTEM WITH HIERARCHICAL ORGANIZATION STRUCTURE, AUTOMATED PROPERTY VALUATION, WHITE-LABEL CLIENT PORTAL, AND GAMIFICATION ENGINE FOR REAL ESTATE PROFESSIONALS
ABSTRACT
A comprehensive cloud-based Customer Relationship Management (CRM) system specifically designed for the real estate industry, featuring a novel hierarchical multi-tenant architecture supporting agencies, brokerages, and individual agents. The system integrates automated property valuation tracking with equity monitoring, MLS data synchronization, white-label client portals with embedded e-signature capabilities, intelligent automation rules with drip campaign management, and a gamification engine with achievement tracking and team competitions. The platform employs a unique data model that maintains relationships across customers, properties, listings, transactions, and offers while supporting custom field definitions and cross-organizational data isolation.
TECHNICAL FIELD
This invention relates to computer-implemented customer relationship management systems, specifically to a multi-tenant software-as-a-service platform for real estate professionals with integrated property management, automated valuation monitoring, client portal generation, and behavioral gamification systems.
BACKGROUND OF THE INVENTION
Real estate professionals require specialized tools to manage complex relationships between clients, properties, transactions, and professional networks. Traditional CRM systems lack industry-specific features such as property equity tracking, MLS integration, transaction checklist management, and commission split calculations.
Existing solutions typically operate at a single organizational level, failing to support the hierarchical structures common in real estate (agencies containing multiple brokerages containing multiple agents). Additionally, current systems do not provide white-label client portals that allow agents to present a branded interface to their clients while maintaining separation from the agent's operational tools.
There is a need for an integrated system that combines client relationship management, property intelligence, automated communications, transaction management, and client engagement in a unified platform with flexible organizational structures and role-based permissions.
SUMMARY OF THE INVENTION
The present invention provides a comprehensive CRM system with the following novel features:
1. Hierarchical Multi-Tenant Architecture
A three-tier organizational structure (Agency → Brokerage → Agent) with cascading branding, permission inheritance, and data visibility controls. Each tier can define custom fields, branding elements, and access policies that flow down while maintaining data isolation.
2. Automated Property Equity Tracking System
Integration with property valuation APIs (Attom Data) to automatically track property values over time, calculate equity positions based on original loan amounts and current balances, generate equity alerts for past clients, and provide mortgage paydown projections.
3. White-Label Client Portal with Dynamic Branding
A separate client-facing interface that inherits branding from the agency/brokerage/agent hierarchy, displays transaction-specific documents and checklists, enables secure messaging with the agent, and provides embedded e-signature capabilities without exposing the agent's operational CRM interface.
4. MLS Integration with Property Monitoring
Direct integration with Multiple Listing Service (MLS) systems to search properties, bulk import listings, synchronize property data, track client property interests, and monitor market analytics.
5. Intelligent Automation Engine
A rule-based automation system that monitors entity changes (customer status, property events, transaction milestones) and triggers actions including email/SMS notifications, task creation, status updates, and drip campaign enrollment. The system includes a drip campaign builder with time-delayed multi-step sequences and conditional branching.
6. Embedded E-Signature System
DocuSign integration with signature field placement tools, multi-signer workflows, template management, reminder automation, and webhook-based status tracking. Signatures can be requested from both the agent interface and client portal.
7. Gamification and Achievement Engine
A points-based system that tracks agent activities, awards points for completed actions, unlocks achievements, maintains login streaks with freeze days, generates leaderboards (daily/weekly/monthly/all-time), creates team competitions, and extends to client-side engagement. The system includes configurable point values and custom achievement creation.
8. Commission Tracking with Cap Management
Automated commission calculations including brokerage splits, franchise fees, and cap tracking. The system monitors accumulated commissions against agent caps, sends alerts when approaching or reaching caps, and adjusts split percentages accordingly.
9. Unified Communication Hub
Integration of email (Gmail/Outlook OAuth), SMS (Twilio), and phone call logging with automatic linking to customer records, conversation threading, and timeline visualization. The system supports email template management, bulk sending, and automated inbox synchronization.
10. Transaction Checklist Management
Template-based transaction checklists with state-specific items (contingency deadlines, disclosure requirements), automatic date calculations from contract acceptance, reminder notifications, and collaborative access for transaction coordinators and other stakeholders.
DETAILED DESCRIPTION OF THE INVENTION
System Architecture
The ShoeBox CRM system is implemented as a cloud-based Software-as-a-Service (SaaS) platform with the following architectural components:
- React-based single-page application frontend with real-time updates via React Query
- RESTful API backend with Base44 SDK integration
- PostgreSQL database with multi-tenant row-level security
- Deno runtime for serverless function execution
- Cloud storage for documents with signed URL generation
- WebSocket connections for real-time notifications
- Third-party API integrations (Attom, DocuSign, Twilio, SendGrid, Google, Microsoft)
Data Model
The system employs a normalized relational data model with the following core entities:
- User: Built-in authentication entity with role (admin/user), organization linkage, and branding preferences
- Agency: Top-level organizational entity with branding, settings, and MLS credentials
- Organization: Mid-level brokerage entity with inherited/overridden branding
- Customer: Contact records with custom fields, relationship tracking, client type classification, and sentiment analysis
- Property: Real estate properties with automated valuation updates, equity calculations, mortgage tracking, and location coordinates
- Listing: Buy-side or sell-side representations linking customers and properties
- Transaction: Deal records with checklist templates, contact roles, contingency deadlines, and document attachments
- Offer: Purchase offers with terms, contingencies, status tracking, and buyer/agent associations
- Pipeline: Deal progression tracking with stage history, probability scoring, and forecasted close dates
- Activity: Logged actions (showings, calls, appointments) with proof upload and verification workflow
- Goal: Performance targets with progress tracking against actual activities
- Commission: Earned commissions with split calculations, cap tracking, and payment status
- Expense: Tax-deductible business expenses with receipt uploads and categorization
- Document: File attachments linked to entities with private storage and signed URL access
- Template: Reusable document templates organized in folders
- EsignatureRequest: DocuSign envelope tracking with signer status and webhook updates
- Email/SmsMessage/Call: Communication logs linked to customers
- AutomationRule: Trigger-action definitions with condition matching
- DripCampaign: Multi-step email sequences with time delays
- GamificationPoints/Achievement/Challenge: Behavioral tracking and reward system
Novel Technical Features
Hierarchical Data Isolation with Branding Inheritance
The system implements a unique three-tier isolation model where each record contains both an organization_id (brokerage) and derives agency context from the organization. Branding cascades from agency → organization → user, with each level able to override inherited values. The client portal resolves branding by checking user-level customizations first, then organization branding, then agency branding, ensuring consistent white-label presentation.
Automated Property Valuation with Equity Alerts
The system periodically fetches updated property valuations from Attom Data API and stores them with timestamps. It calculates equity by subtracting current loan balance from estimated value, compares to previous equity calculations, and generates notifications when equity increases by a threshold percentage (e.g., 10%). The system maintains mortgage amortization schedules based on original loan terms to project future equity positions.
Dynamic Client Portal with Transaction Context
Unlike traditional agent-side interfaces, the client portal is a separate authenticated view that displays only transaction-specific information. When a client logs in, the system queries all transactions where they are linked as a contact, retrieves associated documents and checklist items, and presents them in a branded interface matching their agent's settings. Clients can upload documents, complete e-signatures, view transaction timelines, and message their agent—all without accessing the broader CRM data.
Intelligent Automation with Conditional Execution
The automation engine evaluates rules on a scheduled basis (e.g., every 5 minutes) by querying for recent entity changes. Each rule defines a trigger entity, field conditions (status=X, date<Y), and actions (send email, create task, enroll in drip campaign). The system maintains execution history to prevent duplicate actions and supports conditional branching in drip campaigns based on recipient behavior (email opened, link clicked).
Gamification with Dual-Context (Agent & Client)
The gamification engine tracks points in separate contexts—agent-side for CRM activities and client-side for portal engagement. Points are awarded asynchronously after actions complete, with configurable values per action type. The system maintains daily login streaks with "freeze" days that prevent streak breaks, unlocks achievements when criteria are met, and generates comparative leaderboards. Team competitions track aggregate points across designated team members with real-time ranking.
MLS Integration with Bulk Import and Monitoring
The system authenticates with MLS providers (e.g., MetroMLS via ScrapingBee API) and implements property search with criteria filtering. Search results can be bulk-imported, creating property records with full details including photos, property characteristics, and pricing history. The system links properties to customer interest records, enabling agents to track which clients viewed which properties and triggering automated follow-up workflows.
Commission Cap Management
The system tracks accumulated gross commissions against agent-specific cap amounts (e.g., $50,000 annually). When commissions approach the cap threshold, the system sends alerts and adjusts future commission calculations to reflect post-cap split percentages. Cap payments can be recorded in advance, reducing the remaining cap balance. The system supports multiple cap periods (e.g., anniversary-based caps) with automatic rollover.
Transaction Deadline Calculator
Based on the contract acceptance date, the system automatically calculates contingency deadlines using state-specific rules. For example, an inspection contingency might be "10 days from acceptance" while a financing contingency is "30 days from acceptance." These calculated dates populate checklist items and trigger reminder notifications at configurable intervals (e.g., 3 days before, 1 day before, day of).
Activity Verification Workflow
For organizations requiring proof of activities (to prevent gaming of the gamification system), agents can upload proof documents (receipts, photos) when logging activities. These enter a verification queue visible to admins, who can approve or reject with reasons. Points are only awarded after admin approval. The system supports configurable verification requirements per activity type.
Unified Communication Timeline
All communications (emails, SMS, calls) are displayed in a chronological timeline view for each customer. The system automatically links inbound communications by matching phone numbers or email addresses to customer records. Email OAuth integrations enable two-way sync with Gmail/Outlook, displaying both sent and received messages. SMS integration via Twilio provides threaded conversations with delivery status tracking.
Technical Implementation Details
Authentication & Authorization
The system uses JWT-based authentication with role-based access control (RBAC). Users authenticate via email/password or OAuth (Google, Microsoft). Each request includes the user's organization context, which filters database queries through row-level security policies. The permission system supports granular controls (e.g., "can view team analytics" vs "can only view own data").
Real-Time Updates
The frontend uses React Query with polling intervals to fetch fresh data. Critical updates (new messages, signature completions) trigger WebSocket events that immediately update the UI. The system implements optimistic updates for user actions, providing instant feedback before server confirmation.
Document Storage & Security
Documents are stored in cloud object storage with private access controls. When a user requests a document, the system generates a time-limited signed URL (e.g., valid for 5 minutes) that provides temporary direct access. Document access is logged for audit trails. The system supports automatic virus scanning on upload.
API Integration Architecture
External API integrations are implemented as serverless functions (Deno) that authenticate using environment secrets. OAuth tokens are stored encrypted and refreshed automatically before expiration. Webhook receivers validate signatures from external services (DocuSign, Twilio) before processing events. Rate limiting protects against API quota exhaustion.
Search & Filtering
The global search feature queries across multiple entity types (customers, properties, transactions) using fuzzy matching on key fields. Results are ranked by relevance and recency. The system implements debounced search to reduce server load, waiting for typing pauses before executing queries. Advanced filters support complex criteria combinations (e.g., "buyers with budget > $500k in ZIP codes 12345, 12346").
Performance Optimization
The system employs query result caching with 5-minute TTLs for frequently accessed data (user profile, organization settings). Database queries use indexed lookups on owner and organization_id fields. The frontend implements code splitting to load only necessary components, reducing initial load time. Background tasks (MLS sync, automation processing) run on scheduled intervals to avoid blocking user requests.
Method Flow Descriptions
Method for Dynamically Resolving Branding in a Hierarchical Multi-Tenant System
- Receive a request from a user authenticated in the system
- Identify the user's organizational context (agency_id, organization_id, user_id)
- Query branding configuration at user level for specified attributes (logo, colors, display name)
- For each missing attribute, query organization level configuration
- For each still-missing attribute, query agency level configuration
- For each still-missing attribute, apply system default values
- Return resolved branding object with complete attribute set
- Cache resolved branding with TTL for subsequent requests
Method for Automated Equity-Based Client Re-Engagement
- On scheduled interval, query all properties with equity_alert_enabled=true
- For each property, fetch current valuation from one or more external data sources
- Store new valuation with timestamp (api_estimated_value, api_last_updated)
- Calculate current equity: estimated_value - current_loan_balance
- Retrieve previous equity calculation from property history
- Calculate equity growth percentage: (current_equity - previous_equity) / previous_equity * 100
- If growth exceeds threshold (e.g., 10%) and sufficient time has passed since last alert (e.g., 90 days)
- Identify customer records linked to property via ownership or past transactions
- Generate notification record for agent with equity growth details
- Optionally trigger automated email/SMS to customer with personalized equity update
- Update last_equity_alert date on property record
- Log equity tracking event for analytics
Method for Conditional Automation Execution with Duplicate Prevention
- On scheduled interval (e.g., every 5 minutes), retrieve all active automation rules
- For each rule, query target entity type for records updated since last execution
- Filter records matching trigger conditions (field comparisons, date ranges, status values)
- For each matching record, generate unique execution key: hash(rule_id, record_id, record_updated_date)
- Query execution history table for existence of execution key
- If execution key exists, skip (prevents duplicate actions)
- If execution key does not exist, execute defined actions sequentially
- For email action: resolve template, merge record data, send via configured provider
- For task action: create notification record linked to agent and entity
- For drip enrollment action: create enrollment record with current step=0
- For field update action: modify target record with specified values
- After successful execution, insert execution key into history with timestamp
- Log automation execution result (success/failure) for auditing
- Continue to next matching record
Method for Transaction Deadline Calculation with State-Specific Rules
- Upon creation of transaction record, retrieve contract_date (acceptance date)
- Identify transaction's property location (state, county)
- Load applicable checklist template based on transaction_type and location
- For each checklist item with relative deadline (e.g., "10 days from acceptance")
- Parse deadline formula to extract offset value and unit (days/weeks)
- Calculate absolute deadline date: contract_date + offset
- Adjust for business days if specified (skip weekends/holidays)
- Create checklist item record with calculated due_date
- Schedule reminder notifications at intervals (e.g., 3 days before, 1 day before, day of)
- If contract_date changes, recalculate all relative deadlines and update records
- Display calculated deadlines in transaction timeline view
Method for White-Label Client Portal Authentication and Data Filtering
- Client accesses portal URL and initiates authentication
- System verifies client credentials and loads associated customer record
- Query all transaction_contact records where customer_id matches authenticated client
- Extract unique transaction_ids from contact records
- For each transaction, load transaction details, associated property, and agent information
- Resolve branding configuration from agent's organizational hierarchy
- Apply resolved branding to portal interface (logo, colors, display name)
- Query documents where related_entity_id in transaction_ids
- Query checklist items where transaction_id in transaction_ids
- Query e-signature requests where transaction_id in transaction_ids and customer is a signer
- Filter all data to exclude records client should not access
- Render portal interface showing only transaction-specific information
- Establish WebSocket connection for real-time updates within client's transaction scope
Method for Commission Cap Tracking with Automatic Split Adjustment
- Agent defines annual cap amount and cap period (e.g., $50,000 per anniversary year)
- Upon creation of commission record, calculate gross_commission from sale_price * commission_rate
- Apply brokerage_split percentage to determine brokerage portion
- Apply franchise_fee_rate to gross_commission to calculate franchise_fee
- Calculate net_commission: gross_commission - (brokerage portion) - franchise_fee
- Query sum of all gross_commissions for agent within current cap period
- Compare accumulated commissions to cap amount
- If accumulated < cap, apply pre-cap split percentages
- If accumulated >= cap, apply post-cap split percentages (typically 100% to agent)
- If transaction crosses cap threshold (before < cap, after >= cap), split calculation proportionally
- Generate notification when accumulated commissions reach 80% of cap
- Generate notification when cap is reached
- Update running cap balance in agent profile
- Display cap progress in agent dashboard with visual indicator
Method for Gamification Point Award with Achievement Unlocking
- User completes an action (logs activity, closes deal, etc.)
- System identifies action type and context (agent vs client)
- Query point configuration for action type to determine point value
- Create GamificationPoints record with user, action type, points, and timestamp
- Update user's total point balance
- Query all achievements to identify those with unmet criteria
- For each achievement, evaluate criteria against user's history (total points, activity counts, streak days)
- If criteria newly satisfied, create UserAchievement record with unlock timestamp
- Award bonus points for achievement unlock if configured
- Trigger notification to user with achievement details and celebration animation
- Update leaderboard rankings across all timeframes (daily, weekly, monthly, all-time)
- If user is in team competition, add points to team aggregate score
- Update team competition rankings
- Check for login streak continuation and apply freeze day if needed
Alternative Implementations and Variations
Organizational Hierarchy Variations
- Two-tier structure (brokerage → agent) without agency level
- Four-tier structure (corporation → region → brokerage → agent)
- Flat structure with single organization containing multiple agents
- Matrix structure where agents belong to multiple teams simultaneously
- Franchise model with national brand → franchisee → office → agent hierarchy
Property Valuation Sources
- Multiple external valuation APIs (Attom, Zillow, Redfin, CoreLogic, Black Knight)
- MLS comparable sales analysis algorithms
- Manual agent-entered valuations with override capability
- AI/ML models trained on local market data
- Automated Valuation Models (AVMs) from lenders
- Weighted average of multiple sources with confidence scoring
- Real-time bid/ask data from property marketplaces
Automation Trigger Mechanisms
- Scheduled polling at configurable intervals (1 min, 5 min, 15 min, hourly)
- Event-driven triggers via database webhooks/listeners
- Real-time stream processing of entity change logs
- Batch processing during off-peak hours
- On-demand execution via manual trigger buttons
- Conditional chaining where one automation triggers another
Communication Channel Alternatives
- Email via multiple providers (SendGrid, Mailgun, AWS SES, Gmail API, Outlook API)
- SMS via multiple gateways (Twilio, Plivo, MessageBird, Bandwidth)
- Voice calls via VoIP providers (Twilio, RingCentral, 8x8)
- In-app messaging with WebSocket/long-polling
- WhatsApp Business API integration
- Facebook Messenger integration
- Push notifications to mobile apps
E-Signature Integration Options
- Third-party services (DocuSign, Adobe Sign, HelloSign, PandaDoc)
- Native e-signature implementation with certificate authorities
- Blockchain-based signature verification
- Biometric signature capture on mobile devices
- Video-based signature verification
- Government-approved digital identity providers
Gamification Scoring Models
- Fixed points per action type
- Variable points based on deal value or complexity
- Time-decay scoring (recent actions worth more)
- Multiplier bonuses for consecutive days or rapid completion
- Negative points for missed deadlines or expired leads
- Peer comparison scoring relative to team average
- Weighted scoring emphasizing strategic priorities
MLS Integration Approaches
- Direct API integration with MLS providers (RETS, Web API)
- Screen scraping with automation tools (Selenium, Puppeteer, ScrapingBee)
- IDX feed parsing and ingestion
- Third-party aggregation services (Bridge Interactive, FBS)
- Real estate data platforms (Zillow API, Realtor.com API)
- Manual CSV import with field mapping
Database and Storage Architectures
- Relational databases (PostgreSQL, MySQL, SQL Server)
- NoSQL databases (MongoDB, DynamoDB, Firestore)
- Hybrid SQL + document storage for custom fields
- Graph databases for relationship-heavy queries (Neo4j)
- Cloud object storage (AWS S3, Google Cloud Storage, Azure Blob)
- Content delivery networks for media assets
- Multi-region replication for global availability
Client Portal Authentication Methods
- Email/password with secure password reset
- Magic link authentication (passwordless email links)
- SMS-based one-time passwords
- Social login (Google, Facebook, Apple)
- Biometric authentication (fingerprint, face recognition)
- Two-factor authentication with TOTP apps
- Single sign-on (SSO) via SAML/OAuth
Generalized System Components
External Data Integration Layer
The system interfaces with one or more external property data sources to obtain valuations, market statistics, property characteristics, and ownership records. These sources may include proprietary databases, public records aggregators, real estate marketplaces, or governmental databases. The integration layer standardizes data formats and provides fallback mechanisms when primary sources are unavailable.
Communication Delivery Infrastructure
The system employs one or more message delivery services to transmit communications (email, SMS, voice) to clients and agents. These services provide delivery confirmation, bounce handling, and compliance with anti-spam regulations. The system abstracts provider-specific APIs through a unified interface, enabling seamless provider switching or multi-provider redundancy.
Document Signature Workflow Engine
The system integrates with one or more electronic signature services to facilitate legally binding document execution. The workflow engine manages signer sequencing, field placement, reminder scheduling, and completion tracking. Integration may occur via REST APIs, webhooks, or embedded SDKs, with signature validity verified through cryptographic certificates or third-party attestation services.
Real Estate Listing Data Synchronization
The system connects to one or more multiple listing services (MLS) or property listing aggregators to retrieve current market inventory. Synchronization may occur through standardized protocols (RETS, RESO Web API), proprietary APIs, data feeds (IDX), or automated data extraction techniques. The system normalizes listing data across sources and maintains local copies with periodic refresh to reflect market changes.
Configurable Workflow Automation System
The system provides a rules engine where users define trigger conditions (entity state, field values, time thresholds) and corresponding actions (notifications, data updates, external API calls). Rules are evaluated on a scheduled basis or in response to events, with execution history maintained to prevent duplicate processing. The engine supports conditional logic, variable substitution, and sequential action chains.
User Engagement and Gamification Framework
The system implements a configurable points-and-rewards mechanism that tracks user activities, assigns point values, unlocks achievements based on criteria, and generates comparative rankings. The framework supports multiple contexts (agent productivity vs client engagement), time-bound challenges, team aggregations, and persistent streak tracking. Point values and achievement definitions are administrator-configurable to align with organizational goals.
Unique Advantages Over Prior Art
- First CRM to combine hierarchical multi-tenant architecture (agency/brokerage/agent) with cascading white-label branding in a single platform
- Automated property equity tracking with proactive client re-engagement alerts based on equity growth
- Dual-interface design separating agent operational tools from client-facing portal while maintaining data synchronization
- Gamification engine that extends to both agent productivity and client engagement within transactions
- Integrated commission cap management with automatic split adjustments post-cap
- Real-time MLS integration with bulk import and property monitoring capabilities
- Unified communication hub combining email, SMS, and call logging with automatic customer matching
- Template-based transaction checklists with state-specific deadline calculations
- Embedded e-signature workflow accessible from both agent and client interfaces
- Intelligent automation engine with drip campaigns and conditional branching based on user behavior
REPRESENTATIVE CLAIMS
(Note: These are illustrative claims. A patent attorney will draft precise legal claims.)
Claim 1:
A computer-implemented customer relationship management system for real estate professionals, comprising: a database storing customer records, property records, and transaction records; a hierarchical multi-tenant architecture with agency, brokerage, and agent levels; automated property valuation tracking that periodically fetches updated valuations and calculates equity positions; a white-label client portal presenting transaction-specific information with branding inherited from the organizational hierarchy; and a gamification engine that awards points for activities and maintains leaderboards across multiple timeframes.
Claim 2:
The system of claim 1, wherein the automated property valuation tracking generates notifications when calculated equity increases beyond a threshold percentage, enabling automated re-engagement of past clients.
Claim 3:
The system of claim 1, wherein the white-label client portal displays transaction documents, checklists, and messaging capabilities without exposing agent operational data, and wherein the portal inherits branding from a resolution chain of user-level, organization-level, and agency-level branding configurations.
Claim 4:
The system of claim 1, further comprising an automation engine that monitors entity state changes and executes conditional actions including email sending, task creation, and drip campaign enrollment based on configurable rules.
Claim 5:
A method for managing real estate transactions comprising: storing property data with automated periodic valuation updates; calculating equity positions based on property values and mortgage balances; generating alerts when equity growth exceeds thresholds; maintaining transaction checklists with automatically calculated contingency deadlines; providing a separate client portal interface displaying transaction-specific information with inherited branding; and tracking agent activities with a gamification system that awards points and unlocks achievements.
Claim 6:
The system of claim 1, further comprising commission tracking that calculates splits with brokerage percentages and franchise fees, monitors accumulated commissions against agent-specific caps, and adjusts split percentages when caps are reached.
Claim 7:
The system of claim 1, wherein the gamification engine maintains dual contexts for agent productivity and client engagement, awards points after action completion, tracks daily login streaks with freeze day provisions, and generates team competitions with aggregate scoring.
This technical description document was generated on 9/1/2026 for ShoeBox CRM. This document should be reviewed by a patent attorney to determine patentability and draft formal patent claims. The descriptions above represent current system capabilities as of the date of generation.
