System Architecture Overview
The Tenant
Interacts with the system through a secure, easy-to-use web portal.
Cloudflare Pages (Frontend)
A fast, static website that provides the user interface for chat, payments, and requests.
Cloudflare Backend
A serverless stack that runs all the logic, connects services, and powers the AI.
Workers
The "brain" that handles all logic, API calls, and workflows.
Workers AI & Vectorize
Provides the AI models and vector memory for the chat feature.
Workers KV
Securely stores user session data and refresh tokens.
Integrated Services
Securely connects to best-in-class external APIs for file management and payments.
Drive & SharePoint APIs
Reads file content on the user's behalf using their granted permissions.
Stripe API
Handles all payment processing securely without exposing financial data.