Skip to main content
The Modeling Agent helps you build and maintain your semantic model. Use it to ask questions about your model, get suggestions for fields and relationships, and work through YAML edits — from the Model IDE, the Omni Agent chat panel, or in split view beside a workbook or dashboard.
The Modeling Agent is grounded in your current model and connection (topics, views, relationships, and field-level access controls), not arbitrary SQL against your warehouse. To improve answers across Omni AI, see Optimize models for Omni AI.

Requirements

To use the Modeling Agent, you need:

Open the Modeling Agent

  1. Click the AI icon. You can do this in the Model IDE or anywhere else in the app.
  2. Type in the prompt box. In the Model IDE, your conversation stays in the panel while you switch files, save, or change modeling modes.
When you ask for a modeling change outside the Model IDE, the AI can make the change in place. It can also send you to the Model IDE to continue.
If you are a modeler, or you have modeler permissions, you can model from anywhere in the app and create branches. If you do not have these permissions and you ask the AI to model from a workbook or other context, such as a chat session, it asks if you want to model in the workbook instead.

Example prompts

You can ask in plain language. You do not need to paste YAML unless you want to point at something specific.

Built-in skills

The Modeling Agent includes default skills that appear as clickable buttons below the prompt box. These skills guide the agent through specialized tasks without requiring you to write detailed prompts.

Optimize topic for AI

The Optimize topic for AI skill analyzes a topic and its views to identify opportunities for improving AI metadata. When you click this skill, the Modeling Agent asks which topic to analyze, then reviews metadata across four categories:
  • Token efficiency — Identifies verbose or redundant metadata and flags missing ai_fields directives that could reduce token usage
  • Clarity — Highlights ambiguous fields missing context and non-descriptive labels that may confuse the AI
  • Deduplication — Finds repeated information between ai_context and description fields, or between field-level and topic-level metadata
  • Sample queries — Reviews existing sample queries and recommends additions or improvements, including suggestions for golden datasets
After the analysis, the Modeling Agent provides specific recommendations and can apply changes directly to your model.
Use this skill regularly when building or updating topics to ensure your AI metadata supports high-quality query generation and reduces unnecessary token consumption. For guidance on AI optimization beyond this skill, see Optimize models for Omni AI.

Suggest model from query history

This skill applies to Snowflake and Postgres connections. Each database has specific requirements:
  • Snowflake: The database user must have IMPORTED PRIVILEGES on the SNOWFLAKE database.
  • Postgres: The pg_stat_statements extension must be enabled.
The Suggest model from query history skill analyzes actual SQL query patterns from your warehouse to help generate semantic models based on real usage. When you click this skill, the Modeling Agent analyzes query history from ACCOUNT_USAGE.QUERY_HISTORY (Snowflake) or pg_stat_statements (Postgres) and provides insights across several areas:
  • Table usage — Identifies the most frequently queried tables, with breakdowns showing which tables are used as base tables versus joined tables
  • Column patterns — Tracks how columns are used in SELECT, WHERE, GROUP BY, and ORDER BY clauses, along with aggregation function frequencies
  • Join patterns — Discovers common join relationships between tables, deduplicated by join type and keys
  • Field classification — Suggests which fields should be dimensions, measures, or time dimensions based on usage patterns
  • Calculated dimensions — Identifies scalar transforms and common calculated field patterns that could be defined in your model
  • Query view candidates — Finds repeated CTE patterns that could be extracted as reusable query views
The agent uses these insights to suggest views, measures (with appropriate aggregate_type and symmetric aggregation settings), relationships (with reversible semantics), and query views that align with how your team actually queries the data.

Modeling modes

The panel includes a mode menu so you control how proposed model changes are applied. Your selected mode persists between sessions, but you can select a standing preference on the AI approvals page.
If you edit the shared model, your workflow may require a branch before the Modeling Agent can write changes. Create a branch when prompted, then continue the conversation.

Next steps

Troubleshooting

Make sure you have modeling permissions for the connection. On the shared model you may also need a branch first. Create a branch when prompted, then ask again.
Add richer descriptions, AI context on views and topics, and sample queries so Omni’s AI has more to work with across the product.

Getting help

If you’re stuck and can’t remember how to do something in Omni, ask the Omni Agent. Questions like “How do I do [thing]?” will prompt the agent to search the official Omni docs and provide you with an answer, all without leaving your Omni workflow. You can also directly tell the agent to search the docs when researching the answer to your question.
Working in an embedded context? If you have the Hide Omni watermark setting enabled to provide a fully white-labeled experience, the AI doc search feature will respect it. Omni doc links will not be returned in chat, even if explicitly requested.