Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Dialog Engine Slot Type Regex E.164 Format

    Posted 02-09-2022 14:04
    No replies, thread closed.
    I am testing out a Dialog Engine Bot asking for the end customer to input their Phone Number.  I have created the Slot Type and added in the regular expression of  ^\+\d{1,3}d{2,3}d{2,3}d{4} which should format out to e.g. +18005551212, and in testing with a 3rd party tool it works.  When I execute the Bot and it asks for a phone number I get a "Sorry. Please give me your phone number again".  If I enter the phone number in as +1 800 555 1212 it works.  I don't have any spaces \s in my RegEx so why does it work inputting a space?  What should the RegEx format for an E.164 look like?  Thanks.


    #Ask Me Anything (AMA)
    #ArchitectureandDesign
    #Unsure/Other

    ------------------------------
    Martin (i3Vision)
    i3Vision Technologies Inc.
    ------------------------------


  • 2.  RE: Dialog Engine Slot Type Regex E.164 Format

    Posted 02-09-2022 20:53
    No replies, thread closed.
    Try this one:  ^(1[-. ]?)?(\([2-9]\d{2}\)[-. ]?|[2-9]\d{2}[-. ]?)[2-9]\d{2}[-. ]?\d{4}$

    Or /(\+?( |-|\.)?\d{1,2}( |-|\.)?)?(\(?\d{3}\)?|\d{3})( |-|\.)?(\d{3}( |-|\.)?\d{4})/g

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------