Intent

Intents map open-ended user input to structured objects. Spoken phrases are matched to intents with Google's Natural Language Understanding (NLU). Intent matches can trigger events in your conversation design to progress the user's conversation. The intent name is specified in the name of the file.

YAML representation
parameters: 
  - object (IntentParameter)
trainingPhrases: 
  - string
Fields
parameters[]

object (IntentParameter)

The list of parameters within the training phrases. All parameters must be defined here to be used in the training phrase.

trainingPhrases[]

string

Training phrases allow Google’s NLU to automatically match intents with user input. The more unique phrases that are provided, the better chance this intent will be matched. The following is the format of training phrase part which are annotated. Note that "auto" field is optional and the default behavior when "auto" is not specified is equivalent to "auto=false". "($ '' auto=)" 'auto = true' means the part was auto annotated by NLU. 'auto = false' means the part was annotated by the user. This is the default when auto is not specified. Example: "Book a flight from ($source 'San Francisco' auto=false) to ($dest 'Vancouver')"

IntentParameter

Definition of a parameter which can be used inside training phrases.

YAML representation
name: string
type: 
  object (ClassReference)
Fields
name

string

Required. Unique name of the intent parameter. Can be used in conditions and responses to reference intent parameters extracted by NLU with $intent.params.[name].resolved

type

object (ClassReference)

Required. Declares the data type of this parameter.