Bixby Developer Center

Guides
References

named-consumer

optionalmultiple allowedvalue required

Named consumers allow explicitly linking a concept to an action. Once that link is established, it can be accessed via dot notation by its name (similarly to property projections).

Example

structure (RideShare) {
...
// Used for training to rideShare.RideShare.book
// Example utterance ([g:rideShare.RideShare#book] Get me an ride)
// This helps us separate the book and find use cases without polluting the NL silos
// Two reasons right now for having a separate book/find use case:
// 1- using different dialogs for ride booking (choose an ride) vs property projection questions (how much is a ride)
// 2- selection learning is currently only on selection prompts
named-consumer (book) {
description (Book a ride on this ride share.)
action (BookRideShare)
input (rideShare)
}
}