Stack Overflow: A New Way for Developers to Get Support for Alexa

Now you can find Alexa-specific tags and topics in the AWS Collective on Stack Overflow. Ask questions and get help from badged experts and the Alexa developer community!

question

DarthSonic avatar image
DarthSonic asked

Utterance not recognized

Hi,

I am trying to get a utterance to work. I only configured one utterance "frage mein dienst nach dem ergebnis von {Slot}"

Unfortunatly it will not work in Alexa Simulator. If I only say or type "mein dienst" (yeah, I got a better name for it later *g*) it works and fires to AWS Lambda fuction. If I say or type "frage mein dienst nach dem ergebnis von berlin" nothing happens. Alexa Simulator does not recognize the service and does not fire lambda function.

What am I doing wrong? As you guess I use german language.

Here ist the JSON:

{
    "interactionModel": {
        "languageModel": {
            "invocationName": "mein service",
            "intents": [
                {
                    "name": "AMAZON.CancelIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.HelpIntent",
                    "samples": []
                },
                {
                    "name": "AMAZON.StopIntent",
                    "samples": []
                },
                {
                    "name": "GetResultIntent",
                    "slots": [
                        {
                            "name": "Team",
                            "type": "AMAZON.SearchQuery"
                        }
                    ],
                    "samples": [
                        "frag mein service nach dem spielstand von {Team}"
                    ]
                }
            ],
            "types": []
        }
    }
}

alexa skills kitalexa simulatorutterances
10 |5000

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

ppollmanns avatar image
ppollmanns answered

... and you said you say 'mein dienst' but your invocation name seems to be 'mein service' as far as i can see it from the json you provided...

10 |5000

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

ppollmanns avatar image
ppollmanns answered

Hallo,

but if you use the sample phrase

frag mein service nach dem spielstand von berlin

it does work? Maybe you have to supply a little more sample utterances than only this one. And you should probably leave out the invocation phrase part from the sample (so don't include 'frag mein service' in the samples)

Best,

Peter

10 |5000

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

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hi DarthSonic and thanks for your message. I see you are having trouble invoking your skill. Are you still facing this issue? From the JSON you sent, it looks like you should be invoking it using "mein service" ("invocationName"), instead of "mein dienst", as you state in your post, as ppollmanns already stated above.

Can you please confirm if this solves your issue?

Gruß,

Barry

10 |5000

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