Bixby Developer Center

Guides
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.

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?")
}
}
uncategorized {
hint ("Look up teacher with My Japanese Dictionary")
hint ("Character for rain in My Japanese Dictionary ")
hint ("Look up a word with My Japanese Dictionary ")
hint ("Look up a character with My Japanese Dictionary ")
}
}