Bixby Developer Center

References

preferred-hint

optionalvalue required

An utterance hint that does not need to use named dispatch. This can be used for a more natural sounding utterance where named dispatch isn't needed. This is primarily used when your capsule is the default for an NL category.

You should add a preferred-hint if your utterance doesn't make sense grammatically without it. For example, if your hint is "Ask My Local Business Finder when the post office closes today", this becomes "When the post office closes today" without the dispatch phrase. You should add preferred-hint ("When does the post office close today?") to handle the ungrammatical utterance. In the cases where the dispatch phrase is dropped, the first letter of the utterance is capitalized. For example, "Ask ACME Media Player to play my summer playlist" becomes "Play my summer playlist".

If you add a preferred-hint, make sure that the utterance has been trained properly as this utterance is what gets passed back to Bixby.

Examples

// hints file located in a /resources folder
hints {
for-category (Translators) {
hint ("Ask My Japanese Dictionary what is artificial intelligence in Japanese?") {
preferred-hint ("What is artificial intelligence in Japanese?")
}
hint ("Ask My Japanese Dictionary what is alligator?") {
preferred-hint ("What is alligator in Japanese?")
}
hint ("Ask My Japanese Dictionary what is crab?") {
preferred-hint ("What is crab in Japanese?")
}
hint ("Ask My Japanese Dictionary what is the character for fire?") {
preferred-hint ("What is the character for fire in Japanese?")
}
}
}