Custom Intents

Consider a following example: a scenario for enrolling the international students for a new course at college.

The user might say something like this:

User: Alexa, ask International Office to enroll me for the course Voice Interfaces

or like that:

User: Alexa, open International Office and start my enrollment for Voice Interfaces

or even:

User: Alexa, ask International Office Voice Interfaces enrollment start

This is essentially the same intent: someone obviously wants to be enrolled. But as humans we tend to vary the way we express ourselves. Those variations are called utternces. And that’s how we represents them in the Intents section in BotTalk:

---
intents:
  enroll_for_course:
    - 'enroll me for the course {course_name}'
    - 'enrollment for {course_name}'
    - '{course_name} enrollment start'

BotTalk will fill enroll_for_course intent with the value Voice Interfaces in the course_name slot.

You can learn more about slots here.