Switchboard Docs
Context layer

Describe a model for AI

Write guidance that helps AI interpret a model.

Model context is written guidance attached to a model, property, aggregation, or relationship. Switchboard AI is named Operator in the app. It reads this guidance when working with the model. Use it to explain when the data applies, how to interpret it, and which exceptions matter.

Description and model context

Description provides a short explanation within a model or field definition. Model context holds interpretation guidance, such as when to use a metric or how to handle an exception. Keep the definition's summary in Description and the detailed guidance in Model context.

Descriptions save with the model definition. Model context has its own Save control and version history. Changing one does not replace the other.

Before you start

Save the model first. You need edit access to change its context. Viewing context and its history does not require model editing access. Keep guidance separate from the model's SQL and calculations.

Add guidance

  1. Open the model in Models.
  2. Find Model context on the model or select a property, aggregation, or relationship.
  3. Describe the business meaning, preferred interpretation, and important exceptions.
  4. Keep the text within 4,000 characters for that context entry.
  5. Select Save beside the context editor.
  6. Reopen the entry and check the saved text.
The Model context editor with guidance for fictional orders, a History button, character count, and separate Save control.

Guidance saved on the sample orders model.

For an orders model, an example is:

One row represents one order. Use order date for sales reporting. Exclude test orders when comparing channels.

Context guides interpretation. It does not add a SQL filter, change model rows, or enforce data permissions. Saving context does not start a model build.

Ask AI to update context

Use the full conversation panel for this workflow. You need edit access to the model.

  1. Open Conversations and name the model and guidance you want to change.
  2. Ask Operator to propose a model-context update.
  3. Review the model name and each before-and-after change on the confirmation card.
  4. Approve the card if the changes are correct, or request a revision.
  5. Wait for the Saved result, then check the context on the model page.
A proposed model-context change for Practice orders, showing the existing text, added guidance, and Approve, Edit, and Reject controls.

The confirmation card shows the proposed text before it is saved.

If the card shows Not saved, read the reason before retrying. If someone changed the context after the proposal, ask Operator to read the current text and propose again. See AI approvals for reviewing other kinds of changes.

Handle a conflicting edit

If another person changed the same entry, read their version before saving again. Choose Use their version to accept it. Choose Save mine over it only when you intend to replace it with your text.

Use History to read previous context versions. The history view does not edit the model.

Test AI interpretation

Ask Operator a question that depends on the rule you wrote. Check its chosen model, date, filters, and calculation. If it still interprets the model incorrectly, make the guidance more specific and test the same question again.

For a rule that must change the data, edit the model or aggregation.

On this page