Classify a session (cloud only)

POST

classify a session by session id.

Path parameters

sessionIdstringRequired

Session ID

Request

This endpoint expects an object.
classeslist of stringsRequired

The classes to use for classification.

namestringRequired

The name of the classifier. Will be used to store the classification in session metadata if persist is True.

instructionstringOptional

Custom instruction to use for classification.

last_nintegerOptionalDefaults to 4

The number of session messages to consider for classification. Defaults to 4.

persistbooleanOptional

Whether to persist the classification to session metadata. Defaults to True.

Response

This endpoint returns an object.
classstringOptional
labelstringOptional

Errors