How to identify if a user is launching a skill for the first time in Alexa?

Is there any way we can identify if a user is launching a skill for the first time? without using a backend DB to store visit information?

For example, the request object specifies if the user has granted a permission or not. Is there a way to also identify if a user is launching the skill for the first time?

{

"version":"1.0",

"session":{

"new":true,

"sessionId":"amzn1.echo-api.session.abc",

"application":{

"applicationId":"amzn1.ask.sabc3"

},

"user":{

"userId":"amzn1.ask.account.AGQ"

}

},

"context":{

"System":{

"application":{

"applicationId":"amzn1.ask.skill.bb"

},

"user":{

"userId":"amzn1.ask.account.AGQ"

},

"device":{

"deviceId":"amzn1.ask.device.AHH",

"supportedInterfaces":{

}

},

"apiEndpoint":"https://api.amazonalexa.com",

"apiAccessToken":"eysed"

}

},

"request":{

"type":"LaunchRequest",

"requestId":"amzn1.echo-api.request.09b",

"timestamp":"2018-10-15T17:03:03Z",

"locale":"en-US",

"shouldLinkResultBeReturned":false

}

}...

Read More »

By: StackOverFlow - 5 days ago

Related Posts