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
| Action | Required role |
|---|---|
| View and use presets | Any team member |
| Create, edit, rename, delete a preset | Team admin |
| Add or remove rules, templates, references | Team admin |
| Set or unset the default preset | Team 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
- Open your team's AI presets.
- Create a new preset and give it a name and an optional description. The description helps teammates understand when to use it.
- 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:
- In the AI sidebar, click on the + button
- Select AI presets
- 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:
- Open the AI presets page
- Select the preset you want to use in the preset selection dropdown
- The browser URL bar will then contain a
presetId - Copy that ID and provide it as the
contextIdin the/api/render/promptAPI call
Updated about 1 hour ago