Use match patterns to dynamically lookup the appropriate response for the current context.
For example, this match pattern looks for FlightInformationMatch
from the output of the DisplayDetailInfo
action in order to use the correct dialog at the right time.
match {
Receipt (this)
}
match: Person (candidates) {
from-output: FindPerson {
from-input: PersonName (name)
}
}
dialog (Result) {
match: Earthquake (this) {
from-output: FindEarthquakes (findEQ)
}
template ("[I found these earthquakes in #{value(findEQ.searchRegion)}]")
}
For more information on match patterns, see Match Patterns.
any optional | Use the wildcard underscore (_) to match any node, regardless of its type |
Copyright 2025 Samsung All rights reserved