Skip to main content
The global context is one shared document that explains how your business works: your metrics, key tables, terms and rules. The Matys AI analyst reads it before every answer, so its answers match how your team talks about the data. Open it from Global Context in the sidebar. Matys uses the global context in every chat in the app, in Slack and in WhatsApp, when it builds dashboards, and for AI agents connected through the Matys MCP server.
Admins edit the global context. Everyone else can read it and browse its versions. Members see a View only label.
You need at least one connected data source before you can use the global context.

What to put in it

The global context is a Markdown document, so headings, lists and tables work as you expect. Good things to write down:
  • Metric and KPI definitions, such as what counts as an active customer
  • Business rules and recurring filters, such as excluding test accounts
  • Which tables hold what, and which to prefer
  • Domain terms and abbreviations your team uses
  • Known data caveats

Generate the first version

When an admin finishes onboarding with at least one data source, Matys writes the first version on its own. It draws on your connected data sources, and on GitHub and Metabase when you connected them. This takes up to 2 minutes. Admins see a notice, Global context is ready, when it’s done. Select Open to read it. If your workspace has no context yet, the page shows No context yet. As an admin, you can:
  • Select Generate context to have Matys write it from your connected data sources, charts and dashboards.
  • Select Start blank to write it yourself.
Connect GitHub and Metabase before you generate the context. GitHub gives Matys your repos, data models and metric definitions. Metabase gives it your questions, dashboards and table descriptions. Both make the first version more accurate. See Connectors.

Edit the global context

Admins have two ways to change the document.
Type straight into the document. Select Save to keep your changes as a new version, or Discard changes to drop them.

Review changes Matys proposes from a chat

When a regular chat brings up something durable, the Matys AI analyst can propose an update to the global context. This happens when you ask it to update the context, or when you just defined a new metric, rule, filter, caveat or term that the context doesn’t have yet. Nothing changes until someone reviews it.
1

Open the proposal

A Context update proposed card appears in the chat, and the Review context update panel opens with the changes.
2

Adjust the text

Click in the diff to edit the proposed text. Press Esc to go back to viewing the diff.
3

Save or reject

Select Save to apply it as a new version, or Reject changes to drop it. The card then shows Saved or Rejected.
Only admins can save a proposed update. Members see the Save button disabled with Only admin users can edit context.
If the global context changed after the proposal was made, Matys can’t apply it. Ask it to propose the change again.

Versions

Every save creates a new version: a manual edit, a change from the context chat, an accepted proposal or a restore.
  • Browse versions: pick a version from the version menu at the top of the document. The current one is marked Current.
  • See what changed: select View changes to compare a version with the one before it. The button shows how many lines were added and removed.
  • Restore an older version: open the version and select Restore this version. Matys saves it as a new version, so you never lose history. Only admins can restore.

Group context

A group can have its own context on top of the global context. Matys adds it to the global context for that group’s members. Admins edit it in Settings, on the group’s page, under Group context. See Permissions.