LLM Technology8 min read

Generating Marketing Copy with an LLM, Safely

A developer workflow for LLM marketing copy: brand-voice examples, schema-checked variants, a product facts sheet, human approval and FTC and EU AI Act limits.

By AI Agents DirectoryLast checked
White humanoid robot figure against a plain background

An LLM can draft a dozen headline and email variants in seconds, which is the easy part. The hard part is making sure those drafts sound like your brand, fit the slots they are meant for, and never promise something your product cannot do. This guide walks through a pipeline that handles all three, then covers the US and EU rules that apply once the copy is published. The model examples use Anthropic’s Claude API; the same pattern works with any provider that supports schema-constrained output.

The pipeline at a glance

StageWhat it doesWhy it matters
Brand-voice promptStyle rules plus 3-5 approved examplesKeeps tone consistent across writers and runs
Facts sheetThe only source the model may use for product claimsStops invented features, prices and results
Structured outputReturns headline, body and CTA as typed fieldsDrops straight into your CMS or ad tool
Claim checkEach claim must point back to a line in the facts sheetCatches anything the model added on its own
Human approvalA named person signs off before publishingLegal responsibility stays with the advertiser
A/B testShip approved variants, measure, keep the winnerReal data replaces guesses about tone

Put the brand voice in the prompt, with examples

A style guide written as adjectives (“confident, warm, not salesy”) gives the model little to work with. Real examples work better. Anthropic’s prompting guide describes examples as one of the most dependable ways to steer format, tone and structure, suggests three to five of them, and recommends wrapping them in <example> tags so the model can tell them apart from your instructions.

In practice, keep a small library of past copy your team was happy with, grouped by channel (ad headline, launch email, product page). For each request, pull the examples for that channel and add a short list of hard rules: words you never use, how you write the product name, whether you use exclamation marks. Put long reference material such as the facts sheet near the top of the prompt and the task at the end, which the same guide recommends for long inputs.

Ground every claim in a product facts sheet

Most risky marketing copy is not rude or off-brand. It is confidently wrong: a feature that does not exist, an integration that is still in beta, a speed figure nobody measured. Models fill gaps with plausible detail, so the fix is to remove the gaps.

Maintain a facts sheet per product: features, plans and prices, supported platforms, certifications, and any performance numbers along with the test that produced them. Then use the grounding techniques from Anthropic’s guide to reducing hallucinations:

  • Tell the model to use only the supplied documents and not its general knowledge.
  • Give it explicit permission to say it lacks the information instead of guessing.
  • After drafting, have it match every claim to a supporting quote from the facts sheet and delete any claim it cannot support. Anthropic’s own example of this is drafting a press release from product briefs and marking removed claims with empty brackets.

The same guide warns that these techniques cut hallucinations without eliminating them, which is why the review step below is not optional.

Return variants as structured data

Free-text output means writing parsers and handling malformed results. Structured outputs avoid that: the request carries a JSON schema, and Anthropic says responses are produced through constrained decoding so they match it. The Python SDK can take a Pydantic model directly through client.messages.parse() and return a parsed object.

Here is a compact version based on the pattern in Anthropic’s structured outputs docs:

from anthropic import Anthropic
from pydantic import BaseModel, Field

class Variant(BaseModel):
    headline: str = Field(max_length=60)
    body: str = Field(max_length=280)
    cta: str = Field(max_length=25)
    claims_used: list[str]  # facts-sheet lines this variant relies on

class CopySet(BaseModel):
    variants: list[Variant]

client = Anthropic()
response = client.messages.parse(
    model="claude-opus-5-5",
    max_tokens=2048,
    system=BRAND_VOICE_AND_EXAMPLES,
    messages=[{"role": "user", "content": FACTS_SHEET + "\n\nWrite 4 ad variants for the spring launch."}],
    output_format=CopySet,
)
for v in response.parsed_output.variants:
    print(v.headline, "|", v.cta)

One detail matters for length limits. The docs list maxLength and minLength among the constraints the API does not enforce. The SDK strips them from the schema it sends, copies each limit into the field description so the model still sees it, and then checks the response against your original schema. So the character caps are enforced in your code, not during generation. Treat a failed check as a rejected draft and regenerate it.

Two other notes from the docs: the first request with a new schema is slower while its grammar compiles (compiled grammars are cached for 24 hours after last use), and a safety refusal returns stop_reason: "refusal" with output that may not fit the schema. Check the stop reason before parsing.

The claims_used field is the bridge to review. A reviewer can compare each variant against the facts-sheet lines it cites, and a script can flag any variant that cites nothing or cites a line that is not in the sheet.

Keep a human approval step

Build the publishing step so nothing goes live without a recorded approval: who approved it, when, and which facts-sheet version it was checked against. This is good practice, and it also matches how US law assigns responsibility.

The FTC’s advertising FAQ says an advertiser needs a “reasonable basis” for claims before an ad runs, meaning objective evidence. That covers implied claims too, not just the literal wording. A line like “never miss a deadline again” implies a result you need proof for. The same FAQ says ad agencies can be held responsible as well and must check the substantiation themselves. Nothing in this changes because a model wrote the first draft.

A/B test only approved variants

Structured variants slot neatly into an experiment. A workable loop:

  1. Generate a batch of variants that differ on one dimension, such as benefit framing or CTA wording, and log the prompt, examples and facts-sheet version used.
  2. Run every variant through claim checks and human approval. Discard the rest.
  3. Send approved variants to your testing tool with a fixed traffic split and a success metric agreed before launch.
  4. Feed winners back into the example library so the next prompt learns from what worked.

Do not let the model generate and publish new variants automatically in response to live results. That skips step 2, which is the one carrying the legal weight.

FTC: claims about your product, including AI claims

In September 2024 the FTC announced Operation AI Comply, a set of cases against firms using AI hype or AI tools in deceptive ways. One target was DoNotPay, which marketed a “robot lawyer”; the proposed order bars it from claiming to substitute for a professional service without evidence. FTC Chair Lina Khan said at the time that there is “no AI exemption from the laws on the books.” If your copy says your product is AI-powered, faster or more accurate, those are claims that need proof like any other.

FTC: reviews, testimonials and endorsements

Never ask a model to write customer reviews or testimonials. The FTC’s Consumer Reviews and Testimonials Rule took effect on October 21, 2024, and lets courts impose civil penalties for knowing violations. Its Q&A says a business that writes or creates a fake review can be liable, and that a business should not supply testimonial text unless it has a reasonable basis to believe the text is true to the person’s experience. The rule has no blanket ban on AI-generated avatars in marketing, but an avatar presenting a false testimonial is still a problem.

The Endorsement Guides add that an endorsement must reflect the endorser’s honest opinion and cannot make a claim the brand itself could not legally make. If your pipeline drafts posts for paid influencers, include the material-connection disclosure in the output schema and keep claims inside the facts sheet.

EU AI Act Article 50

Regulation (EU) 2024/1689 sets transparency duties in Article 50, which have applied since 2 August 2026; generative systems already on the market before then have until 2 December 2026 for the output marking (Article 111(4)). For marketing teams the relevant parts are:

  • Providers of systems that generate synthetic text, images, audio or video must mark outputs in a machine-readable, detectable way. This falls mainly on model vendors.
  • Deployers who publish deep-fake images, audio or video must disclose that the content was generated or manipulated.
  • Deployers publishing AI text meant to inform the public on matters of public interest must disclose it, unless the text went through human review or editorial control and someone holds editorial responsibility.
  • Chatbots that talk to people must tell them they are talking to an AI unless that is obvious.

Ordinary ad copy reviewed by a person will often sit outside the text duty, while generated product imagery that looks real may need a label. Article 50 also preserves other EU and national transparency rules, so check the current consolidated text on EUR-Lex and get legal advice for your markets.

Where to go next

For tool options, browse the writing and marketing category or a dedicated copy tool such as Anyword. If you are deciding between JSON outputs and tool calls for the variant schema, see function calling vs tool use. The same grounded-draft-plus-approval pattern is applied to support tickets in drafting customer support replies with an LLM.

Sources: Anthropic structured outputs, Anthropic prompting best practices, Anthropic: reduce hallucinations, FTC Advertising FAQs, FTC Operation AI Comply, FTC Consumer Reviews and Testimonials Rule Q&A, FTC Endorsement Guides FAQ, EU AI Act on EUR-Lex.

#Marketing copy#Structured outputs#Prompt engineering#FTC advertising rules#EU AI Act
AI

Written by AI Agents Directory

Editorial team

Facts in this guide are checked against official documentation and repositories, which are linked in the article.