Sunday, 21 January 2018

how to access slot values from an Amazon alexa skill in lambda function's code

if userName is the slot that you want to access in your lambda,

then use the below sentence:

nameOfUser = this.event.request.intent.slots.userName;

Now the value of username can be accessed using nameOfUser.value .