SLU Example Templates

See some examples of SLU configurations! Use them as the scaffold for your application, or learn how to improve your own configuration.

We also accept user-submitted example configurations on this page! If you have an interesting configuration you’d like to share, please contact hello at speechly.com.

Home automation example

You can use this example on the Speechly Dashboard by selecting the Home Automation template in the Create Application dialog.

Intents

  • turn_on
  • turn_off

Entity types

  • devices
  • rooms
actions = [
    turn
    set
    put
    switch
]
devices = [
    lights
    radio
    television
]
rooms = [
    living room
    bedroom
    kitchen
]
*turn_on $actions on the $devices(device) 
*turn_off $actions off the $devices(device)

*turn_on $actions the $devices(device) on
*turn_off $actions the $devices(device) off

*turn_on $actions on the $devices(device) in the $rooms(room)
*turn_off $actions off the $devices(device) in the $rooms(room)

*turn_on $actions the $devices(device) on in the $rooms(room)
*turn_off $actions the $devices(device) off in the $rooms(room)

*turn_on $actions the $rooms(room) $devices(device) on
*turn_off $actions the $rooms(room) $devices(device) off

*turn_on $actions on the $rooms(room) $devices(device)
*turn_off $actions off the $rooms(room) $devices(device)

Flight booking example

Intents

  • book

Entities

  • class
  • depart
  • from
  • to
  • trip_type
  • passengers
cities = [
    Helsinki
    London
    New York
]

dates = [
    today
    tomorrow
    the day after tomorrow
]

passengers = [1..9]

classes = [
    economy
    business
]

trip_types = [
    round trip
    one way
]

flight_synonyms = [
    flight
    ticket
]

book_synonyms = [
    book
    get
    reserve
]


*book $book_synonyms a {$trip_types(trip_type)} $flight_synonyms from $cities(from) to $cities(to) {departing $dates(depart)} {for $passengers(passengers) [people|passengers]} {in $classes(class) class}
*book $book_synonyms a {$trip_types(trip_type)} $flight_synonyms from $cities(from) to $cities(to) {departing $dates(depart)} {in $classes(class) class} {for $passengers(passengers) [people|passengers]} 
*book $book_synonyms a {$trip_types(trip_type)} $flight_synonyms from $cities(from) to $cities(to) {for $passengers(passengers) [people|passengers]} {departing $dates(depart)} {in $classes(class) class} 
*book $book_synonyms a {$trip_types(trip_type)} $flight_synonyms from $cities(from) to $cities(to) {for $passengers(passengers) [people|passengers]} {in $classes(class) class} {departing $dates(depart)}
*book $book_synonyms a {$trip_types(trip_type)} $flight_synonyms from $cities(from) to $cities(to) {in $classes(class) class} {departing $dates(depart)} {for $passengers(passengers) [people|passengers]}
*book $book_synonyms a {$trip_types(trip_type)} $flight_synonyms from $cities(from) to $cities(to) {in $classes(class) class} {for $passengers(passengers) [people|passengers]} {departing $dates(depart)}



Profile image for karoliina-louhema

Last updated by karoliina-louhema on May 26, 2020 at 09:04 +0300

Found an error on our documentation? Please file an issue or make a pull request