Intent class

An intent categorizes an end-user's intention for one conversation turn.

For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent.

Matching an intent is also known as intent classification.

For more information, see Intent.

Annotations
  • @JsonSerializable()

Constructors

Intent({String? name, String? displayName, int? priority, bool? isFallback, bool? mlDisabled, List<String>? inputContextNames, List<String>? events, String? action, bool? resetContexts, List<IntentParameter>? parameters, List<Message>? messages, String? rootFollowupIntentName, String? parentFollowUpIntentName, List<FollowUpIntentInfo>? followUpIntentInfo})
An intent categorizes an end-user's intention for one conversation turn.
Intent.fromJson(Map<String, dynamic> json)
factory

Properties

action String?
The name of the action associated with the intent.
final
displayName String?
The name of the intent.
final
events List<String>?
The collection of event names that trigger the intent.
final
followUpIntentInfo List<FollowUpIntentInfo>?
Information about all followup intents that have this intent as a direct or indirect parent.
final
hashCode int
The hash code for this object.
no setterinherited
inputContextNames List<String>?
The list of context names required for this intent to be triggered.
final
isFallback bool?
Indicates whether this is a fallback intent.
final
messages List<Message>?
The collection of rich messages corresponding to the Response field in the Dialogflow console.
final
mlDisabled bool?
Indicates whether Machine Learning is disabled for the intent.
final
name String?
The unique identifier of the intent
final
parameters List<IntentParameter>?
The collection of parameters associated with the intent.
final
parentFollowUpIntentName String?
The unique identifier of the parent intent in the chain of followup intents.
final
priority int?
The priority of this intent. Higher numbers represent higher priorities.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
resetContexts bool?
Indicates whether to delete all contexts in the current session when this intent is matched.
final
rootFollowupIntentName String?
The unique identifier of the root intent in the chain of followup intents.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited