question

hoid avatar image
hoid asked

Why aren't IDs being passed to my lambda function?

I have IDs set in my interaction model. For example, for a User Story, I might have User and Story as synonyms, with story as the ID. The ID is supposed to be value my program uses internally to move data and make requests. The problem is that I'm always getting the value in the request json to my lambda function, but never the ID that's defined in the Interaction Model. Here's the json for the request object, in which I say "User Story" for the TicketType:

{
    "locale": "en-US",
    "timestamp": "2018-03-07T22:26:22Z",
    "type": "IntentRequest",
    "requestId": "amzn1.echo-api.request.b59bed66-97cd-4e60-8538-cce43cdf3222",
    "dialogState": "COMPLETED",
    "intent": {
        "name": "OpenTicketIntent",
        "confirmationStatus": "CONFIRMED",
        "slots": {
            "Assignee": {
                "name": "Assignee",
                "confirmationStatus": "NONE",
                "value": "tcheek"
            },
            "Project": {
                "name": "Project",
                "confirmationStatus": "NONE",
                "value": "IMJ"
            },
            "Summary": {
                "name": "Summary",
                "confirmationStatus": "NONE",
                "value": "my issue"
            },
            "TicketType": {
                "name": "TicketType",
                "confirmationStatus": "NONE",
                "value": "user story"
            }
        }
    },
    "name": ""
}

Why might this be happening?

My skill id is: amzn1.ask.skill.0dcee2d2-be99-45c2-9661-9d9d3e5b1ae2

alexa skills kitlambdainteraction modeldialog model
3 comments
10 |5000 characters needed characters left characters exceeded

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

Bumping this post again, since it hasn't gotten a reply

0 Likes 0 ·
indieshack avatar image indieshack Jamie Grossman ♦♦ ·

Jamie, any updates on this? It functionally borks the use of synonyms for a slot since the synonym appears to be passed as the slot value (not the slot canonical)

Thanks

0 Likes 0 ·
indieshack avatar image
indieshack answered

I also have IDs set in my interaction model and they aren't being passed - a previous thread on this issue indicated that they are being passed in the German version of Alexa service but not the US version.

10 |5000 characters needed characters left characters exceeded

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

SI avatar image
SI answered

Hello! I had a similar issue which involved my resolutions objects not being sent to my lambda function. I read somewhere on another forum that this can occur if your device's language is not the same as the country under your account.

However, I'm from the US and my language was set as en-US, so I thought that this couldn't have been the issue, right? However, I went to my account settings and changed my country from US to a random address in the UK and then back to my US address and my issue was resolved.

While I really hope this wasn't what solved my issue (as it would be a GLARING bug), I'm not sure what else it could have been. Please try this out and let me know if this works for you too.

10 |5000 characters needed characters left characters exceeded

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