BUILDING MANAGEMENT SUITE


Single Agent with Router — Multi-tenant SaaS Architecture

A Telegram-bot-first SaaS for property management. One agent serves all companies with tenant isolation via company_id.


Architecture Diagram

    +-------------------------------------------------------+
    |              BUILDING MANAGEMENT SUITE                  |
    |          Single Agent with Router (Multi-tenant)        |
    +-------------------------------------------------------+
    |                                                        |
    |   [RESIDENT]        [MANAGER]        [WEB DASHBOARD]    |
    |       |                 |                  |            |
    |   Telegram Bot    Telegram Bot + Web   aiohttp :8080   |
    |   /tickets        /dashboard            Stats          |
    |   /new            /queue               Tickets        |
    |   /announcements  /report              Reports         |
    |       |                 |                  |            |
    |   +---+-----------------+------------------+---+        |
    |   |          AUTH MIDDLEWARE                   |        |
    |   |    Role Check + Tenant Isolation           |        |
    |   |    resident|junior_mgr|senior_mgr|         |        |
    |   |    company_admin|superadmin                |        |
    |   +-------------------------------------------+        |
    |   |              ROUTER / AGENT                |        |
    |   |    GLM-5.1 via Ollama (localhost:11434)    |        |
    |   |    Custom JWT, 5 roles, company_id scope  |        |
    |   +-------------------------------------------+        |
    |   |              POSTGRES (Supabase)           |        |
    |   |    Tables: tickets, announcements,        |        |
    |   |    users, companies, buildings, units      |        |
    |   +-------------------------------------------+        |
    |                                                        |
    +-------------------------------------------------------+

Roles

RolePermissions
ResidentCreate tickets, view announcements
Junior ManagerView queue, respond to tickets
Senior ManagerFull queue, reports, announcements
Company AdminManage users, buildings, units
SuperadminAll companies, system config

Model

GLM-5.1 via Ollama (localhost:11434, key="ollama") for text. No vision — photo analysis is deferred. Stephen is primary tester.



Melbourne AI Hub — 317/480 Collins Street, Melbourne, Victoria, Australia

Last modified: August 1990 · Best viewed in Netscape Navigator 1.0 at 640x480

You are visitor number 00000042 since 01-Jan-1990

[ Home ] · [ Contents ] · [ Email ] · [ Prev ] [ Random ] [ Next ] — Melbourne AI WebRing