Botflows Inbuilt Currency

Hi team

I'm running into an Expression Error Outcome when the end user says 50 cents for a Ask for Slot with the inbuilt Currency Type.

$1.5 works fine, but just cents by itself does not.

The only other expression that is there is a validation.
Slot.Amount > MakeCurrency(0,"USD") and again works fine for values over $1

Any ideas, is just cents not a valid option for a currency input?

Hi Anton,

Our engineering team have opened a ticket to look into this for you.

We will get back to you on this.

Nicola

1 Like

Hi Nicola,

Just wondering if the team have had a chance to look at this at all?

Hi Anton,

I can see that the ticket is still in the backlog. Let me see if I can dump up the priority for you.

Nicola

1 Like

Thanks Nicola, appreciate it. :slight_smile:

Just a follow up question related to Currency in Bots.

Has there been a change recently to link to the Currency to the Bot Language?
Previously Slots with the built in Currency type, was defaulting to USD, but now it is default to UK pounds, En-UK is the bot language we use.

Hey Anton,
Sorry for the very late response.
I looked into your issue above and it seems to be a bug on the currency type being detected.
When you say "50 cent", it detects the currency as "cent", which is invalid.
But when you say "1.5 dollars", it detects the currency correctly as "dollars".
I'll let you know when a change is made for the cent issue.
And I'll also check on the defaulting of currency based on the bot language :smiley:

1 Like

And to answer your question about the current default based on botflow language.
Yes, we do default to a currency based on culture.

Thanks Javad

Appreciate that. Makes sense.
Just caught me out, customer just said change payment from x to x and the words dollars wasn't used so defaulted to pounds. And in my validation check I check the amount doesn't exceed their balance but that was using USD as most people were saying dollars and we were finding that was the currency coming through normally.

Since we are NZ based and using NZD just means we need to be mindful of converting everything to the same currency when doing checks.

For reference, the ticket number is NLU-2787

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.