For the complete documentation index, see llms.txt. This page is also available as Markdown.

Brand Rules

Ensure that the content your users create with AI adheres to brand guidelines.

Brand Rules are available for customers on Superpowers and Enterprise plans.

Agentic design functionality helps your users create content faster, but speed alone isn’t the goal. However it’s created, that content also needs to be on-brand and Brand Rules make sure it is. As guardrails, they guide what the MCP or AI Co-Pilot can create: presets define approved styles, permissions restrict what the AI can touch, and limits cap how much content it adds. The same presets are also what Brand Check validates designs, AI-generated or not, against before your users send it.

How Brand Rules work

With Brand Rules, a host application can attach a brandRules object to an AI editing session. Brand Rules act as guardrails that the AI must work within so that the output it generates matches your (or your end users') brand. At their core, Brand Rules give guidance on three key questions:

  1. What should certain design elements look like? You define the styles using presets.

  2. What is the AI allowed to touch? With permissions you can control what the AI can (and cannot) edit.

  3. How much content fits? Use limits to define caps on certain content elements.

Brand Rules can apply to any AI editing session, whether you’re creating with the MCP or using the AI Co-Pilot. Brand Check also uses the same presets for designs made without AI. Not every field is read by both MCP/Co-Pilot and Brand Check; see the Brand Rules JSON schema for exactly which properties each one uses.

The different types of brand rules: Presets, Permissions, and Limits

Type

Used by

What it does

Example

presets

MCP, AI Co-Pilot, and Brand Check

Named, pre-approved styles for blocks, rows, columns, and settings. Once presets are defined, the AI must pick one — preset values override the AI's own styling choices. Learn more.

"brandCta" → blue background, white bold label, 4px corners

permissions

MCP and AI Co-Pilot Only

Per-block-type "no" lists: noAdd, noUpdate, noDelete. Refused operations return a clear message to the AI. Learn more.

noUpdate: ["menu"] → the AI can never change the navigation menu

limits

MCP and AI Co-Pilot Only

Content caps: rows.max/min, columns.maxPerRow, blocks.max, blocks.maxPerType. Learn more.

blocks.maxPerType.menu: 1 → at most one menu in the email

Setting Brand Rules is optional. You can choose which Brand Rule type you'd like to define and how detailed you want to be in defining the rules for each of your Brand Rule types. If you don't define a brandRules object, it simply means that the AI isn't restricted by any brand guardrails.

Setting Brand Rules is optional. You can choose which Brand Rule type you'd like to define and how detailed you want to be in defining the rules for each of your Brand Rule types. If you don't define a brandRules object, it simply means that the AI isn't restricted by any brand guardrails.

Presets

presets are at the core of your Brand Rules because they define styles — colors, typography, and more — the AI must follow when creating content. They allow you to define how content blocks like buttons, paragraphs, or titles should look when they're created by AI. You can use presets in your Brand rules to set one preset per content block or create more sophisticated design systems.

presets are at the core of your Brand Rules. They define styles, colors, typography, and more that the AI must follow when creating content and that Brand Check validates designs against before they’re sent. They allow you to define how content blocks like buttons, paragraphs, or titles should look.

You can use presets in your Brand rules to set one preset per content block or build more sophisticated design systems with multiple preset checks per block.

Basic presets: Define one preset per element

You define a single preset per block type that applies to every single content block the AI adds to your design. Let's say your user's brand guidelines call for all buttons to be bright blue, with slightly rounded corners and white text. You can define your button presets like this:

Every single time the AI adds a button to the design, it'll use the brandButton styles you defined — and every button will look exactly the same, in compliance with the styles you defined in your presets.

Every single time the AI adds a button to the design, it will use the brandButton styles you defined, and every button will look exactly the same, in compliance with the styles you defined in your presets.

This basic preset is simple to set up and leaves zero ambiguity for the AI.

Advanced design systems: Define multiple presets per element

If your users are working with advanced design systems, a single preset per design element might not be enough.

For example, while a primary CTA might be blue with white copy, your user's style guide might also allow for secondary CTAs of a different style, and you'll want the AI to work with those instructions as well.

presets allow you to codify even more complex design systems because you can define multiple presets per block type (e.g. primaryCta, secondaryCta), each with a written description that provides guidance on exactly how each preset should be applied. The AI reads the descriptions and picks the right styles for the context. This gives you a richer design system that allows for more design variety while still keeping every choice on-brand.

Every button the AI adds to a design will still be on-brand, but now it can choose between two presets — your blue primary button and the white secondary one.

Important considerations when working with presets

Whether you're working with simple or more sophisticated presets, here are some important considerations you must be aware of:

  • Presets can be applied to content blocks, rows, columns, and the email's overall settings. For a complete overview of the presets you can define with Brand Rules, see the full Brand Rules JSON schema.

  • Presets are mandatory once defined. For example, if a button preset exists, every button the AI adds or updates must use the preset you defined.

  • Preset values take precedence. If the AI asks for a red button and the preset says blue, the button in the generated design will be blue—and the AI is told which values were overridden.

  • Presets define only the styles they list — all other styles remain free for the AI to choose. For example, if a button preset only defines backgroundColor and fontFamily , it only sets the fixed rules for those two values. The AI retains full freedom over every other property (for example, text, size, padding, borders, etc). For stricter brand control, define all relevant properties.

Permissions

permissions are restrictions that prevent the AI from completing certain operations. When the AI attempts an operation that is restricted via permissions, the operation is refused, and we'll return a clear message.

There are three different types of permissions you can set:

Permission type
Description
Sample response

noAdd

The AI may not add these block types to the email.

Adding video blocks is not allowed in this session.

noUpdate

The AI may not change existing blocks of these types.

Updating menu blocks is not allowed in this session.

noDelete

The AI may not remove blocks of these types.

Deleting image blocks is not allowed in this session.

You can set permissions for one or more of the following content blocks: paragraph, title, list, image, button, social, icon, spacer, divider, table, menu, and video.

Here's an example of permissions that define that the AI can never add videos, never touch the menu, and never delete an image:

Limits

With limits, you can define how much content the email can hold and force the AI to work within those limits.

Limit type
Allowed value
What it means

limits.rows.max

whole number (≥ 0)

The email can hold at most this many rows.

limits.rows.min

whole number (≥ 0)

The AI cannot delete rows below this count.

limits.columns.maxPerRow

whole number (1–12)

A row can hold at most this many columns.

limits.blocks.max

whole number (≥ 0)

An email can hold a maximum of this many content blocks (across all block types)

limits.blocks.maxPerType

whole number (≥ 0) per block type

An email can hold a maximum of this many blocks per block type. E.g. { "menu": 1, "video": 2 }.

Here's an example that uses limits to define that an email design stays between 2 and 12 rows, has no more than 4 columns per row, and has no more than 60 content blocks in total:

Using Brand Rules with the Beefree SDK MCP Server or the AI Co-Pilot

Whether you're using Brand Rules when working directly with our MCP Server or are planning to use it to set guardrails for our built-in AI-Copilot, the underlying schema is exactly the same.

How you pass Brand Rules into the AI workflow is a little different depending on the product you're working with. Please review the instructions for each pathway here:

Brand Rules - Full JSON schema

Presets, permissions, and limits all live in the same brandRules object, and the properties you can set for each preset are outlined in the Brand Rules JSON schema. That page also covers which properties Brand Check reads versus which are MCP/Copilot only, since both features share this schema.

The raw schema file is attached there as well.

Testing and validating your Brand Rules

Whenever you pass a brandRules object to the MCP Server or to the AI Co-Pilot, we validate it automatically at that point. If the payload is invalid, we reject it with a full list of issues.

Whenever you pass a brandRules object to the MCP Server, AI Co-Pilot, or Brand Check, we validate it automatically at that point. For MCP and the AI Co-Pilot, we reject an invalid payload with a full list of issues. For Brand Check, an invalid brandRules object fires error code 1770 instead, see Error management for details.

In addition to that, the following validation endpoint helps you test and validate your brandRules payload before you start an agent or an MCP session. This can come in handy while you're still developing and testing your Brand Rules implementation, or can be used as a checkpoint in case you're building ways for your end users to create their own Brand Rules.

Endpoint

POST https://api.getbee.io/v2/sdk/mcp/template/validate

Request body

Field

Type

Description

brandRules

object

the brandRules object, passed to be validated

Response

Returns the list of errors found when validating the brandRules object.

Frequently asked questions

What's the difference between Content Defaults and Brand Rules?

Content Defaults let you set default styles that are applied whenever a human drops a new content block onto the stage.

Brand Rules, on the other hand, are made to support the agentic design workflow. While the core schema of presets within Brand Rules closely mirrors those the schema you might already be familiar with when using Content Defaults, Brand Rules help you go far beyond just setting a single default style. You can use Brand Rules to codify even the most complex design systems, give the AI instructions for when to use which predefined styles, set restrictions on what the AI can and cannot edit, and more.

Last updated

Was this helpful?