Intent confirmation doesn't allow $
I have the following Intent Confirmation:
Ok, got it. Let me confirm. You want to pick up a car on {startDate} at the {pickupLocation} and return it on {endDate} for a daily rate of ${rentalRate} , right?
The slot type for rentalRate is number. In order to say the decimal value of rentalRate as "thirty-nine dollars and ninety-nine cents", I need to use the $ before it. There is no SSML say-as to make a decimal number into a currency.
The UI gives me the following error when I try to add the dollar sign: "You have invalid characters"
This text box and the one for Slot Confirmation are currently over-validating.

1 comment
-
Leandro commented
the correct way to use this would be "{number} dollars {number} cents"... This way you simulate what the user would say. You can also put dollars in a custom slot and make a currency list, similar to cents, which then, you could receive if the value is undefined, to know if there are cents to the rentalRate