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

AI provider and agent keys
KeyPurpose
ai_providerLocal or external API mode.
api_provider_nameProvider preset name.
api_base_urlExternal API base URL.
api_keyEncrypted provider credential; the screen displays a mask.
api_modelChat model identifier.
deepseek_user_idOptional provider-side attribution ID.
api_temperatureExternal model sampling temperature.
api_max_tokensExternal response token limit.
api_system_promptPrompt prepended to requests.
sql_modelRead-only SQL generation model.
sql_base_urlOptional separate SQL provider URL.
sql_api_keyOptional SQL provider credential.
text_to_sql_enabledOff by default; enables guarded read-only SQL questions.
agent_mode_enabledOff by default; lets the assistant choose tools and prepare proposals.
ai_proactive_agentsOff by default; scheduled agents prepare proposals for human review.
ai_budget_monthly_tokens0 means unlimited; requests pause at 100% of a positive limit.
ai_budget_monthly_costUSD estimate limit; requires a model price.
ai_model_pricingModel price table used for cost estimates.

#Documents, speech and local model

Knowledge and model keys
KeyPurpose
stt_modelSpeech-to-text model.
stt_base_urlOptional separate transcription provider URL.
stt_api_keyOptional transcription credential.
rag_enabledDocument retrieval switch.
rag_top_kNumber of retrieved chunks.
embedding_providerEmbedding provider.
embedding_modelEmbedding model.
vision_modelImage interpretation model.
model_sizeLocal model size.
max_seq_lengthLocal input length.
training_epochsTraining passes.
batch_sizeTraining batch size.
learning_rateTraining learning rate.
auto_collect_intervalTraining document collection interval in minutes.
temperatureLocal model sampling temperature.
top_kLocal top-k sampling.
top_pLocal nucleus sampling.
max_new_tokensLocal 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.

Channel keys
KeyPurpose
ai_channels_enabledEnabled channel names; empty means none.
ai_channel_allow_superuserWhether a superuser can use messaging channels.
ai_channel_blocked_actionsBlocked action-name fragments.
ai_channel_rate_per_10minMessages per 10 minutes; default 20.
ai_channel_rate_per_dayMessages per day; default 200.
ai_channel_whatsapp_buttonsReply-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.

Customer assistant keys
KeyPurpose
ai_customer_assistantExplicit enable switch.
ai_customer_assistant_rate_per_10minRequests per 10 minutes; default 20.
ai_customer_assistant_rate_per_dayRequests 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.

Chat platform keys
KeyPurpose
slack_signing_secretSlack request-signature credential.
slack_bot_tokenSlack bot credential.
slack_team_idOptional allowed Slack workspace.
teams_app_idMicrosoft bot application ID.
teams_app_passwordMicrosoft bot credential.
teams_tenant_idOptional 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.

#Shared cache and request limits (host-managed)

When more than one API server runs, the operator can point them at one Redis so that cached lists are invalidated everywhere at once and the credential and AI request limits are counted across servers. Nothing changes for one server or when the setting is empty. The AI chat limit (BSuit:Ai:ChatRateLimitPerMinute, default 30 a minute per user) and the storefront assistant address limit (BSuit:Ai:CustomerAssistantIpLimitPer10Min, default 60 per 10 minutes) keep their quotas; with the shared store they are counted for all servers together. Connection strings are secrets: never put them into tickets or chat.

Host-managed shared-state settings (names only)
SettingPurpose
BSuit:SharedState:RedisConnectionRedis connection string for the shared cache and the shared request limits; empty keeps everything per server.
BSuit:SharedState:KeyPrefixPrefix for every shared key; use a different value per environment and per release that changes a cached payload.
BSuit:SharedState:CacheEnabled and RateLimitEnabledTurn the shared cache or the shared limits off separately; both default to on when a connection is set.
BSuit:SharedState:CredentialFailureModeclosed (default) refuses sign-in with 503 when the shared store is down; local falls back to the per-server limit.
BSuit:Cache:DefaultTtlSeconds and MaxTtlSecondsDefault and maximum lifetime of a cached entry.
BSuit:KnownProxies and BSuit:KnownNetworksOptional list of proxy addresses allowed to supply the client address when forwarded headers are trusted.
RATELIMIT_DISABLELoad-test switch; refused at start-up in Production and Staging unless a disposable test stack also sets BSuit:AllowRateLimitDisable, and never allowed when BSUIT_ENVIRONMENT is production.

#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.

Host-managed telemetry settings (names only)
SettingPurpose
BSuit:Observability:Otlp:OperationsMaster switch for the operational export; false by default.
BSuit:Observability:Otlp:Endpoint and ProtocolCollector address and grpc or http/protobuf; the standard OTEL_EXPORTER_OTLP_* variables are used when the endpoint is empty.
BSuit:Observability:Otlp:TraceSampleRatioShare of traces recorded, 0 to 1; AI spans are always recorded.
BSuit:Observability:Otlp:MetricExportIntervalSecondsSeconds between metric exports; default 60.
BSuit:Observability:Otlp:TraceQueueSizeHow many spans may wait for export before new ones are dropped; default 2048.
BSuit:Observability:Otlp:BacklogProbeIntervalSecondsHow often the read-only outbox backlog numbers are sampled; default 30, 0 turns it off.
OTEL_SERVICE_NAME, BSuit:Observability:ServiceInstanceId and EnvironmentNames 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
Need more help?If feedback above cannot be sent, email support and quote guide ID erp:article/guide/ai-configuration-reference.
Email support