question

newuser-aabc6904-1b4d-48da-9e56-0cb93fd0d1d9 avatar image

Got Error code: InvalidIntentSamplePhraseSlot -

I got this error while I built the model "Sample utterance "AddBookmarkIntent i am at {pageno} of {mybook}" in intent "AddBookmarkIntent" cannot include both a phrase slot and another intent slot. Error code: InvalidIntentSamplePhraseSlot -" where {pageno} is AMAZON.NUMBER and {mybook} is AMAZON.SearchQuery

intentsgeneral coding
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.

1 Answer

Jenn@amazon avatar image
Jenn@amazon answered

You can't use any other slots in the same sample utterance with AMAZON.SearchQuery.

From the docs:

Make sure that your skill uses no more than one AMAZON.SearchQuery slot per intent. The Amazon.SearchQuery slot type cannot be combined with another intent slot in sample utterances.

AMAZON.SearchQuery Reference

1 comment
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.

Good call out - that tripped me up too

0 Likes 0 ·