Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Trimming confirmation string format

    Posted 05-13-2024 16:05
    No replies, thread closed.

    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
    Best Answer

    Posted 05-13-2024 17:27
    No replies, thread closed.

    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 05-13-2024 18:01
    No replies, thread closed.

    Slot type is builtin:date.

    Both solutions work perfectly, thank you.  



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