Skip to main content
This guide helps you write effective prompts for LLM-based adherence detection in the By Question metric. Well-structured prompts are specific, measurable, and account for real-world conversation variations.

Prompt Architecture

Every effective AutoQA prompt has three components:

Template Structure


Prompt Development Process

Step 1: Define Success Criteria

Ask yourself:
  • What specific actions or words indicate adherence?
  • What variations are acceptable?
  • What constitutes a clear failure?
  • How granular should the evaluation be?

Step 2: Create Measurable Standards

Criteria should be:
  • Observable in conversation transcripts
  • Objective rather than subjective
  • Specific enough to avoid interpretation gaps
  • Comprehensive enough to cover typical scenarios

Step 3: Test Specificity

Validate your prompt by asking:
  • Could two evaluators reach different conclusions from this prompt?
  • Are there ambiguous terms that need clarification?
  • Does it clearly differentiate between pass and fail scenarios?

Example Prompts

Greeting Evaluation

Poor Prompts (Low Precision/Recall)

  • “Check if the agent was polite when greeting the customer.”
  • “Did the agent say hello properly?”
  • “Evaluate the quality of the agent’s opening statement.”
Why these fail: “Polite,” “properly,” and “quality” are subjective-they provide no actionable evaluation framework.

Robust Prompt (High Precision/Recall)


Call Closing Evaluation

Poor Prompts (Low Precision/Recall)

  • “Check if the agent ended the call nicely.”
  • “Did the agent close the call professionally and make sure the customer was satisfied?”
  • “Evaluate whether the call conclusion was appropriate.”
Why these fail: “Nicely” and “appropriately” are subjective, and combining multiple criteria without definitions makes consistent evaluation impossible.

Robust Prompt (High Precision/Recall)


Pre-Deployment Checklist

Before deploying a prompt, verify:

Common Pitfalls


Key Success Factors

Specificity Over Generality

Replace broad concepts with concrete, observable behaviors:
  • Instead of: “Agent was helpful”
  • Use: “Agent acknowledged the customer’s concern and provided specific action steps”

Observable Actions Over Intentions

Focus on what can be measured in the transcript:
  • Instead of: “Agent showed empathy”
  • Use: “Agent used acknowledgement phrases such as ‘I understand’ or ‘That must be frustrating‘“

Inclusive Criteria Design

Account for natural conversation variations:
  • Allow multiple ways to meet the same requirement
  • Define acceptable alternatives upfront
  • Consider different communication styles while maintaining standards

Clear Failure Definition

Be explicit about non-compliance:
  • Define both missing elements and inadequate attempts
  • Specify unacceptable alternatives
  • Address common failure modes directly
Effective prompts balance specificity with flexibility — ensuring consistent evaluation while accommodating natural variations in human communication.