AI presets

AI presets let your team shape how Eraser's AI generates diagrams and documents. A preset is a reusable bundle of rules, templates, and references that you attach to a generation request. Instead of re-explaining your conventions every time, you capture them once in a preset and the AI applies them automatically.

A preset answers three questions for the AI:

  • Rules – what must always be true? (styling, layout, branding, policies)
  • Templates – what should the output be filled into? (a starting structure to complete)
  • References – what should the AI read for context? (existing patterns, tech stack, guidelines)

Presets are scoped to a team, so everyone on the team generates output that looks and reads consistently.

Who can manage presets

ActionRequired role
View and use presetsAny team member
Create, edit, rename, delete a presetTeam admin
Add or remove rules, templates, referencesTeam admin
Set or unset the default presetTeam admin

Managing presets

You manage presets from your team's AI settings. Each preset has three tabs – Rules, Templates, and References – for managing the items inside it.

Create a preset

  1. Open your team's AI presets.
  2. Create a new preset and give it a name and an optional description. The description helps teammates understand when to use it.
  3. Add rules, templates, and references using the tabs (see the dedicated pages for each).

Delete a preset

Deleting a preset removes it for the whole team. Templates and references are backed by regular Eraser files, so deleting the preset does not delete those files – it only unlinks them from the preset.

Setting a default preset

A team can mark one preset as the default. When it is set, that preset is automatically applied to any new AI chat session. Users can still unapply the preset from a chat session. Setting a new default automatically unsets the previous one.

Using a preset in generation

When you generate a diagram or document with AI, you choose which preset applies:

  1. In the AI sidebar, click on the + button
  2. Select AI presets
  3. Select the preset that you'd like to apply

When a preset is applied, Eraser intelligently selects the most relevant references and template for your specific request, then applies all of the preset's rules as generation guidelines. See the individual pages for details:

Using a preset in the API

In the /api/render/prompt endpoint (docs), you can specify a contextId to apply an AI preset in a diagram generation API call.

The contextId is the preset's ID, which you can obtain with the steps below:

  1. Open the AI presets page
  2. Select the preset you want to use in the preset selection dropdown
  3. The browser URL bar will then contain a presetId
    1. e.g. https://app.eraser.io/dashboard/ai-preset?presetId=YOUR-PRESET-ID
  4. Copy that ID and provide it as the contextId in the /api/render/prompt API call