Hi,I have the issue... I just stuck somewhere... So all slots I'm filling in alexa, but there is a point where whether you will answer your gender, and your answer lets say whether you will say that your a woman - you will have extra question... and thats the point where I don;'t know how to fulfill the slot.... please give an advice because I have no thought where I'm stuck now... 'Open': function () { const {slots} = this.event.request.intent; whether (!slots.gender.value) { this.emit(':delegate'); } else { var gender = slots.gender.resolutions.resolutionsPerAuthority[0].values[0].value.id; whether (gender === 'sex_female' && !slots.extra.value) { let immediate = "Ok ladie."; immediate += "disclose me your favorite chocolate"; let reprompt = "What is your favorite chocolate?"; const updatedIntent = 'Open'; this.emit(':elicitSlot','extra', immediate, or reprompt,updatedIntent); } speechOutput = 'success'; this.emit(':disclose', speechOutput); this.emit(':responseReady'); }); }
}
Source: amazon.com