Sub topic 7
Setting channel limits and a predictable output format
This chapter covers how to tell an AI assistant the limits of the channel you are writing for. It also covers how to ask for output in a shape you can read, check, and paste without cleanup. It assumes you can already write a basic prompt with a role, goal, and task, and that you have used a chat-based assistant before. You should also know what email subject lines, social ads, and landing page headlines are.
Why limits and format belong in the prompt
A good draft that does not fit the channel is not usable. An email subject line that is cut off on a phone loses its ending. A search ad headline over its limit may be rejected by the ad platform. A social post that runs long may hide its call to action behind a "see more" link.
The assistant does not know which channel you mean unless you say so. It also does not know how you plan to use the output. If you leave both out, you get a friendly paragraph of text with the drafts buried inside it. You then have to copy each line by hand and count its characters.
Two separate decisions are involved:
- Channel limits describe what the copy must satisfy: length, required elements, banned elements.
- Output format describes how the assistant should return the copy: a list, a table, a fixed pattern per line.
Both go in the prompt, and both come after you have set the role, goal, audience, and voice.
Common channel limits
Limits differ by platform and change over time. Treat the numbers below as examples of the kinds of limits to look for. Confirm the current numbers in your email tool or ad platform before you rely on them.
| Channel element | Limit type | What to specify in the prompt |
|---|---|---|
| Email subject line | Characters, often shortened on mobile | A maximum such as 50 characters |
| Email preview text | Characters, shown after the subject | A maximum, and a note not to repeat the subject |
| Search ad headline | Hard character cap set by the platform | The exact cap from your ad account |
| Social post | Characters before truncation | The visible length before "see more" |
| Landing page headline | No hard cap, but layout matters | A word count or line count |
| Button text | Very short, a few words | A word count, such as 2 to 4 words |
Notice that some limits are hard and some are soft. A hard limit is one the platform enforces, so copy over it is rejected or cut. A soft limit is a layout or readability preference, so copy over it still works but performs worse. State which kind you mean. For example: "Hard limit: 30 characters. Aim for 25 or fewer so there is room to edit."
Say what counts
Be exact about what you are counting. Characters include spaces and punctuation. Some platforms count emoji as more than one character. Words are easier to count but do not map to a platform cap. If the cap is in characters, write "characters" in the prompt, not "short" or "brief". Words like "short" mean different things to you and to the assistant.
Constraints beyond length
Length is the most common limit, but it is not the only one. Other constraints are worth stating:
- Required elements. For example, "Include the words 'free trial'" or "End with a call to action."
- Banned elements. For example, "No exclamation marks," "No all-caps words," or "No emoji."
- Banned claims. For example, "Do not invent statistics, prices, or customer numbers." This links to the claim checking chapter, but it is cheaper to prevent an invented figure than to find it later.
- Compliance wording. If your industry needs a specific phrase, give it verbatim and say where it goes.
- Personalization tokens. If your email tool inserts a first name with a placeholder such as
{{first_name}}, tell the assistant to keep the placeholder exactly as written and to count it at its typical rendered length.
Put constraints in a short labeled list or on their own lines, not hidden inside a long sentence. The assistant follows a clear list more reliably, and you can see at a glance what you asked for.
Choosing an output format
The format you choose depends on what you do next with the output. Ask yourself: will a person read this, or will a tool process it?
- Numbered list. Good for a person reviewing a few drafts. Easy to refer to ("refine number 3").
- Labeled list. Each line has a label, such as "Angle: subject line". Good when drafts differ by a dimension and you want the label next to each draft.
- One per line, no numbering or labels. Good when you will paste the lines straight into a spreadsheet or a script.
- Table. Good when each draft has several attributes, such as the text, the angle, and the character count.
- CSV or JSON. Good when another tool reads the output. These are stricter and break more easily if the assistant adds extra words.
Whichever you choose, describe the format with an example of one line, not only with a description. An example removes most ambiguity.
Output: a numbered list. Each line uses this form:
1. Angle: subject line
Return only the list. Do not add an introduction or a closing comment.The last sentence matters. Assistants like to add "Here are your subject lines!" before the list and a question after it. If you paste the response into a tool, that extra text becomes noise. Asking for "only the list" usually removes it.
A fixed pattern for batches
When you generate several drafts at once, keep the pattern identical across every line. That makes the output easy to compare and easy to parse. A table works well for this:
Return a table with these columns, in this order:
Angle | Subject line | Preview text
Use one row per draft. Do not add any text before or after the table.If you plan to load the result into a spreadsheet, ask for comma-separated values and say how to handle commas inside a draft. For example: "Wrap any subject line that contains a comma in double quotes."
Putting it together
The prompt below adds channel limits and a format to a brief you have already structured. Only the last part is new compared with a basic prompt.
You are a copywriter for a small online bookshop.
Campaign goal: get newsletter subscribers to start a free 14-day trial of our reading club.
Audience: adults 25-45 who read a few books a year and want a reason to read more.
Brand voice: warm, plain, lightly humorous. No exclamation marks.
Offer: 14-day free trial, cancel any time.
Task: write 4 email subject lines and a matching preview text for each. Use a different angle for each: urgency, social proof, benefit, curiosity.
Channel limits:
- Subject line: 50 characters or fewer (hard limit, counted with spaces).
- Preview text: 90 characters or fewer, must not repeat the subject line.
- No emoji. No all-caps words.
Content constraints:
- Do not invent statistics, prices, or customer numbers.
Output: a table with columns Angle | Subject line | Preview text.
One row per draft. Return only the table.Compare this with the example in the earlier chapter on prompt structure. The task and audience are unchanged. The new parts are the channel limits block and a stricter output description.
Checking length with a script
Because the assistant may miscount, check length in code. The function below takes a list of drafts and a limit. It returns each draft with its length and whether it fits.
def check_length(variations, max_chars):
"""Return (text, length, within_limit) for each variation."""
return [(text, len(text), len(text) <= max_chars) for text in variations]
drafts = [
"Your free trial ends soon",
"Join readers who finish more books than they start, with a 14-day free trial",
]
for text, length, ok in check_length(drafts, 50):
print(f"{'OK ' if ok else 'LONG'} {length:3d} {text}")Running this prints one line per draft. The first is marked OK at 25 characters. The second is marked LONG because it is well over 50. You can feed the long ones back to the assistant with the real count, which is covered in the chapter on refining drafts.
Python's len counts Unicode code points. That matches most platforms for plain text. It may not match a platform that counts emoji or some accented characters differently. If a platform's counter disagrees with your script, trust the platform and adjust the script.
Handling placeholders
If a draft contains a placeholder such as {{first_name}}, its raw length is not its rendered length. A name like "Alexandra" is nine characters, but the placeholder is 14. Decide on a typical or worst-case name length and count that. A simple approach is to replace the placeholder with a sample string before you check the length.
The workflow in one view
The diagram shows where limits and format sit between the brief and the checked output.
Common errors
- Vague limits. "Keep it short" gives unpredictable results. Give a number and a unit.
- Limit with no format. You get drafts that fit but sit inside a paragraph of commentary.
- Format with no example. The assistant picks its own pattern, and the pattern changes between runs.
- Trusting the assistant's count. Check length in code or in your channel tool.
- Changing the format between batches. If batch one is a table and batch two is a list, you cannot compare them or merge them. Reuse the same format text each time.
- Too many constraints at once. A long list of rules can lead to some being dropped. If the assistant ignores a rule, move that rule to its own line or repeat it near the end of the prompt.
- Forgetting the hard limit has margin. Asking for exactly 50 characters often gives 52. Ask for 45 if the true cap is 50.
Summary of the method
- Name the channel and the element you are writing, such as subject line or ad headline.
- Write each limit as a number with a unit, and mark it hard or soft.
- List required and banned elements on separate lines.
- Choose an output format based on what you do next with the text.
- Show one example line of that format and ask for only that output.
- Check length yourself before you review the drafts.
Exercise
You need 5 search ad headlines with a hard limit of 30 characters. You will paste them into a spreadsheet, one per row. Write the "Channel limits" and "Output" parts of the prompt, and explain how you will check the result.
Show answer
Channel limits: "Each headline must be 30 characters or fewer, counted with spaces (hard limit). Aim for 27 or fewer. No emoji, no all-caps words, no exclamation marks. Do not invent statistics or prices." Output: "Return exactly 5 headlines, one per line, with no numbering, labels, or extra text before or after." Checking: paste the headlines into a script such as checklength with maxchars set to 30, or into your ad platform's own counter, and send any that are over back to the assistant with their real counts. The one-per-line format suits a spreadsheet, and the margin of 27 allows for the assistant's tendency to run slightly over.
Exercise
An assistant returns the line "Here are your subject lines! 1. Your trial ends soon (24 characters)" followed by three more lines and a closing question. Name two changes to the prompt that would make this output easier to use.
Show answer
Ask for a stated format with an example line, such as "1. Angle: subject line", and add "Return only the list. Do not add an introduction, a closing comment, or character counts." The first removes the extra text around the list. The second removes the assistant's own length count, which you should not trust anyway and should check in code instead.