question

Sean avatar image
Sean asked

CanFulfillIntentRequest sending authority with "_Live" in resolutionsPerAuthority

Hi, I recently started getting CanFulfillIntent requests to my live skill with a different authority than previously. Notice that the authority for the resolution in the JSON below is not in the format that is listed in the documentation, but it is in the following format:

amzn1.er-authority.echo-sdk.amzn1.ask.skill.<skill_id>_Live.<slot_type>

Notice the _Live right after the skill ID. I have not been able to find this anywhere in the documentation. What does this mean? And why doesn't it match? I'll have to update my code to handle both the documented authority format and this new format.

Request JSON:

{
  "version": "1.0",
  "session": {
      "new": true,
      "sessionId": "amzn1.echo-api.session.<session_id>",
      "application": {
          "applicationId": "amzn1.ask.skill.<skill_id>"
      },
      "user": {
          "permissions": {}
      }
  },
  "context": {
      "System": {
          "application": {
              "applicationId": "amzn1.ask.skill.<skill_id>"
          },
          "user": {
              "permissions": {}
          },
          "device": {
              "supportedInterfaces": {
                  "AudioPlayer": {},
                  "Geolocation": {}
              }
          },
          "apiEndpoint": "https://api.amazonalexa.com"
      }
  },
  "request": {
      "type": "CanFulfillIntentRequest",
      "requestId": "<request_id>",
      "timestamp": "2020-03-31T01:11:32Z",
      "locale": "en-US",
      "intent": {
          "name": "MyIntent",
          "confirmationStatus": "NONE",
          "slots": {
              "MySlot1": {
                  "name": "MySlot1",
                  "value": "myslotvalue",
                  "resolutions": {
                      "resolutionsPerAuthority": [
                          {
                              "authority": "amzn1.er-authority.echo-sdk.amzn1.ask.skill.<skill_id>_Live.<slot_type>",
                              "status": {
                                  "code": "ER_SUCCESS_MATCH"
                              },
                              "values": [
                                  {
                                      "value": {
                                          "name": "myslotvalue",
                                          "id": "MYSLOTID"
                                      }
                                  }
                              ]
                          }
                      ]
                  },
                  "confirmationStatus": "NONE",
                  "source": "USER"
              }
          }
      },
      "dialogState": "STARTED"
  }
}


dialog modelcanfulfillintentrequest
10 |5000

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

Sean avatar image
Sean answered

By the way, I just noticed that this strange authority format with the "_Live" is coming in the same on regular Intent requests now, not just CanFulfillIntent requests. If this is a widespread change it's going to cause some people's skills to break (ironically only those who were "properly" handling the resolutionsPerAuthority by looking for the correctly formatted authority according to the documentation instead of just doing resolutionsPerAuthority[0] all the time).

1 comment
10 |5000

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

Hey Sean, we're having the same problem.

First showed up for us in the certification stage. In certification, they append "_Certification" to the skill ID in authority name. Also seeing the "_Live" appear appended to our skill ID in the authority name like you described.

Oddly, I can't find any documentation for this behavior anywhere, which is incredibly frustrating. As you said, this only affects folks who were trying to match the authorities as they ought to. Hopefully Amazon will correct this documentation gap soon.

0 Likes 0 ·
Anand@Amazon avatar image
Anand@Amazon answered

Hey @Sean

It would be helpful if you also share affected skill ID with us.

7 comments
10 |5000

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

Sean avatar image Sean commented ·

Skill ID is amzn1.ask.skill.1e6386ac-8e7b-4006-ae17-9ca775722db3

0 Likes 0 ·
Rokas avatar image Rokas Sean commented ·

I have no answer to the question you have, but can you share in what domain you skill is and approximately how often do you get can fulfil intent requests?

In my experience, I get them very rarely, so rare in fact, that it was not even worth bothering to implement them, but I am in gaming space, which is quite competitive, so it is not very surprising. But I heard from others, that their experience in other domains was also quite bad. Very few CFIR even got to their skills.

What is your experience in that regard?

1 Like 1 ·
Sean avatar image Sean Rokas commented ·

Hi @RokasV - the skill is in Education and Reference. I'm getting a CFIR every couple of seconds.

0 Likes 0 ·
Show more comments
Anand@Amazon avatar image Anand@Amazon ♦ Sean commented ·

Hello @Sean

Thanks for sharing details with us !!

I have shared all your details with our engineering team to look into. I will share the update with you once I will have any information to share.

0 Likes 0 ·
Sean avatar image Sean Anand@Amazon ♦ commented ·

Any update? This is still happening

0 Likes 0 ·
Show more comments