> 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/17.latest/reference/models/ai-settings.md).

# AISettings

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; }

    // 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) |
| `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/17.latest/reference/services/ai-settings-service.md) - Settings service
* [Settings Concept](/ai-in-umbraco/17.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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
