Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Dollar amount value not capturing

    Posted 07-10-2025 07:37

    I am trying to capture money and date value from an expression like "i want to pay $30 on Next friday"

    So it's able to capture the date value, but not Dollar amount, below is the value from the "Optimization Dashboard" :-

    {
    "name": "Bill Payment",
    "confidence": 0.642122728277195,
    "slots": [
    {
    "name": "BillPaymentDate",
    "value": "2025-07-18",
    "type": "builtin:date",
    "confidence": 1
    },
    {
    "name": "MakePayment",
    "value": "30.00|USD",
    "type": "builtin:amountOfMoney",
    "confidence": 1
    }
    ]
    }

    and below is from the Execution History:-

    ToCurrency(Slot.MakePayment)
    Data Type: Currency
    Value:
    NOT_SET


    #ConversationalAI(Bots,AgentAssist,etc.)
    #DigitalChannels

    ------------------------------
    Shakti Joshi
    Accountant
    ------------------------------


  • 2.  RE: Dollar amount value not capturing

    Posted 07-10-2025 12:17

    I wonder if this is due to the ToCurrency only expecting a numerical value, but is receiving the USD part as well e.g 30.00|USD.

    I will look into this a bit more, but maybe someone else will have the answer in the meantime



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Dollar amount value not capturing

    Posted 07-10-2025 12:30

    I have tried using it without builtin:amountOfMoney ,using a Regex and also as a Integer but nothing has worked:-

    {
      "name": "Bill Payment",
      "confidence": 0.6487361344085244,
      "slots": [
        {
          "name": "MakePayment",
          "value": "30",
          "type": "builtin:number",
          "confidence": 1
        }
      ]
    }



    and also this

    { "name": "Bill Payment", "confidence": 0.6560295980438402, "slots": [ { "name": "BillPaymentDate", "value": "2025-07-15", "type": "builtin:date", "confidence": 1 }, { "name": "MakePayment", "value": "$30", "type": "ST_MakePayment", "confidence": 1 } ] }



    ------------------------------
    Shakti Joshi
    Accountant
    ------------------------------



  • 4.  RE: Dollar amount value not capturing

    Posted 07-15-2025 09:40

    Hi Shakti,

    I am going to move this across to the Genesys Cloud - Developer Community as they may be better placed to help with this.



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------