Slot
Stentor API Reference / stentor-models/src / Slot
Interface: Slot
Defined in: packages/stentor-models/src/Slot/Slot.ts:7
Slots available to the intent.
Propertiesβ
nameβ
name:
string
Defined in: packages/stentor-models/src/Slot/Slot.ts:14
The name of the slot, corresponds to how it is displayed in the sample utterance.
For example: "Play {Podcast}" where Podcast is the name.
type?β
optionaltype:string
Defined in: packages/stentor-models/src/Slot/Slot.ts:22
The type of entity for the slot.
This corresponds to an Entity, specifically the entityId key.
For legacy applications, SlotType is used.
nlu?β
optionalnlu:object
Defined in: packages/stentor-models/src/Slot/Slot.ts:28
NLU specific metadata used when translating to the NLU entity.
Use to override the type for a specific NLU.
Index Signatureβ
[nlu: string]: object
isList?β
optionalisList:number|boolean
Defined in: packages/stentor-models/src/Slot/Slot.ts:40
Is the slot a list of values.
Remarksβ
Supported natively by Dialogflow and shims for Alexa.
Can be a boolean or number. When a number is used, it provides guidance to the Alexa shim on the max amount of expected items in the list. Minimum value is 2. Value defaults to 6 when set to true.
Only one isList slot is supported per utterance pattern.
slotElicitationContentKey?β
optionalslotElicitationContentKey:string
Defined in: packages/stentor-models/src/Slot/Slot.ts:46
When set, if the slot is not provided by the user the key will be used to get the response off of the content for the handler in order to ask the user to provide the slot.
inputText?β
optionalinputText:string
Defined in: packages/stentor-models/src/Slot/Slot.ts:61
Human readable description of what kind of information the slot is expecting. The text should be very brief. For example:
"zip" "zip code" "city" "state" "street"
Memberofβ
Slot
obfuscateValue?β
optionalobfuscateValue:"FULL"|"PARTIAL"
Defined in: packages/stentor-models/src/Slot/Slot.ts:70
The slot will be obfuscated either fully or partially.
- Full obfuscation, the slot is replaced with the slot name. "my name is ${first_name}"
- Partial obfuscation will only display a subset of characters, enough to protect the full value but enough for someone that is debugging to recognize the value.
For some NLU, such as Amazon Lex, any setting on this value will be interpretted as obfuscated, for more information see Amazon Lex Slot Obfuscation