Hi,
We are building an Alexa skill for our budgeting and expense management product suite. We faced the following issues while we are building the intents of the skill. I hope you could provide us the directions to resolve these issues.
I will take the examples from Record Expense Intent. Following is the one-shot dialog of this intent.
record 20 dollars expense for my groceries on yesterday
{addCommand} {amount} expense for my {expenseType} on {expenseDate}
Issues
Slot type to capture currency
We need to capture the {amount} slot in currency type. Since there is no AMAZON defined type for currency, we used the following custom slot definition we found from Stack Overflow. But still, it doesn't work consistently. Can't even pass values from the simulator when we follow this approach.
Is there any other way to handle currency. Since this is a common use case, I assume there might be a suggested way. However, Lex has an inbuilt currency type.
{ "name": "Currency", "values": [ { "name": { "value": "$100" } }, { "name": { "value": "$1003.84" } }, { "name": { "value": "$.03" } }, { "name": { "value": "$10.11" } } ] }