UiPath Documentation
activities
latest
false
Integration Service activities

Choice

Use TypeSafe to pick one option from a set you define, with a probability for every option and a confidence.

Description​

This activity picks the option that best fits the state from a set of options you define. It returns the chosen option, a probability for every option, and a confidence.

For example, to route a support ticket, enter the ticket text as the state and the possible teams as the options.

Project compatibility​

Windows | Cross-platform

Prerequisites​

Configuration​

FieldDirectionDescription
ConnectionInputThe connection established in Integration Service. Access the dropdown menu to choose, add, or manage connections.
StateInputRequired. The content to evaluate, as plain text or JSON. A JSON object or array is sent as structured data. The state and the instructions together can be up to 32k tokens.
InstructionsInputRequired. What the model decides about the state. Enter plain text, or a JSON object that holds the question in one field and reference data in others.
OptionsInputRequired. The options to choose from, as a JSON object that maps each option name to its description, for example {"billing":"Payments, invoicing, refunds","technical":"Bugs, outages"}. Use null as the description of an option that needs no detail. Up to 255 options.
ModelInput and outputOptional. The model to use. If empty, the activity uses jev-latest. As an output, the versioned ID of the model that produced the answer, for example jev-1.13.0.
Choice answerOutputThe full response, as one object.
ChoiceOutputThe option with the highest probability.
ConfidenceOutputHow certain the model is, from 0 to 1, derived from the probability distribution.
ProbabilitiesOutputEvery option mapped to its probability. The values add up to 1.
Input tokensOutputThe number of input tokens billed for the request.
Output tokensOutputThe number of output tokens. Output tokens aren't billed.
  • Description​
  • Project compatibility​
  • Prerequisites​
  • Configuration​

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated