Classify Text

media · A380 · starter-package 7.0.1

Assigns text to one or more categories.

Use

Classify bounded text against an explicit unique label set and return only normalized scored classifications above the requested threshold.

Provider setup

Set Provider endpoint to a compatible service. This block sends the connected input to that service and checks the response before continuing.

Connect Provider credential from an earlier credential block only when the service requires sign-in. Never enter a secret token in Provider endpoint or another normal text field.

For media blocks, connect a media output from an earlier successful block in the same workflow run. The provider receives the media and basic file information, but never its local path. Connect the result to any later block that accepts that media type.

Inputs

  • text — Text: text; required; default none.
  • labels — Labels: list; required; default none; minimum 2; maximum 100.
  • multiLabel — Allow multiple labels: boolean; optional; default false.
  • threshold — Threshold: number; optional; default 0.5; minimum 0; maximum 1.
  • providerEndpoint — Provider endpoint: text; validated URL text; required; default none.
  • providerCredential — Provider credential: text; optional; default none; accepted output: Credential.
  • timeoutMs — Timeout (ms): number; optional; default 60000; minimum 1000; maximum 300000.

Outputs

  • labels — Classifications: list; checked before the workflow continues.
  • bestLabel — Best label: text; checked before the workflow continues.
  • confidence — Confidence: number; checked before the workflow continues.

Settings

Connected input takes precedence over the corresponding saved setting.

IDSettingControlDefaultBounds/options
textTexttextnone—
multiLabelAllow multiple labelscheckboxfalse—
thresholdThresholdnumber0.5minimum 0; maximum 1
providerEndpointProvider endpointtextnone—
timeoutMsTimeout (ms)number60000minimum 1000; maximum 300000

Error handling

  • Invalid or missing input stops before a network request and names the affected input or setting.
  • If connected media or credentials are no longer available, the message tells you which connection to replace.
  • Connection, timeout, sign-in, unsupported action, provider, response-size, and invalid-response failures have separate clear messages and recovery steps.
  • A successful HTTP response still stops the workflow when required output is missing, has the wrong data type, is too large, or cannot be used by the next block.
  • Provider response bodies, credentials, local paths, and internal implementation details are not shown in user-facing errors.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
textTexttextareaEmpty text—
multiLabelAllow multiple labelscheckboxfalse—
thresholdThresholdnumber0.5—
providerEndpointProvider endpointtextEmpty text—
timeoutMsTimeout (ms)number60000—