Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. action (BookReservaton) {
  2. type(Search)
  3. description (Book a reservation)
  4. collect {
  5.  
  6. // Ask for the user's reservation date
  7. input (reservationDate) {
  8. type (time.DateTimeExpression)
  9. min (Required) max (One)
  10. }
  11.  
  12. // Prompt for number of guests, but also allow them to confirm 2
  13. input (numberOfGuests) {
  14. type (NumberOfGuests)
  15. min (Required) max (One)
  16. default-init {
  17. intent {
  18. goal: NumberOfGuests
  19. value: $expr(2)
  20. }
  21. }
  22. prompt-behavior (AlwaysSelection)
  23. }
  24. }
  25. output (Reservation)
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement