Applies to: ManagementStudio v2027.17 and later · Audience: report authors, publishers, administrators, Portal Page and Email Builder users
TABLE OF CONTENTS
- Overview
- Prerequisites and permissions
- Creating an AI Report Template
- Testing a draft before you publish (Test Draft)
- Refining the instructions with AI (optional)
- Creating a report from an AI Analyst conversation (Save as AI Report)
- Publishing and generating reports
- Sharing and ownership
- Using AI Reports in Portal Pages
- Using AI Reports in emails
- Refreshing and generation policy
- Scheduled regeneration (optional)
- Troubleshooting
Overview
An AI Report Template is a reusable report definition: you write an Analysis Prompt (the question the AI should answer about your project's data) and a Presentation Scaffold (how the answer should be laid out — headings, tables, and the figures to include). When you publish the template (or later ask for a refresh), ManagementStudio's server runs it once against your live project data and stores the result as a report snapshot.
Generation is on demand: a report is generated when you publish it, publish changes, or press Regenerate Report — or, if a publisher deliberately ties it to one of the project's Scheduled Tasks, each time that schedule fires. It is never generated simply because its snapshot has aged. See and .
Every consumer — the viewer in the client, Portal Pages and emails — shows that stored snapshot rather than asking the AI again, so a report can be reused by many people at no extra AI cost. Typical uses include a monthly application estate position, vendor or licence spend summaries, version-sprawl analysis, and migration readiness summaries.
Prerequisites and permissions
AI Reports must be switched on at two levels:
Globally — an administrator enables AI on Administration > AI & MCP (Global): tick Enable AI globally, configure the LLM provider and API key (Test Connection confirms it works) and set Client AI Execution Mode to ServerProxy so the server runs the AI.
Per project — on Administration > AI & MCP, tick Enable Shared AI Reports for this project and Save.
Permissions are granted on Administration > Role Groups, Project section:
| Permission | Lets a user |
|---|---|
| Manage AI Report templates (own) | Create, edit and delete their own templates |
| Publish Shared AI Reports | Publish/unpublish, share with the project, and edit system-managed templates |
| Administer All AI Reports | Administer every report: change owner, system promotion, archive and force refresh |
Creating an AI Report Template
Open Administration, then select AI Reports.
Click New AI Report Template and enter a template name, then a description.
Double-click the new row to open the editor.
In the Template group, review Name and Description.
In Analysis prompt (draft), describe what the AI should analyse and which figures it must report. Ask it to use the data tools and never invent numbers.
In Presentation scaffold (draft), describe the layout: title, sections, tables and their columns.
Click Save Draft.
Output format and the freshness window are deliberately not edited on this screen: new reports default to Html output and are treated as fresh for 60 minutes. Both are managed automatically and need no authoring decision; a template's existing values are always preserved when you save other fields.
Drafts are private and are never generated; publishing immediately generates exactly one report of the published version — the publish action itself runs the AI and waits for it.
Example — the two parts compared. For an "Application Estate Position" template:
Analysis Prompt: "Summarise this project's application estate: total applications, distinct names and vendors, the top ten vendors with counts and percentages, and applications with no version recorded. Use the project's applications data; do not estimate."
Presentation Scaffold: "Begin with an 'Estate at a glance' table of the headline figures, then a two-paragraph Executive summary, then a 'Top vendors' table (Rank, Vendor, Applications, Share), and finish with a short data-quality note."
The prompt decides what is analysed; the scaffold decides how it reads.
Testing a draft before you publish (Test Draft)
Test Draft runs the template once, immediately, using the values currently in the editor (including unsaved changes), so you can see roughly what the report will look like before you commit to publishing.
Requires the Publish Shared AI Reports permission (or administration). Test Draft runs the trusted server-side AI identity, so it is deliberately a publisher-level action — an ordinary template creator cannot invoke it.
On success it offers Open Preview, which opens a temporary browser preview of the generated HTML. Reopening that link re-serves the same saved output and does not call the AI again. Preview links are short-lived; an expired one fails gracefully. Note the deliberate distinction: Open Preview shows a temporary Test Draft (your unsaved editor values); View Published Report shows the saved, published snapshot — they are different things.
Test Draft publishes nothing: no version bump, no snapshot, no history entry — your published report is untouched.
If it fails, the error is shown and your editor content is left exactly as it was.
Refining the instructions with AI (optional)
Refine with AI is an optional authoring aid beside the Analysis Prompt and Presentation Scaffold. It makes a single AI pass that proposes a tighter, more repeatable rewrite of both fields (and sometimes a name).
It uses your current, possibly unsaved, editor values and is gated on the ordinary edit right — it is not a publishing or generation action.
The proposal appears in the editor for review: press Apply to accept it or Keep current to discard. Nothing is saved until you press Save Draft.
Undo AI refinement restores your original text until you save.
It never generates a report, runs data tools, or changes the published version — it only helps you word the two draft fields.
Creating a report from an AI Analyst conversation (Save as AI Report)
From the Main AI Analyst, after it has answered a question, use Save as AI Report to turn that conversation into a reusable template. The analyst hands over your own instructions (and your follow-up questions) as the starting Analysis Prompt; the AI's answer is carried only as labelled reference material, so figures it produced are not baked in as permanent report facts.
The AI Reports editor opens with an unsaved, private, unpublished draft — review the name and instructions, optionally Refine with AI, then press Save Draft to create it. Leaving the screen without saving creates nothing.
It does not publish or generate automatically; publishing is a separate, deliberate action you take later.
Save as AI Report is on the Main AI Analyst only (the Grid and DMR Analysts do not offer it).
Publishing and generating reports
The editor publishes only what you have saved. Press Save Draft for any changes before Publish or Publish Changes — if you still have unsaved edits in the editor, publishing is refused and asks you to save first, so you are never left thinking new wording went live when it did not.
Publish copies your saved draft into the published version, increases the version number and then immediately generates the report — the publish action runs the AI analysis and waits for it, so when the message appears the report is already stored (or the failure is already honest). There is no queue and no background generator waiting to act later. Only publishers and administrators can do this.
Published and generated are separate outcomes. If the publication succeeds but the AI run fails, your publication stands (the failure never rolls it back), the failure is recorded in the generation history and reported to you, and the last successful report keeps being shown. Fix the cause and use Regenerate Report (or publish again) when ready.
Publishing a revised template starts a new version. Until that version's first report has been generated, consumers will see no report rather than the superseded one, so expect a brief gap after each publish.
Regenerate Report runs one fresh analysis right now using the latest project data and the currently published instructions, and the button stays busy until the outcome is real: success means the new snapshot is already available; failure is shown to you immediately. There is no queue, so there is no "queued" answer and nothing to wait for afterwards. Because it runs a real AI analysis, it consumes LLM tokens and can take minutes. It never changes your draft, publishes unsaved edits, or bumps the version — and it keeps the current report selected and your editor (including unsaved edits) open. Pressing it again while a generation is running gets an honest "already being generated, or was attempted too recently" answer rather than a second run. The list's Last generation column shows the outcome (Running, Succeeded or Failed), Last generation UTC the time, and Snapshot and Stale show what consumers will receive.
View Published Report opens the current published report exactly as it was generated — it never runs the model again. The main button opens it in your browser, rendered close to how the Portal shows it from the same stored, sanitised HTML; the dropdown arrow also offers Open in WPF to read it in the desktop viewer instead. It is offered only when the template has a successful snapshot for its current published version and you are authorised to view it. Browser viewing uses a private, short-lived link (about 30 minutes) that is never indexed and carries no permanent address or credentials; if it lapses, choose View Published Report again. Separately, Reload AI Reports refreshes the list only (it never calls the AI) and keeps your selection and editor where the report still exists.
If a generation fails, the last good report keeps being shown and you are told straight away. Nothing retries on its own — there is no worker to retry — so correct the cause (for example the prompt, or the AI configuration) and press Regenerate Report to try again deliberately. Repeated identical failures are flagged in the server log as a systematic fault to fix first.
Unpublish hides the report from consumers (Portal Pages, emails and the viewer) but keeps your draft. Archive hides a template from normal lists; Restore brings it back.
Sharing and ownership
New templates are private to their owner. Users with the publish permission can click Share to make a template visible to the whole project; Unshare reverses this.
Change Owner (administrators only) transfers a template to another user. System Managed (administrators only) promotes a template to system ownership: it is presented as a standard system report, is not editable by ordinary users, and can be maintained by publishers and administrators. Use it for organisation-standard reports whose original owner may leave.
Administrators can tick Admin view (all templates) to see and manage every template in the project, including archived ones.
Using AI Reports in Portal Pages
Open Administration > Portal (Pages,Forms,DMRs) and edit a Portal Page.
Drag AI Report from the Available Elements list onto the page layout.
In the element's settings, enter a Title and choose the AI Report Template Id with the picker (it lists the published reports you can see); optionally tick Display the AI Report in compact mode.
Save the Portal Page.
Viewers see the generated report rendered in the page.
Portal Pages display the cached report content, and the page's existing Portal access rules still decide who can see it.
Using AI Reports in emails
In the Email Builder, open the keyword picker and use the AI Reports group: each published report is listed as its name (ID: number), which inserts a keyword such as [AI-Report-45]. The number identifies the AI Report Template. When the email is produced, ManagementStudio inserts the report's stored content — it does not run the AI separately for each recipient.
Refreshing and generation policy
AI Reports generate on demand, and immediately. There is no AI Report queue, no AI Report poller and no hidden background generator — a report is generated by an explicit action you take (publishing, publishing changes, Regenerate Report, or a Test Draft run), each of which performs the generation itself and waits for the result; or, if a publisher has deliberately attached the report to a Scheduled Task, when that existing project schedule fires (see ). Attaching a report to a schedule reuses the product's normal Scheduled Tasks engine; it does not create a generator of its own, and a report with no schedule attached is never generated automatically.
Each report is treated as fresh for a fixed window (60 minutes by default; it is set automatically, not chosen on the editor). While fresh, every consumer shows the same content. Once that window passes, nothing happens automatically — the last snapshot is simply shown stale.
A report shown stale is an older snapshot still being displayed because no fresh one exists yet (its freshness window has passed, or generation has not run since). It stays available to read; a fresh snapshot appears only after you publish changes or press Regenerate Report.
A report with no snapshot (never generated, or a new version whose first generation has not happened yet) shows an empty state — it is never silently replaced by a superseded version.
| Action | Generates a report? |
|---|---|
| Save Draft | No |
| Create, or Save as AI Report | No |
| Publish or Publish Changes | Yes — published, then one generation runs immediately in the same action (runs the AI, consumes tokens) |
| Regenerate Report | Yes — one generation runs immediately in the same action (runs the AI, consumes tokens) |
| Test Draft | Yes — one temporary run (nothing is published) |
| Refine with AI | No report (a single prompt-refinement call only) |
| Open Preview (last Test Draft) / View Published Report / Portal Page / Email render | No |
| Reload AI Reports | No — grid refresh only (never calls the AI) |
| Freshness window passes | No |
| The report's Scheduled Task fires | Yes — one generation per firing, if eligible (runs the AI, consumes tokens) |
| Server restart | No new request |
Each generation runs inside the action that asked for it — Publish, Publish Changes, Regenerate Report or Test Draft — and produces exactly one snapshot and then stops. Generations are bounded (a run that exceeds its time limit fails honestly rather than hanging), and only one generation per template can be in flight at a time. Expired snapshots are never regenerated on their own.
Scheduled regeneration (optional)
A publisher can tie a report to the project's existing Scheduled Tasks so it refreshes itself each time a schedule fires. This is opt-in per report: a report with no schedule attached behaves exactly as before — on demand only.
Where: in the AI Reports list. Editing scheduling needs Publish Shared AI Reports or Administer All AI Reports. The Schedule 1 column is visible by default; Schedule 2, Schedule Priority and Wait for Completion are hidden and revealed with the grid's usual column tools (the same convention as the other hidden columns). Tick Save Changes (the dirty-row glyph shows pending edits) or Cancel Changes to discard.
Both schedules are optional, chosen from the project's own Scheduled Tasks by name. Schedule 1 and Schedule 2 each trigger the report independently; assigning the same schedule to both is refused. Schedules reserved for agent jobs are not offered.
Priority (1–100, default 90) orders the report against the scripts on the same schedule — lower runs first. The default is deliberately late so scheduled reports do not displace existing scripted jobs.
Wait for Completion (off by default): when on, the schedule waits for this report's generation before starting later jobs; when off, the generation runs in the background of the schedule pass. Either way the pass is bounded — a generation always ends in success, refusal, or failure, and a report failure never stops the schedule's scripts.
What runs when the schedule fires: eligibility is re-tested at that moment — the report must still be published, not archived, the schedule enabled and not agent-only, and AI enabled for the project. The generation uses the published instructions, never your unpublished draft, and is bounded like every other generation. If both of a report's schedules fire at the same minute, only one generation starts. If it fails, the failure is recorded in the generation history, the last good snapshot keeps being shown, and nothing retries on its own — the next firing (or a manual Regenerate Report) is the retry.
Cache freshness never triggers anything. A schedule firing only regenerates the reports explicitly tied to it; every other report is untouched, and an expired snapshot alone still never generates.
Troubleshooting
| Problem | What to do |
|---|---|
| AI Reports option not visible / no reports listed | Ask an administrator to enable Enable AI globally (AI & MCP (Global)) and Enable Shared AI Reports for this project (AI & MCP), and check you hold the relevant permission. |
| Cannot create a template | You need Manage AI Report templates (own) (or administration) in your role group. |
| Cannot press Publish | You need Publish Shared AI Reports; ask the owner or an administrator. |
| Report has not generated yet | Drafts are never generated — publish it first. After publishing, allow a few minutes for the background run, then Reload and check Last generation. |
| Generation failed | Open the template: the status line repeats the server's error. Fix the prompt or ask the administrator to fix the AI configuration, then Regenerate Report. The previous good report stays visible meanwhile. |
| ServerProxy or API key unavailable | Reports only generate when the AI is configured globally on Administration > AI & MCP (Global) (API key set, Test Connection succeeds, mode ServerProxy). This is an administrator action. |
| Portal Page or email shows no report | Confirm the template is published, shared or visible to the audience, has a snapshot (Snapshot column), and that the Portal element / [AI-Report-ID] keyword points at the right template ID. |
| Report is marked stale | Press Regenerate Report |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article