Sub topic 7
Setting Format and Length Rules
Prerequisites and scope
This chapter assumes you have already written a voice summary and a set of do and don't rules, as in the earlier chapters. It also assumes you can paste text into an assistant's custom instruction field. Voice rules say how the writing sounds. Format and length rules say what shape it takes: how long it is, how it is laid out, and which characters it may contain.
Why format rules need their own section
Voice rules are about judgment. Format rules are mostly about countable things. That difference matters in three ways.
- Format rules can be checked mechanically. You can count sentences, headings, and exclamation marks without asking anyone's opinion.
- Format rules depend on where the text ends up. A subject line, a chat reply, and a blog post need different shapes, and the same voice has to fit all three.
- Without format rules, an assistant falls back on its defaults. These are often long answers, bulleted lists, bold phrases, and a closing summary. Many brands don't want those habits.
Keep format rules in their own labelled section of the instruction. When a reply is too long or oddly laid out, you then know where to look.
Length rules
Use numbers, not adjectives
"Keep it short" gives the assistant nothing to aim at. Short compared to what? Give a range or a ceiling instead.
| Vague rule | Testable rule |
|---|---|
| Keep emails brief | Emails: 60 to 120 words |
| Short sentences | Sentences under 25 words |
| Punchy subject lines | Subject lines: 6 words or fewer, no trailing punctuation |
| Don't ramble | One idea per paragraph, at most 3 sentences per paragraph |
Prefer a range to a single number. "Exactly 100 words" invites failure. Assistants estimate lengths and do not count them, so they land near a target but rarely on it. A range of 60 to 120 words is one the assistant can meet almost every time, and one you can check without arguing about two words.
Set lengths per content type
A single global length rule usually fails, because a reply to a quick question and a product announcement shouldn't be the same size. List each content type you actually produce.
Length:
- Chat or support reply: 40 to 100 words unless the customer asks for detail.
- Welcome or reminder email: 60 to 120 words.
- Subject line: 6 words or fewer.
- Blog post: 600 to 900 words, paragraphs of 2 to 4 sentences.
- If I give a different length, use mine.The last line sets a precedence rule. A length typed in the conversation then wins over the stored default, which stops the instruction from fighting the person using it. The same rule appears again under conflicts, below.
Add a rule for answering first
Length rules work better when paired with a structural habit. "Lead with the answer, then give the reason" does more to keep replies short than a word cap alone. It also makes the reply easy to cut at any point without losing the main message.
Format rules
Structure
Decide which structures are allowed, and say when.
- Headings: allowed in articles and help pages, never in chat replies or emails.
- Bullet lists: only for three or more parallel items, such as steps or options.
- Numbered lists: only when order matters.
- Bold text: at most one phrase per piece, or none.
- Tables: only when I ask for a comparison.
- Closing summaries: never. End on the last useful point.
The "when" half of each rule matters. A flat ban on bullets will also stop the assistant from using a numbered list for installation steps, where a list is the better format.
Punctuation and typography
Brand style guides often hold small mechanical rules. Put them in the instruction as well.
- Sentence-case headings, not Title Case.
- At most one exclamation mark per piece.
- No emoji, or at most one in social posts.
- Use the serial comma.
- Write numbers under ten as words, and use digits from 10 up.
- Prefer commas and periods to em-dashes.
Em-dashes and sentence openers like "Whether you're..." are habits assistants fall into easily. If your brand dislikes them, name them directly. A rule such as "Avoid dashes" will be followed more reliably than "write naturally".
Match the output destination
If the text is pasted into a tool that doesn't render Markdown, such as an email client, a plain text field, or an SMS gateway, asterisks and pound signs show up as literal characters. State the destination: "Output plain text. Don't use Markdown syntax." If you have two destinations, give the rule per content type, as with length.
Putting it together
Here is a format section that follows the earlier voice and guardrail sections of the Brightleaf instruction. It is short on purpose.
Format:
- Output plain text. No Markdown symbols, no headings, no bold.
- Use a bulleted list only for three or more parallel items or steps.
- Start with the answer. Never end with a summary or "let me know if you need anything else".
- Use sentence case in subject lines and titles.
Length:
- Chat reply: 40 to 100 words.
- Email: 60 to 120 words.
- Subject line: 6 words or fewer.
- If I give a length, use mine.
Order of priority when rules conflict:
1. Facts and guardrails
2. Length I give in the conversation
3. The defaults aboveThe priority list is the part most people leave out. It tells the assistant which rule to give up when two collide, such as a requested 40-word reply that also needs to carry a caveat required by a guardrail.
Resolving conflicts between rules
Format rules conflict in predictable ways.
- A length cap against an explanation rule. "Under 100 words" and "always explain why" can't both hold for a complicated question. Decide which wins, and say so.
- A layer against a layer. A project-level instruction might say 150 words while the account-level one says 80. Rules at more specific levels usually take precedence, but behavior varies by product. Put each rule in one layer only, and the next chapter's discussion of layers will help you place it.
- A rule against a one-off request. Give the user a way out: "If I give a different length or format, use mine."
The flow below shows how an assistant should settle a conflict if you write the instruction as above.
Common errors
- Treating length as exact. Assistants approximate word counts. Write ranges, and accept small misses. If a hard limit exists, such as an SMS or a subject line field, check it in code afterward, not in the prompt alone.
- Confusing a length rule with a token limit. If you call an API,
max_tokensdoesn't make a reply shorter. It cuts the reply off wherever it happens to be, often mid-sentence. Use the instruction to shape length andmax_tokensonly as a safety ceiling set well above your longest target. - Banning with no alternative. "Never use bullet points" leaves the assistant with nothing to do when a list is the natural shape. Say what to do instead: "Write steps as short sentences in order."
- Rules that duplicate each other. Saying the same limit in three phrasings invites small conflicts. State each rule once.
- Format rules buried in the voice paragraph. A rule like "no exclamation marks" tucked into a description of the tone is easy to miss when you revise. Keep it in the Format section.
- Forgetting that format drifts in long chats. Over many turns, an assistant may slide back to its defaults, such as longer answers and more bullets. Restate the rule in a conversation, or start a fresh one for important pieces.
Testing format rules with a script
Format rules are the easiest part of a voice guide to test automatically. The script below checks a reply against three rules from this chapter: sentence length, exclamation marks, and em-dashes. It uses only the Python standard library.
import re
MAX_WORDS_PER_SENTENCE = 25
MAX_EXCLAMATIONS = 1
def check_reply(text: str) -> list[str]:
"""Return a list of format problems found in a reply."""
problems = []
sentences = [s for s in re.split(r"(?<=[.!?])\s+", text.strip()) if s]
for sentence in sentences:
count = len(sentence.split())
if count > MAX_WORDS_PER_SENTENCE:
problems.append(f"Sentence has {count} words: {sentence[:40]}...")
if text.count("!") > MAX_EXCLAMATIONS:
problems.append(f"More than {MAX_EXCLAMATIONS} exclamation mark")
if "\u2014" in text:
problems.append("Contains an em-dash")
return problems
if __name__ == "__main__":
sample = "Welcome to Brightleaf! Your first invoice is two clicks away! Try it now \u2014 it's quick."
for problem in check_reply(sample) or ["No problems found"]:
print(problem)Running it on the sample prints two lines: one for the extra exclamation mark and one for the em-dash. The sentence splitter is simple and will misread abbreviations like "e.g.", so treat its output as a flag to review, not a verdict.
Pair this with the fixed test prompts from the testing chapter. Run each prompt, paste the reply into the checker, and record the result next to the version of your instruction. If a revision to the voice section suddenly makes replies longer, you will see it in the results.
Summary of decisions
- Write limits as ranges, per content type.
- Say when a structure is allowed, not only when it is banned.
- Name the destination so the assistant knows whether Markdown will render.
- State a priority order for conflicts, and let the user override defaults.
- Check what can be counted with code, and keep the prompt for what needs judgment.
Exercise
Your instruction says "Keep replies under 50 words" and also "Always explain why a payment failed." A customer asks about a failed payment with three possible causes, and the assistant's reply runs to 90 words. What is the most likely cause, and how would you change the instruction?
Show answer
The two rules conflict, and the assistant resolved the conflict in favor of the explanation. Fix it by stating a priority and a range per situation. For example: "Chat replies: 40 to 100 words. If a failed payment has several possible causes, list each cause in one short sentence, even if the reply goes up to 100 words." Add a priority line such as "Accuracy and required explanations come before length." Then rerun your fixed test prompts and check the word counts.
Exercise
Why is a rule like "Output exactly 80 words" a weak format rule, and what should you write instead?
Show answer
Assistants estimate length and don't count it, so they will often miss an exact number, and any small miss counts as a failure. Write a range, such as "70 to 90 words", and check it afterward with a word count in code if the limit is strict.