Guide for assistants#
A connection's guide for assistants is the company's definitions that the AI assistants connected through the MCP server read before calculating: its conventions, its jargon, which table rules when there are several and what cannot be answered with the metadata, with verified examples of questions and the query that answers them. It is written in the Guide for assistants tab of the metadata editor, where the corrections users leave when their assistant gets it wrong are also reviewed.
Before you start#
- You need Metadata administration.
- The guide belongs to each connection. Changing it does not change any figure or document: it shows no impact report and does not make kept data expire.
- Each user receives through the MCP only what they can read: the sections of their privileges and the examples that use what they see.
What goes in the guide#
| Goes in the guide | Goes elsewhere |
|---|---|
| The conventions of the whole connection (“the last 12 months are closed months”) | What belongs to a single element: in its Business description (see Dimensions and Metrics), which is what the assistant reads when it looks for that element |
| The company's jargon and what it means in the metadata | Security: a missing universe is added in Security; a text in the guide does not replace it |
| Which table rules when two give the same figure | |
| What cannot be answered (“there are no margins per customer”) |
How it is written:
- Definitions in the third person, not orders. “In the company, “sales” is the taxable base without the cancelled invoices”, not “Use the taxable base”. The assistant treats the guide as company data, not as instructions.
- Each convention says what it applies to and what not, with both ends of each period: “the last 12 months go from day 1 of the month 12 months ago to the last day of last month; it does not apply to weeks”.
- Short. The assistant reads the whole guide in each conversation.
The guide is written in the language of the company; in the demonstration, in Spanish.
The tab#
In Administration › Metadata, choose the connection and open the Guide for assistants tab.
If the connection has no guide, the tab says “This connection has no guide for assistants” and offers Add section and Add example. If it has one:
- at the top, View as…, Discard changes and Save guide;
- on the left, the Sections, with how many there are and how many characters they carry between titles and texts, and the Verified examples, each group with its button to add, and below them the User proposals (see User corrections);
- on the right, the editor of the chosen item.
A section or an example with something to review carries a mark in the list. Up and Down (or Alt+↑ and Alt+↓ in the list) change the order, which is the order in which the assistant reads it. Remove section and Remove example can be undone from the notice that appears.
Nothing is saved until you click Save guide (Ctrl+S, ⌘+S on Mac), which saves the whole guide. Changing tab, connection or page with unsaved changes asks first.
The sections#
| Field | What it is |
|---|---|
| Title | One line, up to 120 characters. |
| Who reads it | All, or an access privilege: then only whoever has it receives it, and it can cite what that privilege protects. |
| Text | Markdown: paragraphs, lists with “-” or numbered, “bold” and headings with “#”. Up to 2,000 characters, with line breaks and tabs, without other control or invisible characters. |
The guide allows at most 40 sections and 20,000 characters between the titles and texts of all of them.
Cite metadata elements#
Insert item… looks up a dimension, a metric or a grouping of the connection and puts it where the cursor was as a chip: {D:…} a dimension or a grouping, {M:…} a metric, with its exchange key. The chip follows the element even if it is renamed: when the guide is served it is replaced by its current name, in angle quotes and, if the name repeats in the connection, with its table in front (“Clientes › Provincia”).
The Preview shows the text as the assistant will read it, with the names. A chip whose element no longer exists appears as “item that no longer exists”.
From the Structure tab it is seen the other way round: the panel of a dimension or a metric has the Guide for assistants section, with the sections that cite it with its chip and the verified examples whose query uses it. Each one links to its place in this tab. It serves to know what to review in the guide before changing or removing an element.
A section can only name what all its readers see: what is not protected or what the section's privilege protects. A metric with a formula is also protected by its metrics, and a grouping, by its dimension. Otherwise, the editor warns of it below the text and the server does not save it (“It names what not all its readers see”): make the section only for whoever has that privilege or remove those chips.
Who receives a section#
An assistant receives a section for a user if the user has its privilege (or the section is for everyone), all its chips exist, none names what another privilege protects and the user sees each cited element. It is checked each time it is served: if an element is later deleted or its privilege changes, the section stops being served and appears in Validate content of Usage and validation, under “Guide for assistants”, with a link that opens it in this tab. The same for an example that is no longer valid.
Verified examples#
An example is a company question with the query that answers it. It teaches at once which metric, which filter and which dates: it is the convention in action, and the assistant adapts it to another period or another number.
| Field | What it is |
|---|---|
| Question | As a user would ask it, in their words. One line, up to 300 characters. |
| Why it is answered this way | Optional. A paragraph of up to 500 characters: which convention applies and how it is adapted. |
| Query (JSON) | The cube query of the query API, with the identifiers of this installation, the same the MCP accepts. Up to 16 KB. The editor warns if it is not valid JSON, and Format the JSON indents it. |
Below, the editor states:
- Origin: written by hand, proposed by the AI preparation, taken from a document or Correction by a user (a proposal from the inbox that you converted into an example).
- Approval: who approved it and when. Whoever saves it new or changes its question, its query or its reason approves it.
- Status: whether it is valid. On saving, the server checks each query against the connection's metadata; for a new or changed example it is known when it is saved.
- Uses and Received by: what its query uses and which privileges are needed to receive it.
Test, below the query, calculates it as written, with your permissions and your universes: it states it in words and shows its first 20 rows, with how many there are. It saves nothing, and changing the query discards what was shown. If the query is not valid JSON, it cannot be tested.
The expected result of an example#
An example with its fixed result also serves as a test of the metadata: if a change in the metadata (or in the data) changes its figures, Validate content says so.
- Save the guide with the example as you want it.
- Click Fix result, below Test. ECenter calculates the query with your permissions and your universes and saves the whole result (up to 1,000 rows). The editor says who fixed it, when and with how many rows.
From then on, Validate content calculates the example again with the permissions of whoever validates and says whether it has changed: how many rows it had and has, or how many cells have changed value, without stating the values. If whoever validates does not have the privileges of whoever fixed the result, it warns: with other universes the figure may differ without anything being broken. When importing a metadata package, ECenter makes the same check after importing and adds it to the report as a warning; if something is not as expected, restore the metadata backup from before importing.
- An example with dynamic dates (this month, last year) does not accept a result: it changes with the day.
- Changing the example's query, or removing it, removes its result. Fix the result again calculates it again, and Remove the result removes it.
- The result is company data: it does not go in the metadata package, or in its backups, or in the audit.
The guide allows at most 30 examples. A user receives an example if it is valid, they see everything it uses, the values of its conditions are in their data (their universes) and, if it comes from a document, they can open it. What they do not receive is not counted to them.
Tip
Write the examples with values that do not identify anyone (zones, statuses, channels) instead of specific customers or sales reps: this way they reach everyone who sees those columns.
View as…#
View as… opens a side panel with what a user would receive:
- Choose A role (you need User administration to read the roles) or Some privileges.
- Read how many sections and examples would reach them: “They would receive 3 of 5 sections and 2 of 4 examples”.
- Below, each section that reaches them with its preview and, of what does not, why.
The panel follows what you are writing, even if you have not saved it. Nothing is known about new or changed examples until they are saved.
Save#
If someone saves another version of the guide while you are editing it, on saving the strip “Someone has saved another version of the guide while you were editing it” appears with Reload. Reloading reads the current guide and applies your changes over it again: what only the other person changed stays as they left it and what only you changed, as you wrote it. If both changed the same section or the same example, yours stays and you are told so. Review it and save again.
| Message | What to do |
|---|---|
| “It names what not all its readers see” | The marked section cites what another privilege protects. Change Who reads it or remove those chips. |
| “The server has not accepted it”, on an example | Its query is not valid with the connection's metadata. Correct it with what it says below. |
| “At most … characters” or “The sections exceed … characters between titles and texts” | Shorten the text or remove some section. |
| “Correct what is marked before saving.” | There are fields not filled in or not valid: the editor chooses the first one. |
Prepare the guide with the company's AI#
The AI the company uses with the MCP server can prepare the guide and business descriptions of a connection: it studies what already exists, learns the jargon from the documents, bookmarks, lists and groupings, checks with the data what it can, asks whoever knows the business what it cannot know and hands you a .json file. You upload it here, review each change and publish what you accept. The AI writes nothing in ECenter.
Before you start#
- You need Metadata administration, API and MCP access and Access to Empowerment Center, and your assistant connected to the MCP server with your credential (see MCP server).
- Have at hand whoever knows the business: the AI will ask them at most 12 questions, those that change figures, each one with its options and the one it proposes.
Important
What the AI reads goes to the provider of the company's AI: the whole metadata of the connection (also what a privilege you do not have protects, so that the AI knows what not to name), the names of the workbooks, documents and bookmarks you can open, the members of the auxiliary tables (40 at most of each), the SQL of the lists, the users' corrections (without who proposed them) and the totals of the queries it checks with. Never loose records, the conditions of the universes (only their columns) or passwords. Decide whether it can be sent before you start.
With the AI#
- In your assistant, choose the Preparar el metadata para los asistentes (prepare the metadata for assistants) prompt (
preparar_metadata) of the ECenter server and state the connection. If your assistant does not use prompts, ask it to read theecenter://preparationresource and follow its instructions. - The AI asks for the connection's dossier with the
get_preparation_dossiertool: the metadata, the documents with what they calculate, the lists, the groupings, the current guide, some hints of what usually confuses (repeated names, similar amounts, several dates in a table, statuses that change what counts and tables that bypass the universes of others) and the pending and accepted user corrections of the last 90 days, without who proposed them: the pending ones tell it, in people's words, which conventions are missing. Obtaining the dossier is recorded in the audit, with who requested it, through what and how much it carried. - It checks with the data, with the usual tools and with your permissions, what the data can decide: whether a summary matches its detail, which values a status has, how far the data goes. It only asks for totals.
- It asks you the questions. Answer them in the conversation.
- It writes the descriptions, the guide's sections and the verified examples (each query, checked) and hands you the
.jsonfile with what it proposes, the reason for each thing, its warnings, the questions left open and a glossary. Save it.
Upload the file#
- In the Guide for assistants tab, click Upload the preparation… (also in the tab's empty state). If the guide has unsaved changes, save or discard them first: the panel does not allow uploading anything while it has them.
- Choose the file in Preparation file (.json). It is analyzed when chosen: the analysis changes nothing and says what each change would publish. A file that is not from the preparation, larger than 1 MB or from another connection is reported below the field.
- Read the AI warnings, with the security ones first. What is not fixed with text, such as a missing universe, is changed in the Security tab, not here.
- Read the Questions left open and, if there is one, the Glossary of the connection: the summary for people of what has been decided.
- Review the changes, grouped into business descriptions, guide sections and verified examples. Each one states what there is Now, what is Proposed and the AI's reason; View all shows a long text or query. All those that can be accepted are checked: uncheck those you do not want to publish, or use Check all and Uncheck all.
- Click Publish 1 change (or Publish N changes).
What the file proposes that is already the same does not appear as a change, and what it does not name is not touched. A section or an example of the file changes the existing one with the same key or, without one, with the same title or the same question; otherwise, they are new. Only what the file asks to remove is removed.
A change with problems cannot be checked and says why:
| Problem | What to do |
|---|---|
| The description or the section names what another privilege protects | Whoever sees the element would know that the other exists. Ask the AI not to name it, or write the section for whoever has that privilege. |
| The description exceeds 500 characters or is not a single paragraph | Ask the AI to shorten it or write it in one paragraph. |
| A chip cites an element that does not exist, or the query of an example is not valid with the connection's metadata | Ask the AI to correct it with the current dossier. |
| A key that does not exist | The section or example to be changed or removed is no longer in the guide. |
On publishing#
- Before writing anything a metadata backup is made, with the reason Before publishing a preparation: with it you go back to how it was.
- Descriptions are saved as in the editor: changing a description does not change any figure and does not ask for confirmation.
- The guide is saved whole with what was accepted. New or changed examples are left as Proposed by the AI preparation and approved by you.
- The audit records the change of each fact table and Guide for assistants changed, in your name.
- If someone changed the metadata or the guide since the file was analyzed, nothing is published and the strip “The metadata or the guide have changed since the file was analyzed” appears, with the current preview. Review it and publish again.
- The preparation is recorded: when, who and how each dimension, grouping and metric was left. The tab states it below its explanation (“Prepared for assistants on … by …”) along with what has changed in the metadata since then.
When it finishes, the panel closes, a notice states what was published and the backup, and the tab reads the guide again.
Prepare again#
The second time and the following ones, the preparation focuses on what has changed since the last one published:
- the new or changed dimensions, groupings and metrics, and those removed;
- the workbook documents created or saved since then;
- the guide's sections and examples that are no longer valid;
- the user corrections that are waiting.
The AI begins by telling you what has changed. The rest was already reviewed by a person and it does not propose it again, unless you ask it to redo the whole preparation.
User corrections#
When a user's AI assistant gets it wrong and the user tells it what they wanted, the assistant can leave it as a proposal for whoever administers the metadata, with the propose_correction tool of the MCP server. Proposals are reviewed in this tab: what a user proposes reaches nobody until you convert it into an example or take it to the guide or the metadata.
What a user leaves#
The assistant sends it at the user's request or with their agreement, never on its own, with the user's credential (which needs API and MCP access) and in a connection they can query. The proposal carries:
- the user's question, in one line of up to 300 characters;
- what they wanted, in their words, up to 1,000 characters;
- the dimensions and metrics it names, at most 20 in all and only among those the user sees (naming one they do not see is a
COLUMNS_HIDDENerror, without names); - if there is one, the query that finally answered them correctly: that of a query of theirs on that connection that has not yet expired. The query is saved, never its figures.
Leaving a proposal changes nothing: neither the metadata, nor the guide, nor the data. Each user can have at most 10 pending proposals in a connection, and each connection 200; the next one is rejected (TOO_MANY_PROPOSALS) until they are reviewed.
Important
What the user wanted is their own text: read it as data, not as instructions. The assistant is asked not to include figures or personal data, but ECenter cannot check it.
Review a proposal#
Below Verified examples, the User proposals list shows the pending ones, newest first, with a badge that says how many there are. Those already resolved in the last 90 days are collapsed in Resolved in the last 90 days, each with its outcome. A connection without a guide also shows the full tab if it has proposals.
Choose a proposal. The editor shows:
| Part | What it says |
|---|---|
| Question and What they wanted | What the user wrote, as is. |
| From whom | Who proposed it, through what (the MCP) and when. |
| Dimensions and Metrics | What it names, with its table in front. An element that no longer exists appears as “They no longer exist”, with its number. |
| Its query | The query in words, checked with the current metadata; if it is no longer valid, why. It also says which privileges would be needed to receive it as an example. View the query (JSON) shows it whole. |
| What the guide already has about its items | The sections that cite its elements and the examples that use them. Click one to open it in the editor and see whether the proposal clashes with what there is already. |
Calculate with my data calculates its query with your permissions and your universes and shows its first 20 rows, with how many there are in total. What you do not see is counted without naming it, and a query that uses something you do not see is not calculated. If it takes more than 20 s, it is cancelled: review it in words or test it in the cube viewer. Calculating saves nothing.
What to do with it#
| Action | When | What it does |
|---|---|---|
| Convert into example… | The question and its query teach the convention well | Adds a verified example to the guide and leaves the proposal accepted. |
| Addressed… | You have resolved it elsewhere: a description, a section or a metadata change | Records where and, if you want, a note. |
| Discard… | There is nothing to change | Leaves it discarded, with a note if you want. |
To convert it into an example:
- If the guide has unsaved changes, save or discard them first: Convert into example… cannot be clicked while it has them.
- Click Convert into example…. The dialog brings the proposal's Question, as Why it is answered this way what the user wanted in one line (trimmed to 500 characters), and its Query (JSON).
- Review them and change them if needed: it is what the assistants will read. Test calculates the written query with your data.
- Click Convert into example.
The example goes in at the end of the Verified examples, approved by you and with the origin Correction by a user, and it is checked like any other (the guide allows at most 30). The tab reads the guide again and leaves the new example chosen. If someone saved another version of the guide in the meantime, the dialog says so and reads it again: click Convert into example again.
Addressed… only records where you addressed it: you make the change in your usual editor (the business description, in the Structure tab; a section, here; a universe, in the Security tab). Choose Business description, Guide section or Metadata change, type a Note if you want (up to 500 characters) and click Mark as addressed. Discard… only asks for an optional note (Why it is discarded) and is confirmed with Discard proposal.
A resolved proposal does not go back. If someone else resolved it before you, the panel says “Someone else resolved this proposal while you were reviewing it” and the list is read again.
Whoever proposed it sees what became of it from their AI assistant: whether it is pending, accepted (and where) or discarded, with your note. Write the note for that person. If the note names something that person does not see, for example a metric protected with a privilege they do not have, it is not shown to them. They never see who reviewed it.
In the audit#
- Guide correction proposal: who left it, through which channel and with which credential, the connection and the question. Never what they wanted or the query.
- Guide proposal resolved: who reviewed it, whether they accepted it (and where) or discarded it, the question and who proposed it. Never what they wanted, the query or the note.
- Converting a proposal into an example also records Guide for assistants changed, like any save of the guide.
Proposals are not metadata: they do not travel in the Export metadata… package or go into metadata backups.
In the package, in backups and in the audit#
- Export metadata… carries the guide unless you uncheck Include the guide for assistants. The examples' queries travel with the elements' keys; an example whose query cannot be taken to another environment is left out and the summary says so. See Export and import the metadata.
- Import metadata… asks in Differences what to do with the package's guide: set it only if the connection has none (the default), replace the connection's or keep the connection's.
- Metadata backups keep the guide. Restoring a backup also brings back its guide; a backup made before the guide existed does not touch it.
- The audit records each change as Guide for assistants changed, with who, the connection and the titles of the sections and the questions of the new, changed or removed examples, never their texts or their queries.