Skip to main content

getMatchedSlotData

Stentor API Reference


Stentor API Reference / stentor-handler/src / getMatchedSlotData

Function: getMatchedSlotData()

getMatchedSlotData\<T>(request, slotName, slots, slotTypeMap): T

Defined in: packages/stentor-handler/src/AbstractHandler/Util.ts:25

If the provided request is an intent request, it searches for the provided slot name and then tries to find the appropriate data associated with that slot value.

Type Parameters​

T​

T

Parameters​

request​

Request

slotName​

string

slots​

Slot[]

slotTypeMap​

SlotTypeMap\<T>

Returns​

T