December 2019
Intermediate to advanced
382 pages
9h 43m
English
You may have noticed that in the preceding example utterances included some dates and a location. It would be great not to have to list every possible utterance for every location we want to fly to and every possible date combination. For this, we can use slots, which are parameters or variables that can be input by the user.
In the preceding examples, we can add new slots for the following variables:
If we use those variables, then we can reuse our utterances for whatever the user chooses to input. With any variable, it's often a good idea to limit the number of valid answers or provide extra validation against an expected format. The purpose of this is to ...