{
  "$format": "thethinkloop.template/v1",
  "slug": "lead-qualification",
  "title": "Lead qualification",
  "decides": "Whether an inbound lead is worth a salesperson's time.",
  "question": {
    "name": "decision",
    "type": "predicate",
    "instructions": "Is this inbound lead worth a sales call?"
  },
  "evidenceChecks": [
    {
      "name": "factor_1",
      "label": "Decision-maker",
      "type": "predicate",
      "instructions": "The sender holds a senior title or budget authority."
    },
    {
      "name": "factor_2",
      "label": "Team size fits",
      "type": "predicate",
      "instructions": "The company or team size is 20 people or more."
    },
    {
      "name": "factor_3",
      "label": "Buying timeline",
      "type": "predicate",
      "instructions": "The sender states a timeline or an active evaluation."
    }
  ],
  "inputs": [
    {
      "name": "message",
      "type": "string",
      "required": true,
      "description": "The customer's message, verbatim. Include the subject line if there is one."
    },
    {
      "name": "enrichment",
      "type": "string",
      "required": false,
      "description": "Firmographic data you already hold: company size, industry, existing customer or not."
    }
  ],
  "expectedOutput": "A probability from 0 to 1 that the lead is worth a call, plus one probability per evidence check.",
  "examples": [
    {
      "title": "Senior buyer with budget and a timeline",
      "input": "Hi, I'm Head of Support at a 240-person B2B SaaS company. We have 45 agents on Zendesk and budget approved to automate triage this quarter. Can we get a demo and pricing?",
      "expected": "Yes"
    },
    {
      "title": "Student project",
      "input": "I'm a student writing a thesis on AI classification. Is there a free forever plan I could use for a personal project?",
      "expected": "No"
    }
  ],
  "startingPolicy": {
    "automateAt": 0.85,
    "abstainBelow": 0.55,
    "note": "A starting point for exploration, not a recommendation. Calibrate against your own labeled examples."
  }
}
