For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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

  1. Navigate to the AI section in the main navigation.

  2. Click Contexts in the tree.

The contexts list showing the Brand Voice context

Creating a Context

  1. Click Create Context in the toolbar.

  2. Fill in the required fields:

Field
Description

Alias

Unique identifier for code references (URL-safe, no spaces)

Name

Display name shown in the backoffice

  1. Click Create.

The Create Context form with resource editor

Adding Resources

Contexts contain one or more resources. Each resource represents a piece of content to inject:

  1. In the context editor, click Add Resource.

  2. Configure the resource:

Field
Description

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)

  1. Click Add.

The Select Resource Type dialog
The resource details form with name, injection mode, and settings

Resource Types

Type
Use Case

Text

Plain text content like guidelines or terminology

Document

Structured content with metadata

URL

Web URL resource

Brand Voice context detail showing resources and settings

Editing a Context

  1. Select the context from the list.

  2. Modify fields as needed.

  3. Add, edit, or remove resources.

  4. Click Save.

Every save creates a new version. You can view and rollback to previous versions.

Deleting a Context

  1. Select the context from the list.

  2. Click Delete in the toolbar.

  3. Confirm the deletion.

Example: Brand Voice Context

A typical brand voice context might include:

Name: Brand Voice Guidelines

Resources:

  1. Tone of Voice (Always)

  2. Writing Style (Always)

  3. 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):

  1. Expand the Contexts section.

  2. Click Add Context.

  3. Select the context(s) to include.

  4. Save the prompt.

Version History

See Version History for information on viewing and restoring previous versions.

Last updated

Was this helpful?