Managing Contexts
Create and manage AI contexts in the Umbraco backoffice.
AI Contexts allow you to define reusable content collections like brand voice guidelines, terminology, and reference materials that get injected into AI operations.
Accessing Contexts
Navigate to the AI section in the main navigation.
Click Contexts in the tree.

Creating a Context
Click Create Context in the toolbar.
Fill in the required fields:
Alias
Unique identifier for code references (URL-safe, no spaces)
Name
Display name shown in the backoffice
Click Create.

Adding Resources
Contexts contain one or more resources. Each resource represents a piece of content to inject:
In the context editor, click Add Resource.
Configure the resource:
Type
The type of resource (e.g., Text)
Name
Display name for organization
Description
Optional description
Content
The actual content to inject
Injection Mode
When to inject: Always or On Demand
Sort Order
Order in which the resource is injected (ascending)
Click Add.


Resource Types
Text
Plain text content like guidelines or terminology
Document
Structured content with metadata
URL
Web URL resource

Editing a Context
Select the context from the list.
Modify fields as needed.
Add, edit, or remove resources.
Click Save.
Deleting a Context
Select the context from the list.
Click Delete in the toolbar.
Confirm the deletion.
Example: Brand Voice Context
A typical brand voice context might include:
Name: Brand Voice Guidelines
Resources:
Tone of Voice (Always)
Writing Style (Always)
Terminology (Always)
Using Contexts
Contexts are used by:
Prompts - Associate contexts to inject guidelines (requires Prompt add-on).
Agents - Include context in agent instructions (requires Agent add-on).
Profiles - System prompts can reference context content.
Associating with a Prompt
When editing a prompt (requires Prompt add-on):
Expand the Contexts section.
Click Add Context.
Select the context(s) to include.
Save the prompt.
Version History
See Version History for information on viewing and restoring previous versions.
Related
Contexts Concept - Understanding contexts
Version History - Tracking changes
Last updated
Was this helpful?