Checks if surface has an attribute like a capability
example
app.intent('Default Welcome Intent', conv => {
if (conv.surface.has('actions.capability.AUDIO_OUTPUT')) {
conv.ask('You can hear me! How are you?')
} else {
conv.ask('You can read this! How are you?')
}
})
example
app.intent('Default Welcome Intent', conv => {
if (conv.surface.has('actions.capability.AUDIO_OUTPUT')) {
conv.ask('You can hear me! How are you?')
} else {
conv.ask('You can read this! How are you?')
}
})
Checks if surface has an attribute like a capability
app.intent('Default Welcome Intent', conv => { if (conv.surface.has('actions.capability.AUDIO_OUTPUT')) { conv.ask('You can hear me! How are you?') } else { conv.ask('You can read this! How are you?') } })