Defining intents and utterances

Next, we need to create a custom intent. We name it TechnicalArchitectureIntent. This is what Alexa will map the user-spoken request to:

After clicking on Create custom intent, we need to supply the sample utterances that the user will speak that will help Alexa resolve TechnicalArchitectureIntent. We supply the following utterances:

  • How it is built
  • Technical details
  • Stack
  • Technical architecture

So a sample invocation that the user will have to say includes the following:

  • Alexa, ask Lets Poll how it is built
  • Alexa, ask Lets Poll about its technical architecture
  • Alexa, ask Lets Poll about its stack
  • Alexa, ...

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.