LLM & AEO

Prompt Optimization

What is prompt optimization? The art of formulating questions to LLMs so they generate better, more specific, and more business-relevant answers.

What is Prompt Optimization for Companies?

Prompt optimization is the discipline of writing requests (prompts) to large language models (ChatGPT, Claude, Gemini) that generate specific, high-quality outputs useful for your company. A bad prompt generates generic content ("write a blog post about marketing"). A good prompt generates content adapted to your context ("write a technical blog post (500 words) about B2B SQL injection prevention strategies, with code examples in Python, for CTOs in the financial services sector").

In B2B, prompt optimization is essential because LLMs are increasingly used for content generation, sales enablement, and customer support. Better prompts = better output = more productivity.

Why Companies Should Optimize Prompts

Reason 1: Scaling with consistency. A well-optimized prompt can be replicated 1,000x and produces consistent output. A bad prompt varies wildly and requires constant rework.

Reason 2: Specialization. LLMs are generic. A good prompt trains the LLM on your company context: target audience, tone, requirements, constraints.

Reason 3: Less iteration. An optimized prompt gives you the output you want in one or two iterations. A bad prompt might need 5-10 iterations.

Reason 4: cost reduction. If you use GPT-4 (expensive), well-optimized prompts reduce the number of API calls and reduce costs.

Prompt Types for B2B

Prompt type Use case Example Best for
generation prompts Create content (blog, emails, sales sequences) "Write a lead magnet email sequence for B2B..." Content teams
analysis prompts Analyze data/content "Analyze this customer churn data and identify patterns..." Data teams, product
classification prompts Categorize data "Classify these customer support tickets by urgency..." Support teams
summarization prompts Summarize content "Summarize this 50-page customer interview in 5 bullets..." Product, sales
translation prompts Translate or rephrase "Translate this technical spec into simple German for non-tech stakeholders..." Marketing, sales enablement
reasoning prompts Strategic questions "What is our optimal GTM strategy for [segment]?" Strategy, leadership

Anatomy of a Good Prompt

A well-structured prompt has these components:

1. Role / context: "You are an experienced B2B marketing strategist with 15 years of experience..."
This trains the LLM to answer in your context, not generically.

2. Task: "Write a 500-word blog post about..."
Make it clear what you want.

3. Constraints: "In simple German, without buzzwords, with at least 3 practical examples..."
Set quality gates.

4. Audience: "For mid-market SaaS CTOs, not beginners..."
Adapt LLM to target audience.

5. Format: "Give me markdown with H2 headings, bullet points, a table and a call-to-action at the end..."
Specify output format.

6. Examples (optional): Provide 1-2 examples of "good output" so the LLM understands what "good" is.

Complete example prompt:

You are a senior B2B content marketer with 12 years of experience in lead generation.

Write a 600-word blog post titled "5 mistakes your sales team makes with demand generation" with these specs:

- Target audience: VP of Sales and Sales Directors at tech companies (not beginners)
- Tone: Direct, practical, no marketing bullshit, data-driven
- Format: Markdown with H2 for each mistake, short paragraphs (less than 100 words), 1 table, 1 call-to-action at end
- Structure: Intro (2 paragraphs) > 5 mistakes (each 1 paragraph + solution tip) > conclusion
- Tone examples:
GOOD: "Most teams we work with waste 40% of their demand gen budget on too-broad keywords."
BAD: "Maximize your potential with our revolutionary approach..."

Please provide output as HTML-ready (with p, h2, li, table tags).

This detailed prompt will generate much better content than "write blog post about sales".

Prompts for Marketing Teams

Email sequence generation:
"Write a 5-email lead nurturing sequence for [product] with target audience [ICP]. Each email should address a different pain point. Use AIDA format (attention, interest, desire, action). Tone should be professional but not corporate. Include specific CTAs in each email."

Content brief generation:
"Create a content brief for a blog post about 'B2B sales cycle optimization'. Include: target keyword, target audience, content outline (H2/H3), estimated length (words), internal links to [related articles], primary and secondary keywords, meta description."

Landing page copy:
"Write a product-led growth landing page for [product] targeting [audience]. Structure: attention-grabbing headline, 3-sentence sub-headline with value prop, 3-benefit bullet points, CTA button, 2 testimonial sections, FAQ section with 4 Q&As. Tone: direct, results-focused, no fluff."

Competitor analysis:
"Analyze the positioning and messaging of [competitor 1], [competitor 2], [competitor 3]. Comparison: target audience, value props, tone, pricing display, main CTAs. Identify gaps where we could differentiate. Format: comparison table + 3-5 strategic insights."

Build Prompt Libraries

A best practice: create a "prompt library" - a documented collection of optimized prompts your team can reuse.

Setup:

  • Use a shared document (Notion, Google Doc, Confluence)
  • For each prompt: name, purpose, full text, example output, version, who uses it
  • Versioning: prompt v1.0 > v1.1 (when improvements added)

Example library structure:

  • Category: "Blog content"
    - Prompt: "technical deep-dive blog post"
    - Prompt: "how-to guide blog post"
    - Prompt: "comparison blog post"
  • Category: "Sales enablement"
    - Prompt: "competitor battlecard generator"
    - Prompt: "objection handler script"
  • Category: "Product"
    - Prompt: "feature announcement"
    - Prompt: "release notes generator"

A team with 20 optimized prompts can accomplish 5x more LLM tasks than teams without a library.

LLM-supported Marketing: Practical Examples

Use case 1: content calendar generation
Prompt: "create a 12-week content calendar for [target audience] with 3 posts per week. Topics should cover SEO keywords related to [company mission]. Give me title, estimated length, target keyword, internal links for each post. Format: CSV or markdown table."
Output: 36 content ideas, ready to assign to writers.

Use case 2: email test variants
Prompt: "generate 5 subject line variants for a lead magnet email. Original subject: '[original]'. Variants should test these patterns: curiosity, urgency, specific benefit, question, number-based. Each should be less than 60 characters."
Output: 5 subject lines to A/B test.

Use case 3: sales objection handling
Prompt: "write 3 responses to this common customer objection: '[objection]'. Each response should: (1) validate customer concern, (2) address with data/case study, (3) clear next step. Tone: consultative, not sales-y."
Output: salesperson-ready responses for training.

Use case 4: competitive positioning
Prompt: "analyze our positioning vs [competitor]. Use this company info: [our ICP, values, use cases]. Give me: (1) where are we different? (2) which of their messaging can we address as 'not the right fit for everyone'? (3) 3 differentiation angles."
Output: strategy input for messaging refresh.

Prompt Engineering Best Practices

1. Test iteratively. A prompt is never "perfect". Test, review output, refine prompt, repeat.

2. Be specific. "Detailed bad prompt" > "vague good prompt". The more context you give, the better the output.

3. Use examples. LLMs learn from examples better than from instruction alone. Provide 1-3 "good output" examples if possible.

4. Test different models. ChatGPT 4o, Claude 3.5 Sonnet, Gemini Pro give different outputs. Test which model works best for your use case.

5. Monitor output quality. Track: do you use output directly or do you need edits? If more than 50% needs edits, the prompt is suboptimal.

Prompt optimization is a new skill that all B2B marketers should learn. The best teams will be those who use LLMs most effectively.

Sounds like a topic for you?

We analyze your situation and show concrete improvement potential. The consultation is free and non-binding.

Book Free Consultation