The confirmation prompt presented to the user to query for an affirmative or negative response.
Additional configuration data required by a built-in intent. Possible
values for the built-in intents: actions.intent.OPTION ->
[google.actions.v2.OptionValueSpec], actions.intent.CONFIRMATION ->
[google.actions.v2.ConfirmationValueSpec],
actions.intent.TRANSACTION_REQUIREMENTS_CHECK ->
[google.actions.v2.TransactionRequirementsCheckSpec],
actions.intent.DELIVERY_ADDRESS ->
[google.actions.v2.DeliveryAddressValueSpec],
actions.intent.TRANSACTION_DECISION ->
[google.actions.v2.TransactionDecisionValueSpec],
actions.intent.PLACE ->
[google.actions.v2.PlaceValueSpec],
actions.intent.Link ->
[google.actions.v2.LinkValueSpec]
The built-in intent name, e.g. actions.intent.TEXT
, or intents
defined in the action package. If the intent specified is not a built-in
intent, it is only used for speech biasing and the input provided by the
Google Assistant will be the actions.intent.TEXT
intent.
Optionally, a parameter of the intent that is being requested. Only valid for requested intents. Used for speech biasing.
Generated using TypeDoc
Asks user for a confirmation.
// Actions SDK const app = actionssdk() app.intent('actions.intent.MAIN', conv => { conv.ask(new Confirmation('Are you sure you want to do that?')) }) app.intent('actions.intent.CONFIRMATION', (conv, input, confirmation) => { if (confirmation) { conv.close(`Great! I'm glad you want to do it!`) } else { conv.close(`That's okay. Let's not do it now.`) } }) // Dialogflow const app = dialogflow() app.intent('Default Welcome Intent', conv => { conv.ask(new Confirmation('Are you sure you want to do that?')) }) // Create a Dialogflow intent with the `actions_intent_CONFIRMATION` event app.intent('Get Confirmation', (conv, input, confirmation) => { if (confirmation) { conv.close(`Great! I'm glad you want to do it!`) } else { conv.close(`That's okay. Let's not do it now.`) } })
// Actions SDK const app = actionssdk() app.intent('actions.intent.MAIN', conv => { conv.ask(new Confirmation('Are you sure you want to do that?')) }) app.intent('actions.intent.CONFIRMATION', (conv, input, confirmation) => { if (confirmation) { conv.close(`Great! I'm glad you want to do it!`) } else { conv.close(`That's okay. Let's not do it now.`) } }) // Dialogflow const app = dialogflow() app.intent('Default Welcome Intent', conv => { conv.ask(new Confirmation('Are you sure you want to do that?')) }) // Create a Dialogflow intent with the `actions_intent_CONFIRMATION` event app.intent('Get Confirmation', (conv, input, confirmation) => { if (confirmation) { conv.close(`Great! I'm glad you want to do it!`) } else { conv.close(`That's okay. Let's not do it now.`) } })