Sub topic 7
Build the repurposing prompt
This chapter assumes you have already audited your source asset, written a core message, captured brand voice as instructions, and written a spec for each target format. It also assumes you have written prompts for a chat-based AI model before. The Python examples are optional but runnable once you add your own model call.
The working model
A repurposing prompt has five parts. Each part comes from an earlier step in the workflow.
| Part | Comes from | What it does |
|---|---|---|
| Task | Format mapping | Names the target format |
| Core message | Core message extraction | Tells the model what the piece must communicate |
| Brand voice | Voice instructions | Sets tone and style |
| Format spec | Format specification | Sets length and structure |
| Source and fact rule | Source asset | Supplies the material and limits the model to it |
A reusable prompt builder
Store each format as a small spec, then build every prompt from the same function. Changing one spec then never affects the others.
from dataclasses import dataclass
@dataclass
class FormatSpec:
name: str
max_words: int
structure: str
FORMATS = [
FormatSpec("linkedin_post", 200, "Hook line, three short paragraphs, one closing question"),
FormatSpec("email_newsletter", 250, "Subject line, two-sentence intro, three bullets, one call to action"),
FormatSpec("video_script_60s", 150, "Hook in the first 5 seconds, three beats, spoken call to action"),
]
def build_prompt(source: str, core_message: str, voice: str, spec: FormatSpec) -> str:
return (
f"Rewrite the source material as a {spec.name}.\n"
f"Core message: {core_message}\n"
f"Brand voice: {voice}\n"
f"Length: at most {spec.max_words} words.\n"
f"Structure: {spec.structure}.\n"
"Use only facts, numbers, and claims that appear in the source. "
"If something is not in the source, leave it out.\n\n"
f"<source>\n{source}\n</source>"
)The same function serves every channel. Only the FormatSpec changes.
Why the prompt is built this way
Each line addresses a known failure.
- The core message sits before the source. Without it, the model summarizes whatever is most prominent in a long source, which is not always your main point.
- Delimiters wrap the source. The
<source>tags separate your material from your instructions. This also stops the model from treating text inside the source as a command. - The fact rule is explicit. Models tend to add plausible statistics when a format seems to call for proof. Telling the model to leave out anything missing from the source reduces this, but it does not remove it.
- Length is a ceiling, not a target. "At most 200 words" is easier to check than "about 200 words."
Common errors
- Pasting the whole spec as prose. A long paragraph buries the length limit. Keep one requirement per line, as the builder does.
- Leaving out the core message. The draft then reads as a shortened copy of the source rather than a piece with its own point.
- Vague voice. "Friendly and professional" gives the model little to work with. Use concrete rules such as "second person, no jargon, sentences under 20 words."
- Mixing channels in one prompt. Asking for a post, an email, and a script at once produces uneven results and makes problems hard to trace. Run one prompt per format.
- Asking for facts the source lacks. A spec requiring "a statistic in the hook" forces invention when the source has no number. Make that element optional, or confirm the source contains one.
Try it
Run the builder and read the output before sending it anywhere.
source = "Our 2024 webinar covered onboarding. Teams that used a checklist finished setup in 3 days instead of 9."
prompt = build_prompt(
source,
"A checklist makes onboarding faster.",
"Second person, plain words, sentences under 20 words.",
FORMATS[0],
)
print(prompt)Check three things in the printed prompt. The core message appears once. The length limit is stated as a number. The source is inside the tags.
Exercise
A draft from your prompt includes the claim "Teams cut setup time by 70%," but the source only says setup dropped from 9 days to 3 days. Which part of the prompt should you revise, and what would you add?
Show answer
The fact rule needs strengthening, and the core message may need to state the exact claim. Add an instruction such as "Quote numbers exactly as written in the source and do not calculate new ones." The 70% figure is a derived number the source never states. Even with this rule, the draft still needs a check against the source.
Exercise
Why should you run one prompt per format instead of one prompt that requests all three formats?
Show answer
Each format has its own length and structure rules, so combining them makes the instructions harder to follow and the output harder to check. With one prompt per format, you can find which spec caused a problem and fix it without changing the others.