Sub topic 1
Choosing Recurring Tasks Worth Automating
Prerequisites
Assume you can write basic prompts and understand common marketing work such as email, social posts, and campaign reporting. This chapter focuses on workflow design, not model selection or API setup.
Choosing recurring tasks worth automating
A good automation candidate is repetitive, bounded, and easy to review. Start with a task that has a stable purpose and predictable inputs, such as:
- Turning a weekly brief into social post drafts.
- Summarizing campaign metrics into a report.
- Creating email subject-line options from approved copy.
- Reformatting product information for several channels.
Avoid automating tasks that require unsupervised judgment, sensitive personal data, or irreversible publishing. Automation should reduce preparation work while leaving a person responsible for accuracy and approval.
Score each candidate against four questions:
- Does it happen often enough to justify setup?
- Are its inputs available in a consistent form?
- Can you describe a good result with a checklist?
- Can a person review the result before it is published?
Inputs, steps, and outputs: the anatomy of a workflow
Model the task as a small data pipeline:
- Inputs are the facts and instructions supplied to the workflow, such as an offer, audience, channel, and deadline.
- Steps transform those inputs. Each step should have one clear job.
- Outputs are named results, such as
summary,draft, orsubject_lines.
Keep outputs explicit. A later step should consume a named result rather than guessing what an earlier response meant. Validation belongs between generation and publishing. It can check required fields, word limits, links, or prohibited claims.
Turning a good prompt into a reusable template
A reusable template replaces changing details with named placeholders. Store stable rules in the template and pass campaign-specific values at runtime.
from string import Template
template = Template(
"Write a $channel post for $audience.\n"
"Topic: $announcement\n"
"Voice: friendly, plain, no hype.\n"
"Use no more than $max_words words and end with one call to action."
)
prompt = template.substitute(
channel="LinkedIn",
audience="commuter cyclists",
announcement="our spring service discount",
max_words=90,
)
print(prompt)substitute() raises an error when a required value is missing. That is safer than silently sending an incomplete prompt.
Exercise
Which task is the stronger automation candidate: publishing legal claims without review, or drafting weekly social posts from an approved brief? Why?
Show answer
Drafting weekly social posts is stronger because it is repetitive, has bounded inputs, and can receive human review before publication.