API reference
API reference
Select your platform
No SDKs available
No versions available

ConduitActionAttribute Class

Extends Attribute
Marks the method as a callback for voice commands. The method will be mapped to an intent and invoked whenever that intent is resolved by the backend.

Properties

The intent name matching this method. If left blank, the method name will be used to infer the intent name.
The minimum confidence value for intent matching
The maximum confidence value for intent matching
Additional aliases to refer to the intent this method represent.
If true, this will be called for partial responses instead of full responses. It will also contain a VoiceSession parameter which can be used to 'validate' a partial response so the VoiceSession treats the response as final & deactivates.

Protected Fields

const float DEFAULT_MIN_CONFIDENCE[Get]
const float DEFAULT_MAX_CONFIDENCE[Get]

Protected Functions

Triggers a method to be executed if it matches a voice command's intent.
Parameters
intent
The name of the intent to match.
Triggers a method to be executed if it matches a voice command's intent.
Parameters
intent
The name of the intent to match.
minConfidence
The minimum confidence value (0-1) needed to match.
maxConfidence
The maximum confidence value(0-1) needed to match.
validatePartial
When true will validate partial matches.
aliases
Other names to refer to this intent.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon