Put your materials in labelled boxes

Prompt Lab card: Put your materials in labelled boxes

Written by Mohammad Nasravi inنوشته شده توسط محمد نصراوی در

When a prompt mixes a brief, a brand guide, a competitor ad and your instructions, the model can confuse one for another. Wrap each piece in its own labelled tag and the confusion disappears.

Less effective

Here is our brief and the brand guide and a competitor ad, write three concepts: [three long pasted blocks, one after another]

More effective

<brief>…</brief> <brand_guide>…</brand_guide> <competitor_ad>…</competitor_ad> — then: Using only the brief and the brand guide, write three concepts that could not be mistaken for the competitor ad.

The prompt

Copy-ready prompt

<brief>
[PASTE THE BRIEF]
</brief>

<brand_guide>
[PASTE THE RELEVANT PART OF THE BRAND GUIDE]
</brand_guide>

<reference>
[PASTE A COMPETITOR AD OR A PAST CAMPAIGN]
</reference>

Using the <brief> and the <brand_guide>, write [NUMBER] campaign concepts.
Each concept must be clearly different from the <reference>.
For each: a one-line idea, a headline, and one sentence on why it fits the brief.

Why it works

Anthropic recommends XML tags because they help the model “parse complex prompts unambiguously” when instructions, context, examples and inputs are mixed. OpenAI’s guide suggests Markdown and XML for the same reason, and Google’s Gemini guide recommends consistent XML tags or Markdown delimiters.

Use it for

Any prompt with more than one pasted document. The tag names are yours to choose — just keep them consistent and refer to them by name in the instruction.

Sources

  • Anthropic — Claude prompting best practices — platform.claude.com (accessed 28 Sep 2026)
  • OpenAI — Prompt engineering guide — developers.openai.com (accessed 28 Sep 2026)
  • Google — Prompt design strategies for the Gemini API (updated 17 Sep 2026) — ai.google.dev (accessed 28 Sep 2026)

More tricks and templates in the Prompt Lab. Want this applied to your brand’s brief? Start a project.

خبرهای هوش مصنوعی را در تلگرام دنبال کنخلاصهٔ خبرها و برداشتِ من از کارِ واقعی، در کانالِ Nasravi.com در تلگرام.
عضویت در کانال تلگرام

Written by Mohammad Nasravi — AI creative director, in-house at a major FMCG group. Four years putting AI-made commercials past real brand teams, including Shirin Asal campaigns for Gulfood 2026 and Canton Fair 2025. More about the work · Start a project نوشتهٔ محمد نصراوی — کارگردان خلاق هوش مصنوعی، درون یک گروه بزرگ FMCG. چهار سال است کارِ ساخته‌شده با هوش مصنوعی را از فیلتر تیم‌های برند رد می‌کند؛ از جمله کمپین‌های شیرین عسل برای گلفود ۲۰۲۶ و کانتون فر ۲۰۲۵. دربارهٔ کارها · شروع پروژه بقلم محمد نصراوي — مدير إبداعي للذكاء الاصطناعي من داخل مجموعة FMCG كبرى. أربع سنوات من تمرير إعلانات مصنوعة بالذكاء الاصطناعي عبر فرق علامات حقيقية، منها حملات Shirin Asal في جلفود 2026 ومعرض كانتون 2025. المزيد عن العمل · ابدأ مشروعك