Sofi data handling and security
What data Sofi sends outside the instance, where credentials are kept, who can use assistants and tools, and what Sofi records.
Sofi data handling is the set of rules that decide what record data reaches a language model, who can start an AI feature and what is logged. Read this before you connect a provider or open assistants to users, so you can answer your security and privacy reviewers.
What leaves the instance
Classifiers run on the instance’s own Elasticsearch global search index. Classification, Sofi search and action suggestions send nothing to a language model.
Language-model features send text to the provider of the model they use. That text is the prompt, plus any record data a pre-processing script or a tool adds to it. The request goes to the provider and Base URL set on the LLM model record, so the provider you choose decides where the data is processed.
| Data | Sent to a model | Control |
|---|---|---|
| Prompt text and record data a prompt or tool reads | Yes, to the model’s provider | The model record and the tools an assistant has |
| Attachment contents | No, unless you allow it | ai.attachment.content.enabled, default false |
| Attachments larger than the limit | No | ai.attachment.max_bytes, default 5,242,880 bytes |
| Records used by classifiers | No | Stays in the search index |
The classifier form has a Train button. It exports every record of the classifier’s table to the external Sofi service named in sofi_ai.api.url. The search-index classifiers do not need it, so do not select it unless you use that external service.
Credentials
Provider keys are kept in System API outbound token records, where the key and secret fields are encrypted. A key can also come from an environment variable on the server. A model uses its own Outbound API Token first, then the shipped token for its provider, then the environment variable.
Microsoft 365 search uses each user’s own delegated Microsoft token. A user can only find SharePoint and OneDrive content they can open in Microsoft 365.
Who can use assistants and tools
Access is checked at several levels, from the whole feature down to one tool.
| Level | Rule |
|---|---|
| Whole feature | ai.assistant.disabled set to true turns assistants off for everyone. |
| Feature access | ai.assistant.required.roles lists the roles that can use assistants. When it is not set, only administrators can. |
| Header button | ai.assistant.button.required.roles can hide the Assistant button from more users. It does not change server-side access. |
| One assistant or agent | Its Roles field. A user needs one of the roles. An assistant with no roles is available to nobody. |
| One tool | Its Roles field. A tool with no roles can be used by everyone who reaches it. |
| Channel | An assistant’s Channels field. Empty means the Servicely interface only. Assistants that change configuration should stay there. |
| Production | A record marked Production Restricted cannot be selected or run on a production instance. ai.production_restricted.enforcement.enabled overrides this. |
Cost limits
AI spend rules cap what Sofi can spend on model calls. A rule applies to the instance, a user, a conversation or an agent, over a period such as the last hour or the last month. Rules are enforced while ai.spend.enforcement.enabled is true, which is the default.
What Sofi records
| Record | What it holds | Where to find it |
|---|---|---|
| LLM usage log | Model, provider, tokens and cost of each call | Intelligent automation → Agentic AI → LLM usage logs |
| Conversation history | Assistant and agent chat transcripts | Agent conversation history records |
| AI prompt execution | One background run of a prompt and its state | AI prompt execution records |
| Action result | Each run of an intelligent action | Administration → Logging & statistics → Action results |
The properties ai.debug.log.http.requests and ai.debug.log.http.responses write the full model requests and responses to the server log. They are false by default. Leave them off in production, because the requests contain record data.