Over the past year, I've built and tested over 500 AI prompts for different business functions — sales, marketing, operations, customer support, HR, finance, and product development. Most prompt libraries dump 100 generic prompts and call it a day. I took a different approach: every prompt is tagged by function, tested against real business scenarios, and includes variable slots for industry customization.
Here's the methodology and 10 production-tested prompts from different business functions.
The Prompt Engineering Methodology
Every prompt in our system follows a four-part structure:
from dataclasses import dataclass, field
from enum import Enum
from typing import Optional
class BusinessFunction(str, Enum):
SALES = "sales"
MARKETING = "marketing"
OPERATIONS = "operations"
SUPPORT = "customer_support"
HR = "human_resources"
FINANCE = "finance"
PRODUCT = "product_development"
LEGAL = "legal"
class PromptComplexity(str, Enum):
SIMPLE = "simple" # Single-turn, direct output
STRUCTURED = "structured" # Multi-section output
CHAIN = "chain" # Multi-step reasoning
AGENT = "agent" # Tool-using, iterative
@dataclass
class BusinessPrompt:
id: str
name: str
function: BusinessFunction
complexity: PromptComplexity
system_prompt: str
user_template: str # Contains {variables}
variables: list[str]
output_format: str
industry_variants: dict[str, str] = field(default_factory=dict)
test_score: float = 0.0 # 0-1, based on human evaluation
def render(self, **kwargs: str) -> str:
"""Fill in template variables."""
rendered = self.user_template
for key, value in kwargs.items():
rendered = rendered.replace(f"{{{key}}}", value)
# Check for unfilled variables
for var in self.variables:
if f"{{{var}}}" in rendered:
raise ValueError(f"Missing variable: {var}")
return rendered
def customize_for_industry(self, industry: str) -> "BusinessPrompt":
"""Return a version customized for a specific industry."""
if industry in self.industry_variants:
customized = BusinessPrompt(
id=f"{self.id}_{industry}",
name=f"{self.name} ({industry})",
function=self.function,
complexity=self.complexity,
system_prompt=self.system_prompt + f"\n\nIndustry context: {self.industry_variants[industry]}",
user_template=self.user_template,
variables=self.variables,
output_format=self.output_format,
test_score=self.test_score,
)
return customized
return self
The Prompt Library Manager
import json
from pathlib import Path
class PromptLibrary:
def __init__(self, library_path: str = "prompts.json"):
self.path = Path(library_path)
self.prompts: dict[str, BusinessPrompt] = {}
self._load()
def _load(self) -> None:
if self.path.exists():
data = json.loads(self.path.read_text())
for item in data:
prompt = BusinessPrompt(**item)
self.prompts[prompt.id] = prompt
def get_by_function(
self, function: BusinessFunction
) -> list[BusinessPrompt]:
return [
p for p in self.prompts.values()
if p.function == function
]
def get_top_rated(self, n: int = 10) -> list[BusinessPrompt]:
return sorted(
self.prompts.values(),
key=lambda p: p.test_score,
reverse=True
)[:n]
def search(self, query: str) -> list[BusinessPrompt]:
query_lower = query.lower()
return [
p for p in self.prompts.values()
if query_lower in p.name.lower()
or query_lower in p.system_prompt.lower()
]
10 Production-Tested Prompts
1. Sales: Cold Outreach Personalization (Score: 0.91)
sales_outreach = BusinessPrompt(
id="sales_001",
name="Cold Outreach Personalizer",
function=BusinessFunction.SALES,
complexity=PromptComplexity.STRUCTURED,
system_prompt=(
"You are a B2B sales strategist. Write hyper-personalized cold "
"outreach emails. Research the prospect's company, recent news, "
"and pain points. Never be generic. Every line must demonstrate "
"you understand their specific situation."
),
user_template="""Write a cold outreach email:
Prospect: {prospect_name}, {prospect_title} at {company}
Company size: {company_size}
Industry: {industry}
Their likely pain point: {pain_point}
Our solution: {our_solution}
Desired CTA: {call_to_action}
Requirements:
- Subject line under 50 characters
- Body under 150 words
- One specific observation about their company
- One quantified benefit
- Clear, low-friction CTA""",
variables=["prospect_name", "prospect_title", "company", "company_size",
"industry", "pain_point", "our_solution", "call_to_action"],
output_format="Subject line + email body",
test_score=0.91,
)
2. Marketing: SEO Content Brief Generator (Score: 0.88)
seo_brief = BusinessPrompt(
id="marketing_001",
name="SEO Content Brief Generator",
function=BusinessFunction.MARKETING,
complexity=PromptComplexity.STRUCTURED,
system_prompt=(
"You are an SEO content strategist. Generate detailed content briefs "
"that writers can follow to produce high-ranking articles. Include "
"keyword strategy, outline, and competitive differentiation."
),
user_template="""Generate an SEO content brief:
Target keyword: {target_keyword}
Search intent: {search_intent}
Current top-ranking content: {competitor_urls}
Our unique angle: {unique_angle}
Target word count: {word_count}
Output:
1. Title options (3)
2. Meta description
3. H2/H3 outline with target keywords per section
4. Key points to cover that competitors miss
5. Internal linking opportunities
6. CTA recommendation""",
variables=["target_keyword", "search_intent", "competitor_urls",
"unique_angle", "word_count"],
output_format="Structured brief with sections",
test_score=0.88,
)
3. Operations: Process Automation Identifier (Score: 0.85)
process_automation = BusinessPrompt(
id="ops_001",
name="Process Automation Identifier",
function=BusinessFunction.OPERATIONS,
complexity=PromptComplexity.CHAIN,
system_prompt=(
"You are an operations consultant specializing in AI automation. "
"Analyze business processes and identify automation opportunities. "
"Rank by ROI potential and implementation difficulty."
),
user_template="""Analyze these business processes for automation potential:
Current processes:
{process_descriptions}
Team size: {team_size}
Monthly budget for automation: {budget}
Technical capability: {tech_level}
For each process, provide:
1. Automation feasibility (1-10)
2. Estimated time savings (hours/month)
3. Implementation approach (tools, APIs, custom code)
4. Cost estimate
5. ROI timeline
6. Priority ranking""",
variables=["process_descriptions", "team_size", "budget", "tech_level"],
output_format="Ranked table with analysis per process",
test_score=0.85,
)
4. Customer Support: Ticket Response Generator (Score: 0.93)
support_response = BusinessPrompt(
id="support_001",
name="Support Ticket Response Generator",
function=BusinessFunction.SUPPORT,
complexity=PromptComplexity.STRUCTURED,
system_prompt=(
"You are a senior customer support agent. Generate empathetic, "
"solution-oriented responses. Match the customer's tone. Always "
"include a concrete next step. Never use corporate jargon."
),
user_template="""Generate a support response:
Customer name: {customer_name}
Ticket category: {category}
Customer message: {customer_message}
Account status: {account_status}
Previous interactions: {interaction_history}
Known solution: {known_solution}
Response requirements:
- Acknowledge their frustration specifically
- Provide the solution in clear steps
- Offer a specific follow-up action
- Keep under 200 words""",
variables=["customer_name", "category", "customer_message",
"account_status", "interaction_history", "known_solution"],
output_format="Email response ready to send",
test_score=0.93,
)
5. Finance: Invoice Anomaly Detector (Score: 0.87)
invoice_anomaly = BusinessPrompt(
id="finance_001",
name="Invoice Anomaly Detector",
function=BusinessFunction.FINANCE,
complexity=PromptComplexity.CHAIN,
system_prompt=(
"You are a financial analyst specializing in accounts payable. "
"Detect anomalies in invoices by comparing against historical "
"patterns. Flag anything that deviates from established norms."
),
user_template="""Analyze this invoice for anomalies:
Invoice details:
{invoice_data}
Historical averages for this vendor:
{vendor_history}
Company payment policies:
{payment_policies}
Flag any of these anomalies:
- Amount deviations >15% from historical average
- New bank account details
- Unusual line items
- Terms changes
- Duplicate invoice indicators
- Tax calculation errors""",
variables=["invoice_data", "vendor_history", "payment_policies"],
output_format="Anomaly report with risk scores",
test_score=0.87,
)
6-10: Quick Reference
# 6. HR: Job Description Generator (Score: 0.89)
# Generates role-specific JDs with DE&I language check
# 7. Product: Feature Prioritization Matrix (Score: 0.86)
# Analyzes feature requests against business goals, outputs RICE scores
# 8. Legal: Contract Risk Summarizer (Score: 0.84)
# Extracts key terms, flags risky clauses, compares to standard terms
# 9. Marketing: A/B Test Hypothesis Generator (Score: 0.90)
# Generates statistically valid test hypotheses from conversion data
# 10. Sales: Objection Response Library (Score: 0.92)
# Maps common objections to data-backed responses by industry
How to Customize for Your Industry
The industry_variants field lets you adapt any prompt:
sales_outreach.industry_variants = {
"saas": "Focus on integration capabilities, API access, and scalability. "
"Reference their tech stack. Mention competitor migrations.",
"healthcare": "Emphasize HIPAA compliance, patient data security, and "
"EHR integration. Use clinical terminology where appropriate.",
"ecommerce": "Focus on conversion rates, AOV, cart abandonment. "
"Reference their Shopify/WooCommerce platform. Mention seasonal trends.",
"fintech": "Emphasize regulatory compliance, SOC 2, encryption standards. "
"Reference specific regulations (PCI-DSS, KYC/AML).",
}
# Generate a healthcare-specific version
healthcare_outreach = sales_outreach.customize_for_industry("healthcare")
Testing Methodology
Every prompt is scored on a 0-1 scale using blind human evaluation:
@dataclass
class PromptTestResult:
prompt_id: str
test_input: dict[str, str]
output: str
scores: dict[str, float] # accuracy, relevance, tone, completeness
@property
def composite_score(self) -> float:
weights = {
"accuracy": 0.3,
"relevance": 0.3,
"tone": 0.2,
"completeness": 0.2,
}
return sum(
self.scores[k] * weights[k]
for k in weights
if k in self.scores
)
Each prompt was tested against 10+ real-world scenarios before inclusion. Only prompts scoring above 0.80 made the final cut.
The full collection of 500 production-tested prompts — organized by business function with industry customization and the testing framework — is available in my 500 AI Business Prompts collection. Every prompt includes the test data and scoring methodology.
What's your most effective AI prompt for business use? Share it in the comments — I'm building a community prompt library.
Top comments (0)