# The semantic layer for explorers (/core/build/semantic-layer/semantic-layer-for-explorers)

:::info
**Target audience**: makers and admins who want explorers to use the definitions they curated.
:::

### TL;DR [#tldr]

Explorers never open a domain, but they use it all the time:

* **In the AI chat**, the assistant looks for your domain metrics and dimensions first, and builds its answer from them.
* **In a data app**, every number comes from the same definitions, and you can publish those definitions as a **glossary** for your readers.

***

### Through the AI chat [#through-the-ai-chat]

When an explorer asks a question, in Toucan AI or in an [AI chat embedded in your product](../../embed/embedding-overview/how-to/embed-an-ai-chat.mdx), the assistant:

1. **searches your domains** for the metrics and dimensions that match the question, using their names, labels and descriptions;
2. **reuses the saved definitions** that fit, so *"revenue by region"* is computed with your `revenue` metric and your `region` dimension, with the domain's joins;
3. **falls back to the tables** only when no saved definition fits.

The search respects access: an explorer only finds objects on tables they are allowed to see, and the resulting chart applies their row- and column-level security.

**Make the chat find the right metric**

The assistant chooses among your objects by reading them, so write them for a reader:

* Give each metric a **label** in your readers' words (*Net revenue*) and a **description** that says what it includes and excludes.
* Describe each **domain**: what it covers and who it's for. It decides which domain answers a question.
* Avoid two metrics with the same meaning. If both are needed, say in each description when to use it.
* Test with the questions your readers really ask, as an explorer would.

:::info
The AI chat, and its search through your domains, require an AI model configured for your organization. Without one, AI features are hidden.
:::

***

### Through a data app: publish a glossary [#through-a-data-app-publish-a-glossary]

A shared vocabulary is only useful if people can read it. A **glossary data app** lists your domains' metrics and dimensions with their label, description and unit, so readers know exactly what *Active customers* or *Net revenue* means before they read a dashboard.

Ask your AI agent to build it through the [Maker MCP](../build-with-an-agent.mdx), for example:

> *"Build a data app titled 'Our metrics' that lists every metric of the Subscriptions and Customer support domains, grouped by domain, with its label, description and unit. Add a search box. For each metric, show a small chart of its last 12 months."*

The agent reads your domains with `get_domain`, builds the app, and shows you a draft before you publish. A few ideas to make the glossary more useful:

* **Show live values** next to each definition: the app queries the metric itself, so the glossary also shows that its numbers are the dashboards' numbers.
* **Restrict access** to the glossary like any data app, if some definitions are internal.

:::warning
The agent writes the definitions into the app when it builds it, so the glossary drifts from the domain as soon as you change a label or a description. **Schedule an update routine**: have your agent re-read the domains regularly and update the glossary with the **Edit a data app** prompt. Review the draft, then publish the new version.
:::

***

### Related [#related]

* [Domains, fields, metrics and relationships](./metrics-dimensions-and-relationships.mdx): what to write in labels and descriptions.
* [Build with an AI agent](../build-with-an-agent.mdx): connect the Maker MCP and build a data app.
* [Organization roles](../../govern/roles-and-permissions/organization-roles.mdx): what explorers can and can't do.
