...
An intent determines what your user is trying to accomplish. Utterances are the various ways your users might express the intent. You can have multiple utterances mapped to one intent. For example, for an intent called RCScheduler, you might specify a number of utterances like the following:
...
Info |
---|
The text in curly brackets is called a slot. Slots are variables you manage by lists. See Using the “Using slots in intentsintents” section below to learn more. |
Creating an intent
In your project, go to Create > Components > Intent Library.
Click Add (+). The Create new intent dialog box appears.
Click Next and enter the name for the intent you want to create. For example, RCScheduler.
Click Add. The Intent screen appears.
Note: Intent Name should be alphabets and underscore only. The Underscores in the beginning and the end of the intent name will be removed automatically upon saving.On the right side, specify the slots you want to use in the utterances. See Using slots in intents and Creating a custom slot.
In the left side, enter an utterance, such as make an appointment on {date} at {time} with {staff}.
Click Add Utterance for each variation you think a user may use to accomplish their task.
An utterance can contain alphabets and special characters and must start with an alphabet or slot.If you want to require confirmation, move the slider button to on, and enter what you want the voice assistant to say to confirm the action before proceeding.
Info |
---|
The following image shows the intent without the custom staff slot. See Creating a custom slot for an updated intent that uses the custom staff slot. |
...
Note |
---|
Ensure you have no duplicate utterances in any of the intents within the project. Refer to the below document for the list of default utterances and slots used in Orbita. Default Intents and slots used in Orbita |
Using slots in intents
Slots are spoken utterances of the user. See Refer How do I create lists (slots)?
Phrases are spoken by the voice assistant. See also Refer How do I create phrases for the voice assistant?
You can select an existing slot from the Slot Library that is available from the pull-down on an Intents dialog box. You can also create custom slots and map them to natural language processors (NLPs) like Amazon and Google.
...
Info |
---|
For Google Dialog flow, the maximum number of slots/entities allowed in intent is 20. |
For example, you can create a Number Intent that will take decimal numbers.
Create an intent
Add ORBITA.NUMBER to the List name.
Give a slot name to it. The ORBITA.NUMBER will change to AMAZON.NUMBER.
Refer the slot name to the utterances using curly braces {}.
When you open the curly braces, the list of available slots will be populated in the dropdown. You can select one from the dropdown.
You can create multiple utterances using the bulk upload option.
Sample for bulk upload
Code Block point {fractionPart} point {fractionPart} {integerPart} {integerPart} over {fractionPart} {integerPart} point {fractionPart} {integerPart} point {fractionPart} {integerPart} {fractionPart} {integerPart} . {fractionPart}
Choosing the NLP
You can choose to deploy the intent to the provider of your choice by selecting the NLP in the intent Edit screen.
...
The characters that will be stripped off are ~ ! @ # $ % ^ & * ) ( _ + = ] [ : ; ' " | \ / ? , > < 0-9
Events
Orbita extends its support to Dialogflow's events. Input the custom event name in the Event field to tag the intent to that event.
...