Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Ask for Slot collecting month name with lowercase first letter

    Posted 07-08-2025 17:33
    No replies, thread closed.

    I have two bot flows where I'm using Slot with Slot Type reg expression. Next line value for my reg expression - 


    ^(January|February|March|April|May|June|July|August|September|October|November|December) ((?:[Oo]h?|\d{1,2}))(st|nd|rd|th) (1939|19[4-9]\d|20\d{2})$


    My first bot flow, works fine. Collecting values in the expected format (Image below)


    My second bot flow, with the same configuration collecting the value in other format (lowercase month)



    How can I "teach" my second bot flow to recognize months with capital letter?

    Thank you


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

    ------------------------------
    Bohdan Lapushniak
    ------------------------------


  • 2.  RE: Ask for Slot collecting month name with lowercase first letter
    Best Answer

    Posted 07-08-2025 21:44
    No replies, thread closed.

    You are not going to get that unless you include that as options in the list like January|january|jan, etc.

    The Virtual Agent does a MUCH better job of recognizing this.  Actually, the DateTime might be better as well.  



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Ask for Slot collecting month name with lowercase first letter

    Posted 07-09-2025 11:56
    No replies, thread closed.

    Thank you, Robert!

    But still, I can't understand how is my first bot can recognize values started with a capital letter, and second one not.
    Maybe there is a way to teach it do that without the need to rebuild it.

    Either way, thanks for your response!
    Will definitely take a look on the Virtual Agent and DateTime type.

    Thanks,
    Bohdan



    ------------------------------
    Bohdan Lapushniak
    ------------------------------



  • 4.  RE: Ask for Slot collecting month name with lowercase first letter

    Posted 07-09-2025 12:47
    No replies, thread closed.

    REGEX is based on ASCII and caps are different values than lower case.  There are transforms you can do to look for more than the literal.  I use REGExR.com for that.  Some don't work in Genesys, sadly.  I really like how Virtual Agents eliminates all that with natural language prompts 



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------