Difference between revisions of "GDE/Current/User/Slots"
(Published) |
|||
Line 7: | Line 7: | ||
|Section={{Section | |Section={{Section | ||
|sectionHeading=What are slots? | |sectionHeading=What are slots? | ||
− | | | + | |Standalone=No |
− | | | + | |ComingSoon=No |
+ | |alignment=Vertical | ||
+ | |structuredtext=Dialog Engine is designed to parse an utterance provided by the user and identify their intent. Dialog Engine uses a process called ''slot filling'' to identify pieces of information and maps them to corresponding entities. Each mapping of an intent to a discrete piece of information is termed a '''slot'''. Based on the slots identified and mapped, the bot can continue the conversation with the user. | ||
Suppose the input is: ''I want to book two rooms''. This utterance allows the bot to identify a single entity: '''number of rooms required'''. And the bot might respond up with follow-up questions. | Suppose the input is: ''I want to book two rooms''. This utterance allows the bot to identify a single entity: '''number of rooms required'''. And the bot might respond up with follow-up questions. | ||
Line 34: | Line 36: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Add a slot | |sectionHeading=Add a slot | ||
− | |||
|anchor=addslot | |anchor=addslot | ||
+ | |Standalone=No | ||
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=You can add slots to an utterance in two ways: from the '''Slots''' tab or from the '''Utterance''' tab. | |structuredtext=You can add slots to an utterance in two ways: from the '''Slots''' tab or from the '''Utterance''' tab. | ||
Line 52: | Line 54: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Add a custom slot type | |sectionHeading=Add a custom slot type | ||
− | |||
|anchor=addcustomslottype | |anchor=addcustomslottype | ||
+ | |Standalone=No | ||
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=*Click '''Add Slot Type''' from the '''Slot Types''' page. or click '''Add Slot Type''' in the left pane. | |structuredtext=*Click '''Add Slot Type''' from the '''Slot Types''' page. or click '''Add Slot Type''' in the left pane. | ||
*Enter a name for the custom slot type and click '''Save'''. | *Enter a name for the custom slot type and click '''Save'''. | ||
Line 65: | Line 67: | ||
|sectionHeading=Map a slot | |sectionHeading=Map a slot | ||
|FAQHeading=How do I map slots with utterances | |FAQHeading=How do I map slots with utterances | ||
− | |||
|anchor=mapslot | |anchor=mapslot | ||
+ | |Standalone=No | ||
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=After you define slots, you can map specific words to corresponding entities, and Dialog Engine will pick up those slot values. | |structuredtext=After you define slots, you can map specific words to corresponding entities, and Dialog Engine will pick up those slot values. | ||
Line 78: | Line 80: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Modify a slot's information | |sectionHeading=Modify a slot's information | ||
− | |||
|anchor=editslot | |anchor=editslot | ||
+ | |Standalone=No | ||
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=You can modify any of the slot information by selecting a slot from the '''Slots''' tab and clicking the '''Edit''' button. | |structuredtext=You can modify any of the slot information by selecting a slot from the '''Slots''' tab and clicking the '''Edit''' button. | ||
|fullwidth=No | |fullwidth=No | ||
Line 87: | Line 89: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Delete a slot | |sectionHeading=Delete a slot | ||
− | |||
|anchor=deleteslot | |anchor=deleteslot | ||
+ | |Standalone=No | ||
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=You can delete a slot by selecting a slot from the '''Slots''' tab and clicking the '''Delete''' button. | |structuredtext=You can delete a slot by selecting a slot from the '''Slots''' tab and clicking the '''Delete''' button. | ||
|fullwidth=No | |fullwidth=No | ||
Line 96: | Line 98: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=What's next? | |sectionHeading=What's next? | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
+ | |alignment=Vertical | ||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 13:38, January 17, 2020
Contents
A Slot is a specific piece of information that can be derived from an utterance and mapped to an entity.
What are slots?
Dialog Engine is designed to parse an utterance provided by the user and identify their intent. Dialog Engine uses a process called slot filling to identify pieces of information and maps them to corresponding entities. Each mapping of an intent to a discrete piece of information is termed a slot. Based on the slots identified and mapped, the bot can continue the conversation with the user.
Suppose the input is: I want to book two rooms. This utterance allows the bot to identify a single entity: number of rooms required. And the bot might respond up with follow-up questions.
Slot filling allows collecting multiple pieces of information about the user's intent. Consider, I want to book two rooms for three nights starting tomorrow. The bot identifies slots mentioned in the conversation: two rooms, three nights, and tomorrow and maps them accordingly to the corresponding entities.
Dialog Engine supports two types of slots:
- A built-in predefined slot type available in Dialog Engine
- Custom slot types defined in the Slot Types screen.
Predefined Slot Types
There are four built-in slot types available by default in Dialog Engine:
de:datetime
: maps any date and time values.de:amountOfMoney
: maps any amount values.de:duration
: maps any duration type values.de:number
: maps any numeric values.
Add a slot
You can add slots to an utterance in two ways: from the Slots tab or from the Utterance tab.
- From the Slots tab, click Add Slot.
- Enter a name to identify the slot.
- Select an entity for the slot name. You can choose from a predefined slot type or any custom slot type.
- Check Slot Required if you want this slot to be mandatory in the utterance.
- Enter the prompt to be displayed to the user. Add more prompts, if needed.
- Click Save.
To add slots from the Utterance tab, select and click a word or phrase that will be extracted as a slot value and select Add New Slot.
Add a custom slot type
- Click Add Slot Type from the Slot Types page. or click Add Slot Type in the left pane.
- Enter a name for the custom slot type and click Save.
- Type a value for the custom entity and press Enter.
- Add more entity values as needed.
Map a slot
After you define slots, you can map specific words to corresponding entities, and Dialog Engine will pick up those slot values.
- In the Utterances tab, double-click a specific word/phrase in an utterance.
- Choose a slot name from the Select Slot menu. The selected word/phrase is now indicated as a slot value by a colored underline for the phrase.
- Click Save to save the changes to your bot.
Modify a slot's information
You can modify any of the slot information by selecting a slot from the Slots tab and clicking the Edit button.
Delete a slot
You can delete a slot by selecting a slot from the Slots tab and clicking the Delete button.
What's next?