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.

Inheritance
Annotations

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. [...]
read-only, inherited
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 properies that will be used to determine whether two instances are equal.
read-only, override
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.
read-only, inherited
stringify bool
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this object.
inherited

Operators

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