Catch-all/Other Intent
Learn how to use the catch-all Other intent and its special features
The other intent is unique. It acts as a catch-all intent for cases where no other intent can be matched.
You cannot name a normal intent "other". If you wish to manipulate
properties on the other intent, you must use the addOther method.
Using the other intent could look something like this:
This intent is rarely called, but you can instruct the AI to do so more commonly or less commonly in the description of this method.
The other Intent Lifecycle
Furthermore, the lifecycle of other is slightly different than normal intents. Specifically, because the other intent does not have any parameters, the following will occur onIntent only occurs when the intents identified goes from anything that is not other to other. In other words, even if the content of the input changes, and it was other before and after, onIntent will not be called again.
Parameters
Besides that, addOther functions very similarly to addIntent with a few "missing" parameters that you cannot customize on other.
For one, you cannot pass in a name.
Furthermore, in the configuration, you can only pass in:
descriptiononIntentonCleanuponSubmit(with React hook)
The signature of these callbacks are identical.
Recommended Use Case
It is highly recommended that for complicated applications, that you connect some form of a Chatbot/Agent onto UI2 when the other intent is submitted.
This way, the user can express complicated workflows in the UI2 input and have them ran.