Skip to main content
A governance template is a questionnaire on a record type, such as an AI risk assessment on an AI System or an intake on a Use Case. Each answer can carry points. The template adds the points into a score, puts the score in a tier, and can write the score and the tier to fields of the record. Admins build templates without code. People fill them in three ways: with an agent in chat or Slack, on a form on a surface, or over the API. Every submitted response is stored with the record and its change history. Templates are part of AI governance records. They show only in organizations that have AI governance records. Screenshots show sample data.

Who does what

Built-in templates are read only for everyone. Duplicate one to change it.

Build a template

1

Open Templates

Go to Platform > AI governance > Records and open the Templates tab. The list shows the built-in templates and your own, with their record type and version. Filter by record type, or by Built-in and yours, Built-in or Yours.
Templates tab with the four built-in templates at Built-in Version 1 and two organization templates, one at Version 1 with a draft of version 2

Platform > AI governance > Records, Templates tab. Shown with sample data.

2

Create it

Click New template, enter a Name and pick the Record type it answers. The template opens in the builder as Draft of version 1. Add a Description if you want one.
Builder of a new template: Details with Name and Description, Questions with one empty section, Add question and Add section, Score set to No score, and the Preview pane

A new template in the builder, before its first question. Shown with sample data.

3

Add questions

Under Questions, give each section a title, then click Add question. Add section starts a new section. For each question set:
  • Question: the text people answer.
  • Answer type: one of the eight types in the table below.
  • Required: the response cannot be submitted without an answer.
  • Help text: optional, shown under the question.
  • For One choice and Several choices: each choice and its Points. Add choice adds one.
  • Counts toward the score and its Weight (for Number, One choice and Several choices).
4

Set the score and the tiers

Under Score and tiers, pick the Score:A response with no answered scoring question has no score. Under Tiers, click Add tier for each tier and give it a name, a From and a To score. Leave To of the last tier empty for “and above”. Tiers must not overlap or leave a gap: 0 to 10, 11 to 20 and 21 and above is complete. A score above a closed last tier, or below the first tier, has no tier.Write the score to and Write the tier to name the record fields that get the result on submit, or Do not write the score and Do not write the tier. The score goes to a number field of the record type. The tier goes to Risk tier (with tiers named like the risk tiers: low, medium, high, critical), or to a text field or a one-choice field that has every tier name as an option.
5

Check it in Preview

Preview on the right shows the form as people see it. Answer it to see the Score, the Tier and how many questions are answered. Preview saves nothing.
Builder with three questions: a required Number question, a required One choice question with points 0, 3 and 5, and an optional Yes or no question; Weighted sum of points; tiers Low 0 to 10, Medium 11 to 20, High 21 and above; tier written to Risk tier; Preview shows Score 15 and Tier Medium

The builder with Preview: 9 people (weight 1) and Internal data (3 points, weight 2) give a weighted score of 15, tier Medium. Shown with sample data.

6

Publish

Save draft keeps your changes without publishing them. Publish makes the draft the template’s next version, and people can fill it from then on. A template needs at least one question to publish. The builder names any problem, such as two tiers that overlap, before it publishes.

Versions

A published version never changes. Every response keeps the exact questions it answered.
  • After a publish, the next edit starts the draft of version n+1. The list then reads, for example, Version 1 · draft of version 2. People keep filling version 1 until you publish version 2.
  • A template has at most one draft.
  • A response stays on the version it started on. Filling the template again later makes a new response on the version published then.
  • Archive in a row’s menu stops new answers. Answers people already gave stay on their records. A template that has responses cannot be deleted, only archived.

Built-in templates

Four templates come with xpander: They are read only. To change one, choose Duplicate in its row’s menu. The copy is your own template, named with “(copy)”, as Draft of version 1, and opens in the builder. Duplicate works on your own templates too.
Builder with AI risk assessment (copy), Draft of version 1 on AI System, with the built-in questions now editable

A duplicated built-in template, editable as Draft of version 1. Shown with sample data.

Fill a template with an agent

Any agent of your organization can fill a published template with a person in the app chat or in Slack, one question at a time. Ask it, for example: “Start the AI risk assessment on AIS-0007.”
  • The agent names the record by its id (such as AIS-0007) or its exact title. For anything else it lists close records to choose from and starts nothing.
  • It asks one question at a time, with its answer type, whether it is required, its help text and its choices.
  • It reads answers as people say them: a number, yes or no, a choice by its label, several choices separated by commas, and “me” for a person question. A wrong type, such as “abc” for a number, is refused, nothing is saved, and the agent asks again.
  • An empty answer skips an optional question. A required question cannot be skipped.
  • Before it submits, the agent states the score and the tier and asks you to confirm. It submits only after you confirm.
  • A draft stays. Ask again later (“continue my risk assessment”) and the agent starts at the first unanswered question.
Example in chat:
The agent acts as you, with your role. It sees only what you can see, and submits only where you can submit. In Slack, it acts as the person who wrote, so that person’s Slack account must be linked to xpander. A run started with an API key cannot fill a template through an agent; use the API instead.

Turn it on or off

The agent uses four built-in tools: xpgovernance_list_templates, xpgovernance_start_response, xpgovernance_answer and xpgovernance_submit. They are on for every agent of an organization that has AI governance records.
  • For the whole organization: Platform > AI governance > Policies > Agent tools > Governance templates.
  • For one agent on Claude Code, Codex or OpenCode: Agent settings > Skills > Core Skills > xpander built-in tools > Governance templates (Built-in tools).
xpander built-in tools list with Memory, Knowledge bases, Company brain and Governance templates switched on

Agent settings, Core Skills: Governance templates under xpander built-in tools. Shown with sample data.

Fill a template on a surface

A template-form block shows a published template as a form on one record, on any surface. Ask the agent that builds the surface to add it, for example: “Add the AI risk assessment form for AIS-0007 to this surface.” The block in the surface manifest:
Add "version": <n> to pin the form to a version. When the pinned version is not the published one, the form takes no answers and asks the surface owner to update it. The form reads and writes as the person who views the surface, with their own role. It shows the template name, the record it is on and the version.
  • Required questions carry a red mark. Submit stays off until every required question has an answer. The footer counts them, for example “1 of 4 required answered”. Clicking Submit too early marks each missing question Required.
  • Answers save as a draft while the person types, and the draft is there when they come back.
  • After submit, the form shows Submitted with the Score and the Tier. Fill in again makes a new response; the earlier one stays.
AI risk assessment form on Invoice triage agent, version 3: required questions marked Required, footer 1 of 4 required answered, Submit off

A template-form block with required questions left: Submit stays off. Shown with sample data.

Surface with a Submitted card: AI risk assessment was submitted on Invoice triage agent, Score 24, Tier High, and Fill in again

The same block after submit: score and tier. Shown with sample data.

When the form cannot take answers, it says why:
AI risk assessment card: You do not have access to this record. Ask the record owner for access.

The form for a person with no access to the record. Shown with sample data.

API

The public API has the same routes under https://api.xpander.ai/v1/governance. Send your key in x-api-key. The definition holds sections, each with questions. A question has an id, a label, a type (text, long_text, number, boolean, date, select, multi_select or user), optional required, help and weight, and for select and multi_select the options with their points. score_formula is {"op": "sum" | "weighted_sum" | "min" | "max", "questions": [...]}, tier_bands is a list of {"name", "min", "max"} (max null for “and above”), and field_mapping is {"score": "<field>", "tier": "<field>"}. An invalid definition answers 422 invalid_definition with the problem. Example: start, answer and submit the built-in AI risk assessment. The answers give a score of 14, tier Medium.
Which key to use:
  • A personal API key acts as its person, with that person’s role, under the same rules as the app.
  • The organization API key acts for the organization with an owner or admin’s rights. Its drafts and writes name no person.
  • Any other key, such as a key made for one agent, is refused with 403.
An organization without AI governance records gets 403 on every route, and an id of another organization gets 404.

What a submit records

  • The response with its answers, score and tier, under the person who submitted it.
  • When the template writes to the record: the new field values, as a record version marked as set by the template, with the note Set by <template> v<n>. A value that does not change makes no new version.
  • An entry template_response_submitted in the Audit log, with the record, template, version, score and tier.
  • An answer saved after the submit is refused. A submitted response never changes.