Genesys Cloud - Main

 View Only

Sign Up

  • 1.  Dialect support in bots

    Posted 16 days ago
    Edited by Vikki Papesh 16 days ago

    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 15 days 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
    ------------------------------