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

Prompts

Prompts are when the bot puts questions to the user in order to populate fields and parameters in slots. This information is required to complete the action asked in the intent. Prompts are really useful when it's not obvious to the user exactly what information needs to be provided. As we've learned already, an utterance may have a number of slots that need to be filled, and a prompt is a way of asking the user for those values.

In our airline example, if you ask Can I book a flight?, the bot doesn't magically know all of your travel intentions—more information is needed. In this example, a prompt back to the user for this intent might be as follows:

  • Where would you like to fly to?
  • Which day would you like to fly on?

Your bot ...

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