Version History
View and restore previous versions of AI entities.
Umbraco.AI automatically tracks version history for connections, profiles, contexts, prompts, and agents. You can view what changed, compare versions, and rollback to a previous state.
Viewing Version History
Navigate to the entity (e.g., the AI section > Profiles).
Select the entity you want to view.
Click the Version History tab (or icon).

The version history shows:
Version
Sequential version number
Date
When the version was created
User
Who made the change
Description
Change description (if provided)
Comparing Versions
To see what changed between versions:
Open the version history.
Select two versions to compare.
Click Compare.

The comparison view shows:
Added - Properties or values that were added
Removed - Properties or values that were removed
Modified - Properties that changed, with before/after values
Reading the Comparison
Rolling Back
To restore an entity to a previous version:
Open the version history.
Find the version you want to restore.
Click Rollback (or Restore).
Confirm the action.
After Rollback
After rolling back to version 3:
6
Restored from version 3
5
Previous state
4
...
3
Target version
Supported Entities
Connections
Umbraco.AI
AI > Connections
Profiles
Umbraco.AI
AI > Profiles
Contexts
Umbraco.AI
AI > Contexts
Guardrails
Umbraco.AI
AI > Guardrails
Prompts
Umbraco.AI.Prompt
AI > Prompts
Agents
Umbraco.AI.Agent
AI > Agents
Version Cleanup
To prevent unbounded growth, old versions can be cleaned up:
Automatic Cleanup
Configure in appsettings.json:
Enabled
true
Whether automatic version cleanup is enabled
MaxVersionsPerEntity
50
Maximum versions to retain per entity (set to 0 to disable)
RetentionDays
90
Days to retain version history (set to 0 to disable)
Manual Cleanup
Administrators can trigger cleanup programmatically via the IAIEntityVersionService.CleanupVersionsAsync() method. See the IAIEntityVersionService reference for details.
Best Practices
Review before rollback - Compare versions to understand what will change.
Use meaningful descriptions - When updating via code, include change descriptions.
Configure cleanup - Set appropriate retention for your needs.
Monitor storage - Versions can accumulate significant data.
Programmatic Access
See Versions API for programmatic access to version history.
Related
Version History Concept - Understanding versioning
Versions API - Management API
Last updated
Was this helpful?