question

mraalex avatar image
mraalex asked

Canfulfillintentrequest for Alexa possible if country and postal code permissions are needed?

With Canfulfillintentrequest your Alexa skill can be called even without invoking the skill name.

For a weather app, if the user is asking "What's the weather like today in New York?" this should work well. But if the user is asking "What's the weather like today?" the location information is missing. The skill requires country and postal code permission.

Normally, if you activate a skill in the alexa store you can give the permissions required and then the question "Ask <Weather skill> What's the weather like today?" can be handled properly because user country and postal code is included in the request.

But what about Canfulfillintentrequest? Can I fulfill a request without location information or do I need to say no? How does Canfulfillintentrequest handle required permissions?


> { "request": {

> "type": "CanFulfillIntentRequest",

> "requestId": "...",

> "intent": {

> ...

permissionscanfulfillintentrequest
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

KirkC@Amazon avatar image
KirkC@Amazon answered

Hi mraalex. If your skill would need additional information or permissions beyond that which was provided in the CanFulfillIntentRequest, then that sounds like a scenario where the "canFulfillIntent.canFulfill" response should be set to "NO". For more information about the CanFulfillIntentRequest, please see the documentation here:
https://developer.amazon.com/en-US/docs/alexa/custom-skills/understand-name-free-interaction-for-custom-skills.html

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.