question

Jim Hunter avatar image
Jim Hunter asked

Numbers

Does anyone have a good, solid, intent definition to get a 5 digit number without saying it using 'thousand'? I have tried : printBadge number {four five one two five|Na} printBadge number {seven one nine nine one|Na} printBadge number {two two three four eight|Na} printBadge number {one one nine two three|Na} The only 'numbers' that are ever sent to me are the ones defined. Alexa tries to match my request to one of the 'possible' responses. I have tried to capture the number as a NUMBER and as a LITERAL but I get pretty much the same result. Has anyone conquered this yet? Thanks, Jim
alexa skills kitvoice-user interface
10 |5000

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

Jim Hunter avatar image
Jim Hunter answered
Looks like I solved it. I had to break it out to 5 different numbers and combine them on the back side. This is working pretty well, about 90+% success. printBadge number {one|Nb} {one|Nc} {one|Nd} {one|Ne} {one|Nf} printBadge number {two|Nb} {two|Nc} {two|Nd} {two|Ne} {two|Nf} printBadge number {three|Nb} {three|Nc} {three|Nd} {three|Ne} {three|Nf} printBadge number {four|Nb} {four|Nc} {four|Nd} {four|Ne} {four|Nf} printBadge number {five|Nb} {five|Nc} {five|Nd} {five|Ne} {five|Nf} printBadge number {six|Nb} {six|Nc} {six|Nd} {six|Ne} {six|Nf} printBadge number {seven|Nb} {seven|Nc} {seven|Nd} {seven|Ne} {seven|Nf} printBadge number {eight|Nb} {eight|Nc} {eight|Nd} {eight|Ne} {eight|Nf} printBadge number {nine|Nb} {nine|Nc} {nine|Nd} {nine|Ne} {nine|Nf} printBadge number {zero|Nb} {zero|Nc} {zero|Nd} {zero|Ne} {zero|Nf} Hope this helps someone else. Jim
10 |5000

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

Greg Crawford avatar image
Greg Crawford answered
Jim, That was very helpful. One thing I noticed is that spaces between the slot definitions is important, otherwise all the digits got shoved into the value for the final slot. Thanks! -Greg
10 |5000

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

Jim Hunter avatar image
Jim Hunter answered
Thanks! So far it seems to be working well for me. Jim
10 |5000

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