Skip to main content

Data

Stentor API Reference


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?​

optional chat: object

Defined in: packages/stentor-models/src/Handler/Data.ts:12

Fields for modifying all responses

suggestionChips?​

optional suggestionChips: SuggestionTypes[]

Chips to use when generating the default responses. They will be added to all responses.


inputUnknownStrategy?​

optional inputUnknownStrategy: "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?​

optional accessibleThroughDiscovery: 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)