Skip to main content
GET
/
v1
/
evals
/
agent-templates
/
{template_key}
Get Eval Agent Template
curl --request GET \
  --url https://api.bland.ai/v1/evals/agent-templates/{template_key} \
  --header 'authorization: <authorization>'
{
  "data": {
    "key": "hallucination_detection",
    "name": "Hallucination Detection",
    "description": "Detects factual inaccuracies or fabricated information in agent responses.",
    "category": "quality",
    "modality": "text",
    "system_prompt_md": "You are an expert evaluator assessing whether an AI agent fabricated information.",
    "prompt_md": "Review the conversation and determine whether the agent stated anything that was factually incorrect or unsupported.",
    "levels": [
      {
        "level_key": "no_hallucination",
        "label": "No Hallucination",
        "prompt_md": "The agent made no factually incorrect or unsupported claims.",
        "color": "emerald"
      },
      {
        "level_key": "minor_hallucination",
        "label": "Minor Hallucination",
        "prompt_md": "The agent made one or more small inaccuracies that did not materially mislead the user.",
        "color": "amber"
      },
      {
        "level_key": "major_hallucination",
        "label": "Major Hallucination",
        "prompt_md": "The agent stated clearly false or fabricated information that could mislead the user.",
        "color": "rose"
      }
    ],
    "target_level_keys": ["no_hallucination"]
  },
  "errors": null
}

Documentation Index

Fetch the complete documentation index at: https://docs.bland.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string
required
Your API key for authentication.

Path Parameters

template_key
string
required
The template’s key, for example hallucination_detection.

Response

key
string
Unique identifier key for the template.
name
string
Human-readable display name.
description
string
Brief description of what the template evaluates.
category
string
Template category. One of voice, sales, support, scheduling, compliance, or quality.
modality
string
Evaluation modality. Either text or audio.
system_prompt_md
string
The system prompt used for this eval agent, in Markdown.
prompt_md
string
The evaluation prompt, in Markdown.
levels
array
Ordered scoring levels for this template.
target_level_keys
array
Array of level_key strings that represent the passing threshold for this template.
Returns 404 with code EVAL_AGENT_TEMPLATE_NOT_FOUND if the key does not match any shipped template.
{
  "data": {
    "key": "hallucination_detection",
    "name": "Hallucination Detection",
    "description": "Detects factual inaccuracies or fabricated information in agent responses.",
    "category": "quality",
    "modality": "text",
    "system_prompt_md": "You are an expert evaluator assessing whether an AI agent fabricated information.",
    "prompt_md": "Review the conversation and determine whether the agent stated anything that was factually incorrect or unsupported.",
    "levels": [
      {
        "level_key": "no_hallucination",
        "label": "No Hallucination",
        "prompt_md": "The agent made no factually incorrect or unsupported claims.",
        "color": "emerald"
      },
      {
        "level_key": "minor_hallucination",
        "label": "Minor Hallucination",
        "prompt_md": "The agent made one or more small inaccuracies that did not materially mislead the user.",
        "color": "amber"
      },
      {
        "level_key": "major_hallucination",
        "label": "Major Hallucination",
        "prompt_md": "The agent stated clearly false or fabricated information that could mislead the user.",
        "color": "rose"
      }
    ],
    "target_level_keys": ["no_hallucination"]
  },
  "errors": null
}

Docs for agents: llms.txt