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.Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
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_idisn’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.| Layer | Purpose | Example |
|---|---|---|
| Model | Universal truths. The model file defines your universal rules that will exist across your entire Omni model. | ”All time durations are in hours; our support week is 24/7.” |
| Topic | The persona. The topic level defines more specific details scoped to your pre-defined datasets. | ”You are a support ops analyst; ‘Resolved’ means Solved or Closed.” |
| View/Field | Field precision. Specific definitions, synonyms, and allowed values for columns. | ”’Urgency’ is a synonym for priority. ‘Bug’ is a specific type of ticket.” |
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
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
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
The feedback loop
Support trends change with every product release. Use this workflow to keep your AI accurate:- Monitor: Use the AI usage dashboard in the Analytics section to see if users are struggling to find bug reports versus feature requests.
- Identify: Did the AI fail because a specific product area wasn’t defined in the context?
- Tune: Update the YAML (e.g., add a synonym for “Product Issue” pointing to
type = bug). - Verify: Re-run the prompt in the Omni Agent to confirm the AI now maps the term correctly.
Next steps
- Model-level ai_context — Reference for model-level
ai_contextsyntax - Topic-level ai_context — Reference for topic-level
ai_contextsyntax - View-level ai_context — Reference for view-level
ai_contextsyntax - Optimize models for Omni AI — Broader guidance on optimizing your model for AI