Data
Stentor API Reference / stentor-models/src / Data
Interface: Data
Defined in: packages/stentor-models/src/Handler/Data.ts:8
Base data object for all the handlers
Properties​
chat?​
optionalchat:object
Defined in: packages/stentor-models/src/Handler/Data.ts:12
Fields for modifying all responses
suggestionChips?​
optionalsuggestionChips:SuggestionTypes[]
Chips to use when generating the default responses. They will be added to all responses.
inputUnknownStrategy?​
optionalinputUnknownStrategy:"GLOBAL"|"GOOGLE"|"REPROMPT"
Defined in: packages/stentor-models/src/Handler/Data.ts:25
Strategy to use when the handler receives an InputUnknown request.
Global requests the global InputUnknownHandler Google's recommended pattern as outlined here: https://designguidelines.withgoogle.com/conversation/conversational-components/errors.html Reprompt uses the reprompt from the previous response.
accessibleThroughDiscovery?​
optionalaccessibleThroughDiscovery:boolean
Defined in: packages/stentor-models/src/Handler/Data.ts:32
Is the handler available externally through discovery.
On Google it means this accessible through Discovery (see https://developers.google.com/actions/sdk/invocation-and-discovery#discovery) and on Alexa CanfulfillIntentRequest (see https://developer.amazon.com/docs/custom-skills/understand-name-free-interaction-for-custom-skills.html)