Я хочу создать простой многооборотный диалог с моделью Alexa Skill. Мое намерение состоит из 3-х слотов, каждый из которых необходим для выполнения намерения. Я подсказываю каждый слот и определяю все необходимые высказывания.
Теперь я хочу обработать запрос с помощью лямбда-функции. Это моя функция для этого конкретного намерения:
function getData(intentRequest, session, callback) {
if (intentRequest.dialogState != "COMPLETED"){
// return a Dialog.Delegate directive with no updatedIntent property.
} else {
// do my thing
}
}
Итак, как я могу продолжить свой ответ с помощью директивы Dialog.Delegate
, как указано в документации Alexa?
https://developer.amazon.com/docs/custom-skills/dialog-interface-reference.html#scenario-delegate.
Заранее спасибо.