Skip to main content

SimpleResponse

Stentor API Reference


Stentor API Reference / stentor-models/src / SimpleResponse

Interface: SimpleResponse\<T>

Defined in: packages/stentor-models/src/Response/Response.ts:82

A response that expects a user's input.

Extends​

Type Parameters​

T​

T = string | ResponseOutput

Properties​

actions?​

optional actions: StorageAction[]

Defined in: packages/stentor-models/src/Action/Actionable.ts:12

Inherited from​

Actionable.actions


channel?​

optional channel: object

Defined in: packages/stentor-models/src/Channel/Channeled.ts:12

Description of the channel that will be

name?​

optional name: string

String to match with the name of the channel that will match. It can either be the exact name of the channel or a regex string to match multiple.

Inherited from​

Channeled.channel


conditions?​

optional conditions: string | Conditions

Defined in: packages/stentor-models/src/Conditional.ts:73

Conditions to be met.

Can either be a Conditions object or a string such as "foo('bar') || false"

Inherited from​

Conditioned.conditions


name?​

optional name: string

Defined in: packages/stentor-models/src/Response/Response.ts:88

Name of the response.

Used to help differentiate multiple responses.


tag?​

optional tag: string | string[]

Defined in: packages/stentor-models/src/Response/Response.ts:92

Used for tracking the response in third party analytics.


outputSpeech?​

optional outputSpeech: T

Defined in: packages/stentor-models/src/Response/Response.ts:96

What the assistant will say first as part of the response.


reprompt?​

optional reprompt: T

Defined in: packages/stentor-models/src/Response/Response.ts:101

If provided, the output speech was most likely a question and requires a response from the user. The reprompt is given if the user doesn't say anything or the assistant can't recognize the response.


silencePrompt?​

optional silencePrompt: T

Defined in: packages/stentor-models/src/Response/Response.ts:105

Deprecated​

This is not in use.


segments?​

optional segments: ResponseSegmentsMap

Defined in: packages/stentor-models/src/Response/Response.ts:109

Segments used for the outputSpeech and reprompt.


displays?​

optional displays: Display[]

Defined in: packages/stentor-models/src/Response/Response.ts:113

Display elements for surfaces/devices with screens.


media?​

optional media: Media[]

Defined in: packages/stentor-models/src/Response/Response.ts:117

Media for playback


system?​

optional system: "ACCOUNT_LINK" | "HANDOFF" | "MEDIA_ENQUEUE" | "MEDIA_STOP" | "PERMISSION_EMAIL" | "PERMISSION_LIST" | "PERMISSION_LOCATION_COARSE" | "PERMISSION_LOCATION_PRECISE" | "PERMISSION_NOTIFICATION" | "PERMISSION_PHONE_NUMBER" | "SURFACE_CHANGE" | "SURFACE_CLOSE" | "SURFACE_MINIMIZE" | "SURFACE_RESET" | "TRANSACTION_DECISION" | "TRANSACTION_DELIVERY_ADDRESS" | "TRANSACTION_REQUIREMENTS_CHECK" | "TRANSACTION_STATUS" | "TRANSFER_CALL"

Defined in: packages/stentor-models/src/Response/Response.ts:121

System responses to perform account links, control media, surface changes, and permission requests.


data?​

optional data: ResponseData

Defined in: packages/stentor-models/src/Response/Response.ts:145

Supplemental data to augment the response.


context?​

optional context: object

Defined in: packages/stentor-models/src/Response/Response.ts:152

Optional active contexts which help influence the NLU.

active?​

optional active: ActiveContext[]

Matches to outputContexts on Dialogflow & activeContexts