Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Dialect support in bots

    Posted yesterday
    Edited by Vikki Papesh yesterday

    Greetings and thanks in advance.  I have a simple voice bot that requests a zip or postal code for US and Canadian customers.  In Canada, "zed" isn't working.  How can I craft a regex to accept "zed" as "z"  in the second and third alpha block using the following regex:  
    ^([AaBbCcEeGgHhJjKkLlMmNnPpRrSsTtVvXxYy] ?[0-9] ?[A-Za-z]-? ?[0-9] ?[A-Za-z] ?[0-9])$


    #ConversationalAI(Bots,VirtualAgent,etc.)

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



  • 2.  RE: Dialect support in bots
    Best Answer

    Posted 8 hours ago

    Hey Vikki,

    I'm not exactly sure how you could do that with regex since it is designed to work with text rather than speech. You could try something like the following to include A through Z, as well as "zed":

    [a-y]|z|zed



    ------------------------------
    Jason Kleitz
    Online Community Manager/Moderator
    ------------------------------