Use the navigation-support
model to add custom responses and ordinal selection patterns for hands-free list navigation. Bixby handles these conversations in pre-defined conversational flows. This file handles the content variations within that conversation, depending on the Conversation Moment you're in.
This key and its child keys must be defined in a *.navigation.bxb
file. This file must be in the appropriate locale-specific resources
folder.
These responses and patterns are in addition to the standard responses already provided by the Bixby platform. While a navigation.bxb
is not required, it is is the easiest way to provide responses to certain phrases you expect your user to say that are not provided. For example, if you are a hotel reservation capsule, the responses "Reserve it!" and "Book it!" should be handled as an affirmative response to a navigation question from Bixby in item-selection-confirmation
.
Additionally, if you are planning to localize your capsule, you should have separate navigation.bxb
files for each locale your capsule is supporting.
//resources/en-US/navigation/my.navigation.bxb
navigation-support {
match: viv.core.Integer
navigation-commands {
next {
response (show me more)
response (more)
response (next number)
response (next set)
}
cancel {
response (nevermind)
}
select-none {
response (none)
}
}
}
match required | Use match patterns to dynamically lookup an appropriate root type for the current context |
navigation-commands optional | Contains the additional various navigational commands and their formatted responses that a user might give Bixby |
ordinal-selection-patterns optional | Contains the various ordinal selection patterns that a user might say to Bixby |
voice-content-selection-patterns optional | Contains various optional voice content selection patterns you can customize |