BSuit AI configuration reference
Find the AI settings, their defaults, and the controls that remain host-managed.
On this page
#Where changes are made
AI administrators use AI Settings for provider, RAG, local-model and Channels & assistants values. The channel list accepts WhatsApp, email, Slack and Teams names separated by commas. Rate limits must be whole numbers in the displayed allowed range. Sensitive credentials are masked after saving; enter a new value to rotate one. Host environment settings require deployment-operator access and are not tenant-admin fields.
#Provider and agent settings
| Key | Purpose |
|---|---|
| ai_provider | Local or external API mode. |
| api_provider_name | Provider preset name. |
| api_base_url | External API base URL. |
| api_key | Encrypted provider credential; the screen displays a mask. |
| api_model | Chat model identifier. |
| deepseek_user_id | Optional provider-side attribution ID. |
| api_temperature | External model sampling temperature. |
| api_max_tokens | External response token limit. |
| api_system_prompt | Prompt prepended to requests. |
| sql_model | Read-only SQL generation model. |
| sql_base_url | Optional separate SQL provider URL. |
| sql_api_key | Optional SQL provider credential. |
| text_to_sql_enabled | Off by default; enables guarded read-only SQL questions. |
| agent_mode_enabled | Off by default; lets the assistant choose tools and prepare proposals. |
| ai_proactive_agents | Off by default; scheduled agents prepare proposals for human review. |
| ai_budget_monthly_tokens | 0 means unlimited; requests pause at 100% of a positive limit. |
| ai_budget_monthly_cost | USD estimate limit; requires a model price. |
| ai_model_pricing | Model price table used for cost estimates. |
#Documents, speech and local model
| Key | Purpose |
|---|---|
| stt_model | Speech-to-text model. |
| stt_base_url | Optional separate transcription provider URL. |
| stt_api_key | Optional transcription credential. |
| rag_enabled | Document retrieval switch. |
| rag_top_k | Number of retrieved chunks. |
| embedding_provider | Embedding provider. |
| embedding_model | Embedding model. |
| vision_model | Image interpretation model. |
| model_size | Local model size. |
| max_seq_length | Local input length. |
| training_epochs | Training passes. |
| batch_size | Training batch size. |
| learning_rate | Training learning rate. |
| auto_collect_interval | Training document collection interval in minutes. |
| temperature | Local model sampling temperature. |
| top_k | Local top-k sampling. |
| top_p | Local nucleus sampling. |
| max_new_tokens | Local output limit. |
#Connected-channel policy
Channel controls are off or conservative until configured. The blocked-action list defaults to financial, credential and access-control names. A typed reply code works even when WhatsApp reply buttons are disabled.
| Key | Purpose |
|---|---|
| ai_channels_enabled | Enabled channel names; empty means none. |
| ai_channel_allow_superuser | Whether a superuser can use messaging channels. |
| ai_channel_blocked_actions | Blocked action-name fragments. |
| ai_channel_rate_per_10min | Messages per 10 minutes; default 20. |
| ai_channel_rate_per_day | Messages per day; default 200. |
| ai_channel_whatsapp_buttons | Reply-button switch; typed codes remain available. |
#Storefront assistant
The customer-facing assistant is off unless explicitly enabled. Company AI feature switches can still turn it off.
| Key | Purpose |
|---|---|
| ai_customer_assistant | Explicit enable switch. |
| ai_customer_assistant_rate_per_10min | Requests per 10 minutes; default 20. |
| ai_customer_assistant_rate_per_day | Requests per day; default 100. |
#Slack and Teams credentials
Secrets are encrypted at rest and masked in config responses. Set only credentials issued for the intended workspace or tenant.
| Key | Purpose |
|---|---|
| slack_signing_secret | Slack request-signature credential. |
| slack_bot_token | Slack bot credential. |
| slack_team_id | Optional allowed Slack workspace. |
| teams_app_id | Microsoft bot application ID. |
| teams_app_password | Microsoft bot credential. |
| teams_tenant_id | Optional allowed Microsoft tenant. |
#Host-managed settings
Deployment operators, not tenant administrators, manage Bsuit:EmailIngestion:AssistantAuthServId, BSuit:Features:AiFailClosed, BSuit:Ai:ChatRateLimitPerMinute, OTEL_EXPORTER_OTLP_ENDPOINT and Licensing:GeneratorDatabaseIds. Do not put these values or secrets into support tickets.
#Operational telemetry and alerts (host-managed)
Deployment operators can send traces and metrics of the API to an OpenTelemetry collector and load the shipped alert rules. It is off by default: with the switch off, or with no collector address, nothing is sent and nothing changes, and the AI-only export keeps working exactly as before. Exporting never slows or blocks a request: spans wait in a bounded queue and the oldest overflow is dropped and counted. Tenant names, user names, e-mail addresses, tokens, SQL text and request bodies are never sent; metrics carry only a fixed set of short labels. Alerts cover a stuck or dead-lettered event outbox, an unreadable session store, a degraded shared Redis, sign-in refused because the shared limiter store is down, and the exporter itself failing. The collector address and any header secret belong in the server environment, never in tickets or chat.
| Setting | Purpose |
|---|---|
| BSuit:Observability:Otlp:Operations | Master switch for the operational export; false by default. |
| BSuit:Observability:Otlp:Endpoint and Protocol | Collector address and grpc or http/protobuf; the standard OTEL_EXPORTER_OTLP_* variables are used when the endpoint is empty. |
| BSuit:Observability:Otlp:TraceSampleRatio | Share of traces recorded, 0 to 1; AI spans are always recorded. |
| BSuit:Observability:Otlp:MetricExportIntervalSeconds | Seconds between metric exports; default 60. |
| BSuit:Observability:Otlp:TraceQueueSize | How many spans may wait for export before new ones are dropped; default 2048. |
| BSuit:Observability:Otlp:BacklogProbeIntervalSeconds | How often the read-only outbox backlog numbers are sampled; default 30, 0 turns it off. |
| OTEL_SERVICE_NAME, BSuit:Observability:ServiceInstanceId and Environment | Names the service, the server instance and the environment on every signal. |
#When an operational alert fires
Each alert links to a short response in the operations telemetry runbook (ai-docs/OPERATIONS_TELEMETRY_RUNBOOK.md): what it means, what to check, what to do and how to know it is done. Outbox alerts: a superuser lists the dead or stuck messages with the outbox administration API described in the workflow guide (summary, list, re-queue), fixes the cause, then re-queues with a reason. A missing backlog signal means the telemetry path is down, not that the outbox is healthy, because an idle outbox reports zero.
About this guide
- Status
- Partially reviewed
- Application
- BSuit ERP
- Audience
- AI administrators and deployment operators
- Owner
- BSuit documentation team
- Reviewer
- Not yet reviewed
- Last verified
- Never
- Checked against
- Generated from source revision add572065 on 2026-10-27
- Seen on a running system
- Not yet
- Help version
- 2026.0.0-preview
- Guide ID
erp:article/guide/ai-configuration-reference