Skip to main content
This guide provides a hands-on reference for building out AI context within an Omni instance focused on customer support and Zendesk tickets. By following this example, you can see how to move beyond basic schema discovery to a high-precision setup where the AI understands complex support logic like SLA targets, ticket lifecycles, and account risk.

Why AI context matters

In support operations, data is often defined by the “state” of a ticket or the urgency of a customer. While Omni understands your tables, ai_context codifies the operational knowledge required for the AI to act as a seasoned support lead. For example, support context could look like:
  • Defining “active issues”: Does “active” mean only ‘new’ tickets, or does it include those ‘pending’ a customer response?
  • SLA logic: Mapping priority levels (urgent vs. normal) to specific response time expectations so the AI can identify breaches.
  • Sentiment and risk: Helping the AI understand that a high volume of tickets for a single account_id isn’t just “work” - it’s a signal of potential churn or a “customer at risk.”

The AI context hierarchy

To build a high-precision instance, think of your context in three layers. Omni applies this logic from the top down, ensuring universal support standards are respected before field-level definitions.

Requirements

To implement this example in your own Omni instance, you’ll need:
  • Familiarity with Omni’s modeling layer
  • Permissions in Omni that allow you to edit a shared model
  • A connected data source that contains support-related data
1

Set universal rules in the model file

The model file defines your universal rules that will exist across your entire Omni model. These rules ensure the AI adheres to your core support standards regardless of which topic a user is exploring.
Context that applies to the entire model
2

Set dataset logic in the topic

The topic level defines more specific details scoped to your pre-defined datasets. This tells the AI how to navigate ticket statuses, support channels, and engineering links, like those to a Jira instance.
Topic-level context
3

Add precision at the view level

The view level ensures the AI knows the operational significance of different fields, such as how priority maps to SLAs or how channel reflects customer preference.
View-level context

The feedback loop

Support trends change with every product release. Use this workflow to keep your AI accurate:
  1. Monitor: Use the AI usage dashboard in the Analytics section to see if users are struggling to find bug reports versus feature requests.
  2. Identify: Did the AI fail because a specific product area wasn’t defined in the context?
  3. Tune: Update the YAML (e.g., add a synonym for “Product Issue” pointing to type = bug).
  4. Verify: Re-run the prompt in the Omni Agent to confirm the AI now maps the term correctly.
SLA breach tip: Use ai_context in your resolution_time_hours field to define a breach.For example: "If priority is urgent and resolution time > 1, this is an SLA breach."This allows users to ask "How many SLA breaches did we have yesterday?"

Next steps