Configuration
Configuration options for Umbraco.AI.
Umbraco.AI supports configuration through both the backoffice and appsettings.json.
Default Profiles
The recommended way to configure default profiles is through the backoffice:
Navigate to the AI section > Settings
Select your default chat profile
Select your default embedding profile
Click Save
For advanced scenarios (CI/CD, infrastructure-as-code), you can configure defaults in appsettings.json as a fallback:
{
"Umbraco": {
"AI": {
"DefaultChatProfileAlias": "default-chat",
"DefaultEmbeddingProfileAlias": "default-embedding"
}
}
}Available Options
AIAuditLogOptions
Umbraco:AI:AuditLog
Audit log persistence and retention
AIAnalyticsOptions
Umbraco:AI:Analytics
Usage analytics retention and dimensions
AIVersionCleanupPolicy
Umbraco:AI:VersionCleanupPolicy
Version history cleanup
AIMediaOptions
Umbraco:AI:Media
Image downscaling for AI media resolution
AIWebFetchOptions
Umbraco:AI:Tools:WebFetch
Web fetch tool limits and caching
AIAgentOptions
Umbraco:AI:Agent
Agent file retention
AIAuditLogOptions is documented on the Audit Logs page. AIAnalyticsOptions is documented on the Usage Analytics page. AIVersionCleanupPolicy is documented on the Version History page.
Media
Configure how images are resolved and downscaled before being sent to AI providers. Most providers enforce hard limits on image payload size and pixel dimensions (for example, Anthropic Claude rejects images above 5 MB).
AutoDownscale
bool
true
Automatically downscale oversized images before sending to providers
MaxSizeBytes
long
4194304
Maximum image payload size in bytes (4 MB) before re-encoding
MaxDimension
int
2048
Maximum pixel dimension (longest edge) before proportional resizing
JpegQuality
int
85
JPEG quality (1-100) used when re-encoding oversized images
Web Fetch Tool
Configure the built-in web fetch tool that agents can use to retrieve content from URLs. Use the allow and block lists to restrict which domains can be fetched.
Enabled
bool
true
Whether the web fetch tool is enabled
MaxResponseSizeBytes
long
5242880
Maximum response size in bytes (5 MB)
TimeoutSeconds
int
30
Request timeout in seconds
MaxRedirects
int
5
Maximum number of redirects to follow
AllowedDomains
List<string>
[]
Domain allow list (empty means no allow list filtering)
BlockedDomains
List<string>
[]
Domain block list (blocks specific domains even if allowed)
EnableCaching
bool
true
Whether fetched content is cached
CacheDurationMinutes
int
60
Cache duration in minutes
Agent
Configure the Agent Runtime add-on. Available when the Umbraco.AI.Agent package is installed.
FileRetentionHours
int
24
Retention period (in hours) for uploaded file attachments on agent threads
Thread directories whose files have not been modified within this period are cleaned up.
Provider Credentials
Store provider credentials in configuration and reference them in connections. Place sensitive values under Umbraco:AI:Secrets and non-sensitive per-environment values under Umbraco:AI:Variables:
Reference these in connection settings using the $ prefix:
$Umbraco:AI:Secrets:OpenAIApiKey- Resolves to the OpenAI API key$Umbraco:AI:Variables:AzureEndpoint- Resolves to the Azure endpoint
Secret values may only be referenced from fields marked as sensitive. To reference an existing section instead, add its prefix to Umbraco:AI:AllowedConfigurationKeyPrefixes. See AIOptions for details.
Environment-Specific Configuration
Use environment-specific files for different settings:
Related
Settings Concept - Primary way to configure defaults
Managing Settings - Backoffice configuration
In This Section
AIOptionsLast updated
Was this helpful?