classificationSpec

@ApiStatus.Experimental
fun classificationSpec(block: ClassificationSpec.Builder.() -> Unit): ClassificationSpec

Builds a classification spec with a Kotlin receiver block.

val departments = classificationSpec {
asking("Which team should handle this?")
category("billing", "Payments, invoicing, refunds")
}

Return

the built spec

Parameters

block

sets the instructions and categories

Throws

if the instructions are missing or blank, there are no categories, or two categories share an id