Skip to main content
Free text that can provide context to the Omni Agent. Refer to the Optimizing models for AI guide for more information on best practices.

Syntax

Or for multiline context:

Properties

string
Free text that provides context to the Omni Agent. Can include behavioral prompting, instructions for tone, or other guidance to improve AI query results.The following references are supported for this field:
  • User attributes, referenced with {{omni_attributes.<attribute_name>}}. This allows you to personalize the context for each user.
  • Model constants, referenced using @{constant_name} syntax. This allows you to maintain reusable instruction blocks such as tone, privacy guidance, and domain context instead of duplicating them.
  • omni_llm namespace, which allows you to tailor context to specific AI model tiers:
    • {{ omni_llm.model }} — Substitutes the active model’s family name, which will be one of: smartest, standard, or fastest
    • {{# omni_llm.<family> }}...{{/ omni_llm.<family> }} — Conditional sections for specific model tiers. <family> must be one of smartest, standard, or fastest
    • {{^ omni_llm.<family> }}...{{/ omni_llm.<family> }} — Inverse sections, which apply when the specified tier is not used. <family> must be one of smartest, standard, or fastest
    See the Examples section for more information.
  • omni_agent namespace, which allows you to scope context to specific AI agents:
    • {{ omni_agent.name }} — Substitutes the active agent’s name, which will be one of: analyze, build, or simple_summarize
    • {{# omni_agent.<agent> }}...{{/ omni_agent.<agent> }} — Conditional sections for specific agents. <agent> must be one of analyze, build, or simple_summarize
    • {{^ omni_agent.<agent> }}...{{/ omni_agent.<agent> }} — Inverse sections, which apply when the specified agent is not used. <agent> must be one of analyze, build, or simple_summarize
    See the Examples section for more information.

Behavior

When a composite topic is the active topic, the Omni Agent uses the composite topic’s own ai_context. The ai_context of the member topics is not included. Context defined on the model, on views, on fields, and on shared dimensions is still included.

Examples

Personalized context using user attributes

Personalized context using user attributes

Model-specific analysis depth

The following context will apply when the model tier is smartest.
Applies when the model tier is smartest
The following context will apply when the model tier is not smartest.
Applies when the model tier is not smartest

Agent-specific context

The following context provides query guidance to the analyze agent while providing field relationship guidance to the build agent.
Agent-specific query and field guidance

Using constant references

Reference constants to combine reusable context blocks with composite topic guidance:
Composite topic file with constant references
The @{tone} and @{domain_marketing} references will be substituted with the constant values defined in the model file.

Behavioral prompting

Behavioral prompting