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.
followUp?β
optionalfollowUp?:string
Line appended to chat responses to invite a reply.
Set to a single space to suppress it: an empty string reads as unset and the default follow-up comes back.
inputUnknownStrategy?β
optionalinputUnknownStrategy?:"GLOBAL"|"GOOGLE"|"REPROMPT"
Defined in: packages/stentor-models/src/Handler/Data.ts:32
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:39
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)