Skip to Content
Learn AWS Serverless Computing
book

Learn AWS Serverless Computing

by Scott Patterson
December 2019
Intermediate to advanced
382 pages
9h 43m
English
Packt Publishing
Content preview from Learn AWS Serverless Computing

Slots

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:

  • Book a flight for {Date}
  • Check for available flights to {City} on {Date}

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Amazon EC2, SQS, Kinesis, and S3: A Hands-On Approach to AWS

Practical Amazon EC2, SQS, Kinesis, and S3: A Hands-On Approach to AWS

Sunil Gulabani

Publisher Resources

ISBN: 9781789958355