> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/ai-in-umbraco/19.latest/reference/models/ai-settings.md).

# AISettings

Model representing global AI settings.

Represents the global AI configuration settings, including default profiles.

## Namespace

```csharp
using Umbraco.AI.Core.Settings;
```

## Definition

{% code title="AISettings" %}

```csharp
public class AISettings : IAIAuditableEntity
{
    // Fixed settings ID (singleton)
    public static Guid SettingsId = new("672BF83C-97E0-4D04-9D33-23FC2E5EBE42");

    public Guid Id => SettingsId;

    [AISetting]
    public Guid? DefaultChatProfileId { get; set; }

    [AISetting]
    public Guid? DefaultEmbeddingProfileId { get; set; }

    [AISetting]
    public Guid? DefaultSpeechToTextProfileId { get; set; }

    [AISetting]
    public Guid? ClassifierChatProfileId { get; set; }

    [AISetting]
    public AIDisclosureNoticeMode DisclosureNoticeMode { get; set; } = AIDisclosureNoticeMode.Always;

    // Audit properties
    public DateTime DateCreated { get; internal set; }
    public DateTime DateModified { get; internal set; }
    public Guid? CreatedByUserId { get; internal set; }
    public Guid? ModifiedByUserId { get; internal set; }
}
```

{% endcode %}

## Properties

| Property                       | Type                     | Description                                                                       |
| ------------------------------ | ------------------------ | --------------------------------------------------------------------------------- |
| `Id`                           | `Guid`                   | Fixed identifier (always the same value)                                          |
| `DefaultChatProfileId`         | `Guid?`                  | Default profile for chat operations                                               |
| `DefaultEmbeddingProfileId`    | `Guid?`                  | Default profile for embedding operations                                          |
| `DefaultSpeechToTextProfileId` | `Guid?`                  | Default profile for speech-to-text operations                                     |
| `ClassifierChatProfileId`      | `Guid?`                  | Optional profile for classification tasks (falls back to default chat)            |
| `DisclosureNoticeMode`         | `AIDisclosureNoticeMode` | How the AI-generated notice is shown: `Always` (default), `Dismissible`, or `Off` |
| `DateCreated`                  | `DateTime`               | When settings were first created                                                  |
| `DateModified`                 | `DateTime`               | When settings were last modified                                                  |
| `CreatedByUserId`              | `Guid?`                  | User who created                                                                  |
| `ModifiedByUserId`             | `Guid?`                  | User who last modified                                                            |

## Notes

* Settings use a singleton pattern with a fixed ID
* The `[AISetting]` attribute marks properties that are persisted to the database
* Settings are not versionable

## Example

{% code title="Example" %}

```csharp
// Get current settings
var settings = await _settingsService.GetSettingsAsync();

// Update default profiles
settings.DefaultChatProfileId = chatProfileId;
settings.DefaultEmbeddingProfileId = embeddingProfileId;

// Save
await _settingsService.SaveSettingsAsync(settings);
```

{% endcode %}

## Related

* [IAISettingsService](/ai-in-umbraco/19.latest/reference/services/ai-settings-service.md) - Settings service
* [Settings Concept](/ai-in-umbraco/19.latest/concepts/settings.md) - Settings concepts


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.umbraco.com/ai-in-umbraco/19.latest/reference/models/ai-settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
