AI provider, email templates, property defaults, and automation thresholds
Selects which API is used for inbox classification and automation tasks. Provider, model, and key are stored in the database — never hardcoded.
Configure a separate, cheaper model for email classification. Uses a 3-tier pipeline: rules first (free), then AI on headers only, then AI on body snippet. If not set, falls back to the global AI settings above.
Configure Mistral for document OCR. Used by the AI Ingest pipeline to extract text from PDFs and images.
Mirror uploaded documents to a OneDrive folder for offline access. Optional — R2 is the source of truth.
Connect the 9255WAlameda@thebakkens.net Gmail account for sending automated emails and ingesting inbox messages.
Requires GMAIL_CLIENT_ID and GMAIL_CLIENT_SECRET to be set as worker secrets. The OAuth flow stores a refresh token in D1, which takes priority over the wrangler secret.
Customize the body of automated tenant emails. Use {{variable}} placeholders — each template lists available variables below the editor. Blank = use built-in default.
{{unit_number}} {{effective_date}}{{first_name}} {{unit_number}} {{end_date}} {{effective_date}} {{term}}{{tenant_name}} {{unit_number}}
{{building_name}} {{end_date}}
{{renewal_notice_days}} {{renewal_option_periods}}
{{tenant_name}} {{unit_number}}
{{building_name}} {{end_date}}
{{days_left}}
{{tenant_name}} {{unit_number}}
{{building_name}} {{current_rent}}
{{new_rent}} {{effective_date}}
{{days_until}}
{{tenant_name}} {{unit_number}}
{{building_name}} {{year}}
{{cam_amount}} {{cam_method}}
{{cam_rate}} {{sqft}}
{{tenant_name}} {{unit_number}}
{{building_name}} {{expiry_date}}
{{days_left}} {{liability_min}}
{{umbrella_min}}
These values are used when generating lease documents.
Configure when automations trigger. Leave blank to use defaults.
Rules that generate service tickets when tenant deadlines are approaching. Toggle active/inactive or edit rule parameters.