Intent Phrases

The keys that you include in your global vocabulary file to show how users engage your app from Siri.


The IntentPhrases key contains sample phrases that a user might speak to initiate the handling of one of your intents. The value of this key is an array of dictionaries, each of which defines one of the sample phrases to speak. Each dictionary contains the following keys:


(Required) A string containing the name of the intent class to which the examples apply. For example, you might specify the string "INRequestRideIntent" to specify sample phrases for booking a ride.


(Required) An array of strings containing the sample phrases that apply to the specified intent. Your sample phrases may be as complex as needed, but should reflect actual phrases that users might say. You may include custom terminology that you defined in the Parameter Vocabularies portion of your vocabulary file.

Xcode helps you add example phrases to your vocabulary file. When you create a property list file with the name AppIntentVocabulary.plist, Xcode knows that the file should contain custom vocabulary, and it makes only the relevant keys available in the property list editor. Figure 1 shows an example of a global vocabulary file in Xcode that contains sample phrases for starting a workout.

Figure 1

Editing the sample phrases in Xcode

Editing the sample phrases in Xcode

See Also

Property List Keys

Parameter Vocabularies

The keys you include in your global vocabulary file to describe app-specific terms.