Sub topic 7
Setting Channel Limits and a Predictable Output Format
This chapter assumes you can write a structured prompt (role, context, task) and have a campaign brief ready. Here you will add two more parts to the prompt: the limits of the channel and the exact shape of the reply.
Why limits and format belong in the prompt
An assistant writes fluent copy, but it does not know where the copy will be shown. A subject line that is cut off in an inbox, or an ad headline that the platform rejects, wastes a draft. A reply that mixes commentary with copy is slow to review and hard to paste into a spreadsheet.
Two parts of the prompt prevent this:
- Constraints are rules the copy must obey. They cover length, banned words, and claims you cannot make.
- Output format is the layout of the reply. It covers numbering, labels, and one item per line.
Stating channel limits
Write each limit as a number or a clear rule. "Keep it short" leaves the assistant to guess. "50 characters or fewer" can be checked.
| Channel | Typical limits to state |
|---|---|
| Email subject line | Characters, no all-caps, no emoji if your brand avoids them |
| Preview text | Characters, must add to the subject line, not repeat it |
| Social ad headline | Characters set by the platform, one call to action |
| Landing page button | Word count, starts with a verb |
Check the current limits in each platform's documentation. They change, and the numbers above are examples of what to specify, not fixed values.
Add content rules next to the length rules, for example "Do not invent statistics, prices, or customer numbers." This keeps constraints in one place.
Fixing the output format
Choose a format you can read quickly and process later. A labelled numbered list works well:
Task: write 4 email subject lines. Each must use a different angle: urgency, social proof, benefit, curiosity.
Constraints: 50 characters or fewer. Do not invent statistics, prices, or customer numbers.
Output: a numbered list in the form "Angle: subject line". Add no other text.The last sentence matters. Without "Add no other text", many assistants add an introduction and a closing offer.
Why you still check the limits yourself
Assistants often miscount characters. They work with chunks of text, not individual letters, so a line that "looks" like 45 characters may be 58. Treat the stated limit as a request and verify it with code.
The loop looks like this:
Parsing and checking a reply
This script parses a reply in the Angle: subject line format and flags lines over the limit. It sends nothing to any service. Paste in a real reply to try it.
import re
LINE = re.compile(r"^\d+\.\s*([^:]+):\s*(.+)$")
def parse_reply(reply):
"""Split a numbered 'Angle: text' reply into parsed items and rejected lines."""
parsed, rejected = [], []
for line in reply.strip().splitlines():
match = LINE.match(line.strip())
if match:
parsed.append((match.group(1).strip(), match.group(2).strip()))
else:
rejected.append(line)
return parsed, rejected
reply = """Here are your subject lines:
1. Urgency: Your free trial ends soon
2. Social proof: Join readers who finish more books than they start, with a 14-day free trial
3. Benefit: Read more, stress less
4. Curiosity: What would you read with 14 free days?"""
items, rejected = parse_reply(reply)
for angle, text in items:
status = "OK " if len(text) <= 50 else "LONG"
print(f"{status} {len(text):3d} {angle}: {text}")
print("Unparsed lines:", rejected)The intro line "Here are your subject lines:" lands in the rejected list. That tells you the format instruction was not fully followed. Line 2 is flagged LONG.
Common errors
- Limits without a unit. "Under 50" could mean words or characters. Say which.
- Format described loosely. "A list" gives bullets one time and numbers the next. Give the exact pattern.
- Too many limits at once. Five or six rules often lead to one being dropped. Keep the essential ones and check the rest afterward.
- Correcting by repeating the whole prompt. Send a targeted follow-up instead, such as "Lines 2 and 5 are over 50 characters. Rewrite only those."
Exercise
A reply contains a friendly introduction, then four numbered lines. Your parser rejects the introduction, and one line is 63 characters against a 50-character limit. What two changes would you make, one to the prompt and one to your follow-up?
Show answer
Add "Add no other text" to the output instruction so the introduction does not appear. For the long line, send a follow-up naming only that line, for example "Line 3 is 63 characters. Rewrite it in 50 characters or fewer and keep the same angle." Then run the length check again instead of trusting the new count.