{
  "$format": "thethinkloop.template/v1",
  "slug": "sales-routing",
  "title": "Sales routing",
  "decides": "Which sales motion an inbound inquiry belongs to.",
  "question": {
    "name": "decision",
    "type": "choice",
    "instructions": "Which sales motion should handle this inbound inquiry?",
    "choices": [
      {
        "value": "self_serve",
        "description": "Small team or individual who can buy online with a card."
      },
      {
        "value": "sales_assisted",
        "description": "Mid-size team that wants a demo or has pricing questions."
      },
      {
        "value": "enterprise",
        "description": "Large organization, a procurement process, or a custom contract."
      },
      {
        "value": "other",
        "description": "Not a buying inquiry: a support issue, job application, or spam."
      }
    ]
  },
  "evidenceChecks": [
    {
      "name": "factor_1",
      "label": "Team size fits",
      "type": "predicate",
      "instructions": "The company or team size is 20 people or more."
    },
    {
      "name": "factor_2",
      "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": "Employee count and industry from your enrichment provider."
    }
  ],
  "expectedOutput": "One of the four values, a confidence value, and a probability for every option, plus one probability per evidence check.",
  "examples": [
    {
      "title": "Large company running a formal process",
      "input": "We have 2,400 employees and are running an RFP for support automation. Procurement needs your security documentation and an MSA before we can proceed.",
      "expected": "enterprise"
    },
    {
      "title": "Small team ready to pay by card",
      "input": "Hi, we're a small team of 6 people at a startup. Can I just sign up with a credit card on the monthly plan?",
      "expected": "self_serve"
    }
  ],
  "startingPolicy": {
    "automateAt": 0.8,
    "abstainBelow": 0.5,
    "note": "A starting point for exploration, not a recommendation. Calibrate against your own labeled examples."
  }
}
