Pulsebook · Blog5 min read

How to give an AI agent your brand rules

Three ways to give brand rules to an AI agent: a Markdown file, brand.json or MCP. What each is good at, a real example, and which to try first.

An AI assistant that writes copy or builds a page will follow whatever brand rules it can read. If it cannot read any, it guesses, and the guess is usually the average of the internet. The question is which form your rules should take.

There are three common forms: a Markdown file the agent reads in one pass, a structured file such as brand.json that a program can parse, and an MCP server the agent can query and edit. They solve different problems, and you can use all three.

First, write rules a machine can follow

The form matters less than the content. An agent can only follow a rule that is explicit.

"Our tone is warm and professional" gives it nothing to check. "Sentence case everywhere, verbs at the front of every button, no exclamation marks, no emojis" does. The same goes for colour: give the exact value, say what each colour is for, and say what it must never do.

Pulsebook's own guideline is written this way. Its signature orange is #FF4F24, and the rule next to it says it never carries text; the colour for text on paper is a darker #C9360E. The reason an agent can respect that rule is that the rule is stated.

A good checklist for any brand: every colour with a role, the fonts and weights, motion as a curve and a duration, voice as a few concrete rules, and a list of things to avoid.

Option 1: a Markdown file

The simplest option is a plain-text file the agent reads before it starts. Some tools read a rules file kept at the top of a project, and an llms.txt (opens in a new tab) is a convention for exactly this: a Markdown summary written for language models.

Here are lines from Pulsebook's own llms.txt, copied as the file serves them in production. The file has one such line for every colour:

md
# Pulsebook brand guidelines

> Not a document. A pulse.

Full guidelines: https://pulsebook.app/brand/pulsebook
Structured data: https://pulsebook.app/brand/pulsebook/brand.json

## Colour

- Pulse — #FF4F24 — rgb(255, 79, 36) — oklch(0.671 0.219 34.4) — accent, in Pulse, 8% of the palette. The signature fill: the mark, the active dot, large colour areas. Never carries text.
- Pulse ink — #C9360E — rgb(201, 54, 14) — oklch(0.554 0.189 34.5) — accent, in Pulse. Pulse as text and links on paper (5:1).
- Volt — #D6F25C — rgb(214, 242, 92) — oklch(0.913 0.175 119) — signal, in Supporting, 2% of the palette. Only Copied and Live. It never decorates.

Markdown is good for: reading in one pass, working in any tool, and reading by a person too. It is weak at: exact values at scale (a model can misread a long table) and staying current (a copy pasted into a project goes stale).

Use it when you want the quickest start, and keep one copy at one address instead of pasting it into each project.

Option 2: a brand.json

A brand.json holds the same rules as data. A script, a design tool or an agent that writes code can read a colour without interpreting a sentence.

Pulsebook serves one for every published brand at /brand/<slug>/brand.json. For what the format holds and how it compares with the AdCP one, see what brand.json is. It is a versioned contract (pulsebook.brand, version 1) with the palette, fonts, motion tokens and the text of each section. Each colour is given in hex, rgb, hsl and oklch, so a tool takes the format it needs. It is served with an ETag and open CORS, and the schema is public.

JSON is good for: exact values, programmatic use, and checking that a change did not break the structure. It is weak at nuance: a voice rule is a paragraph, and a paragraph in JSON is still a paragraph.

Use it when code, not only a model, consumes the brand: a build step that writes CSS variables, a script that checks that a page uses the right colours, an agent that generates components.

Option 3: an MCP server

The Model Context Protocol (opens in a new tab) lets an agent call tools on a server. Instead of reading a file, it asks: list my brands, read this one, change this section.

Pulsebook has an MCP server with twelve tools. You create a token in Settings, add it to Claude Code, Cursor or another MCP client, and the agent can read a brand, scan a website for its colours and fonts, edit sections, draft and publish. Tokens have scopes (read, write, publish), so you can give an agent read-only access. One thing it does not have yet is OAuth: access is by bearer token.

MCP is good for: letting the agent change the guideline, not just read it, and for reading the latest version on every call. It is weak at setup: you need a token and a client that supports it, and an agent with write access can change things you did not intend.

Use it when the agent is part of your workflow and should keep the guideline up to date, and give it only the scope it needs.

Which one should you use first?

Start with the Markdown file. It costs nothing and works everywhere. Add brand.json when something other than a model needs to read the values. Add MCP when you want an agent to edit the guideline or to always read the current version.

Here are the three side by side:

The three ways to give an agent brand rules, compared by what each is, who reads it and when to use it.
OptionWhat it isWho reads itUse it when
Markdown filePlain text read in one passA model or a personYou want the quickest start
brand.jsonThe same rules as dataA script, a design tool or a code-writing agentCode consumes the brand
MCP serverTools an agent can callAn agent that reads and editsThe agent keeps the guideline current

They are three views of one guideline, and the risk is keeping three separate copies. If you write the rules once and serve all three from the same place, a change in one place reaches all of them.

A published Pulsebook brand serves the page for people, the llms.txt for models and the brand.json for programs, and the MCP server edits the same source. See a live example.

A short checklist

  1. Write each rule as a value, with a role and a limit.
  2. Say what to avoid, in one list.
  3. Put the rules at one address, and link to it from your project instead of pasting them in.
  4. Give agents the least access they need: read first, write only when the agent keeps the guideline current.
  5. Check what the agent produced against the rules. Without that check, a rule is only a hope.

Put your brand on one link.

Draft three brands free. Publish the first one on us. Your client gets one address that stays right.