{"slug": "how-we-built-a-multi-property-occupancy-ledger-and-whatsapp-ai-assistant-for", "title": "How We Built a Multi-Property Occupancy Ledger and WhatsApp AI Assistant for Room-Based Housing", "summary": "The team behind PulseHub, an accommodation management platform for HMOs, student housing, co-living spaces and hostels, built a bed-level occupancy ledger that models availability as date-bounded allocation intervals rather than a simple occupied/available flag, plus an immutable Resident Timeline event log kept separate from the payments ledger. The company also deployed Ask Pulse, a WhatsApp-based conversational assistant that queries scoped tenant data through strict tool-calling with role-based access controls. The team published a free open-source resident move-in and room turnover checklist for smaller landlords.", "body_md": "Traditional property management software assumes a simple 1:1 relationship: one lease, one apartment, one monthly invoice.\n\nWhen we started building [PulseHub](https://yourpulse.io), an accommodation management platform for HMOs, student housing, co-living spaces, and hostels, we quickly realized that standard real estate data models fall apart in room-based operations. In a student hall or hostel, a single room has multiple beds, residents move mid-month, shared utilities get split dynamically, and managers run daily operations from their phones rather than a desktop dashboard.\n\nHere is a look at the core architectural decisions we made to handle bed-level occupancy, audit trails, and conversational workflows.\n\nIn multi-bed accommodations, availability is time-bound and hierarchical: **Property → Floor/Unit → Room → Bed**.\n\nInstead of storing a simple `status: \"occupied\" | \"available\"` boolean on a room or bed, we modeled occupancy as date-bounded allocation intervals. A bed's availability for any target window `[startDate, endDate)` is computed by checking for overlapping active allocations:\n\n```\nSELECT b.id, b.label\nFROM beds b\nWHERE b.room_id = \\$1\n  AND NOT EXISTS (\n    SELECT 1\n    FROM bed_allocations a\n    WHERE a.bed_id = b.id\n      AND a.status IN ('active', 'reserved')\n      AND a.start_date < \\$3 -- requested end_date\n      AND (a.end_date IS NULL OR a.end_date > \\$2) -- requested start_date\n  );\n```\n\nWhen a tenant disputes a security deposit deduction six months after moving in, reconstructing their history from separate payment tables, maintenance tickets, and chat logs is painful.\n\nTo solve this, every state-changing action in [PulseHub's accommodation management software](https://yourpulse.io) appends an immutable event to a unified **Resident Timeline**:\n\n```\ntype TimelineEventType =\n  | 'ADMISSION_CREATED'\n  | 'BED_ASSIGNED'\n  | 'ROOM_CHANGED'\n  | 'CHARGE_POSTED'\n  | 'PAYMENT_RECORDED'\n  | 'DEPOSIT_HELD'\n  | 'DEPOSIT_REFUNDED'\n  | 'COMPLAINT_LOGGED';\n\ninterface ResidentTimelineEvent {\n  id: string;\n  residentId: string;\n  propertyId: string;\n  type: TimelineEventType;\n  occurredAt: string;\n  actorId: string;\n  metadata: Record<string, unknown>;\n}\n```\n\nSeparating the **Payments Ledger** (which tracks cash flow and reconciliation) from the **Resident Timeline** (which preserves chronological context) gives property teams a complete audit trail without cluttering financial reports.\n\nOne surprising discovery from talking to hostel and HMO managers was that most of them rarely sit in front of a laptop during the day. They inspect rooms, collect cash or bank transfers on-site, and answer resident messages on WhatsApp.\n\nInstead of forcing them to open a web dashboard for routine checks, we built **Ask Pulse**, a conversational AI assistant inside WhatsApp that connects directly to their scoped tenant data via strict tool-calling:\n\n`Owner`, `Manager`, `Staff`).` organization_id`.\nSoftware only works if the underlying operational workflow is consistent. Many operators start with paper clipboards before outgrowing spreadsheets at 10+ rooms.\n\nTo help smaller landlords standardize their room turnovers, we also published a free, open-source [Resident Move-In & Room Turnover Checklist](https://yourpulse-io.github.io/pulse-free-tools/) covering pre-arrival verification, meter readings, and deposit documentation.\n\nIf you are building vertical SaaS or working on multi-tenant booking systems, I would love to hear how you handle time-bound inventory and audit logs in the comments!", "url": "https://wpnews.pro/news/how-we-built-a-multi-property-occupancy-ledger-and-whatsapp-ai-assistant-for", "canonical_source": "https://dev.to/musabkhan/how-we-built-a-multi-property-occupancy-ledger-and-whatsapp-ai-assistant-for-room-based-housing-2n3a", "published_at": "2026-12-05 08:34:00+00:00", "updated_at": "2026-12-05 08:43:54.987276+00:00", "lang": "en", "topics": ["ai-agents", "ai-products", "ai-tools", "developer-tools"], "entities": ["PulseHub", "Ask Pulse", "WhatsApp"], "also_reported_by": [], "takeaway": "Model time-bound inventory like bed occupancy as date-bounded allocation intervals checked with an overlap query (start_date < requested_end AND end_date > requested_start) instead of a status boolean, and keep an immutable event timeline separate from the financial ledger for auditability.", "recommendation": {"advice": "Scope each WhatsApp assistant user to their organization and role via strict tool-calling so queries only touch permitted tenant data.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/how-we-built-a-multi-property-occupancy-ledger-and-whatsapp-ai-assistant-for", "markdown": "https://wpnews.pro/news/how-we-built-a-multi-property-occupancy-ledger-and-whatsapp-ai-assistant-for.md", "text": "https://wpnews.pro/news/how-we-built-a-multi-property-occupancy-ledger-and-whatsapp-ai-assistant-for.txt", "jsonld": "https://wpnews.pro/news/how-we-built-a-multi-property-occupancy-ledger-and-whatsapp-ai-assistant-for.jsonld"}}