Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Trimming confirmation string format

    Posted 10 days ago

    In a simple bot, I'm collecting the date as month, day, year as a slot value like January 1, 1980.  When confirmation is enabled, the slot value is played back with an additional attribute - Tuesday, January 1, 1980.  How can I do away with the Tuesday on the playback?


    #ConversationalAI(Bots,AgentAssist,etc.)

    ------------------------------
    Vikki Papesh
    Sr. Genesys Cloud Developer II
    Tandem Diabetes Care, Inc.
    ------------------------------


  • 2.  RE: Trimming confirmation string format

    Top 25 Contributor
    Posted 10 days ago

    Hi Vikki

    If the datatype is a date, you can use the Data type in the sequence builder and use the dropdowns to select the format, you may need to chain a few together.

    If it is a DateTime variable, then either convert it to a Date type first, or use ToCommunication function with the format parameter like Format.Date.monthOnly to say the date then use it again with Format.Date.dayOnly, then again for year. 



    ------------------------------
    Anton Vroon
    ------------------------------



  • 3.  RE: Trimming confirmation string format

    Posted 10 days ago

    Slot type is builtin:date.

    Both solutions work perfectly, thank you.  



    ------------------------------
    Vikki Papesh
    Sr. Genesys Cloud Developer II
    Tandem Diabetes Care, Inc.
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources