SimpleResponse
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β
Partial\<Actionable>.Partial\<Conditioned>.Partial\<Channeled>
Type Parametersβ
Tβ
T = string | ResponseOutput
Propertiesβ
actions?β
optionalactions:StorageAction[]
Defined in: packages/stentor-models/src/Action/Actionable.ts:12
Inherited fromβ
channel?β
optionalchannel:object
Defined in: packages/stentor-models/src/Channel/Channeled.ts:12
Description of the channel that will be
name?β
optionalname: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β
conditions?β
optionalconditions: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β
name?β
optionalname:string
Defined in: packages/stentor-models/src/Response/Response.ts:88
Name of the response.
Used to help differentiate multiple responses.
tag?β
optionaltag:string|string[]
Defined in: packages/stentor-models/src/Response/Response.ts:92
Used for tracking the response in third party analytics.
outputSpeech?β
optionaloutputSpeech:T
Defined in: packages/stentor-models/src/Response/Response.ts:96
What the assistant will say first as part of the response.
reprompt?β
optionalreprompt: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?β
optionalsilencePrompt:T
Defined in: packages/stentor-models/src/Response/Response.ts:105
Deprecatedβ
This is not in use.
segments?β
optionalsegments:ResponseSegmentsMap
Defined in: packages/stentor-models/src/Response/Response.ts:109
Segments used for the outputSpeech and reprompt.
displays?β
optionaldisplays:Display[]
Defined in: packages/stentor-models/src/Response/Response.ts:113
Display elements for surfaces/devices with screens.
media?β
optionalmedia:Media[]
Defined in: packages/stentor-models/src/Response/Response.ts:117
Media for playback
system?β
optionalsystem:"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?β
optionaldata:ResponseData
Defined in: packages/stentor-models/src/Response/Response.ts:145
Supplemental data to augment the response.
context?β
optionalcontext:object
Defined in: packages/stentor-models/src/Response/Response.ts:152
Optional active contexts which help influence the NLU.
- https://cloud.google.com/dialogflow/es/docs/contexts-input-output
- https://docs.aws.amazon.com/lex/latest/dg/context-mgmt-active-context.html
active?β
optionalactive:ActiveContext[]
Matches to outputContexts on Dialogflow & activeContexts