question

Dattu avatar image
Dattu asked ·

Amazon Date Slot Not Accepting now

I have created a intent named Day with Amazon Date slot.

My sample utterance is

Are you open Now

Now key is accepting the slot amazon.date that is correct. But slot value of date is not send in the request attaching the slot request (jsonrequest.jpg). let me know if i am missing something.

attached screen shots belowjsonrequest.jpg

alexa skills kitalexaslotsintent request history
intentslots.jpg (25.0 KiB)
jsonrequest.jpg (11.2 KiB)
10 |2000 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

Anand@Amazon avatar image
Anand@Amazon answered ·

Hello Dattu,

Thanks for posting your issue.

If you are using Amazon.Date slot type then for now utterance you will get today's date in YYYY-MM-DD format. If you are looking for data only in DD format then you can parse these data into your lambda code. You can also put logic in your lambda code to find the day of particular date.

If you are looking for specific time then use Amazon.time slot type to get the time.

2 comments
10 |2000 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.

i am not able to see the slot value as current date for the utterance now (type Amazon.date)

0 Likes 0 ·

Hey Dattu,

Do you able to resolve your issue or need help to solve this?

0 Likes 0 ·