Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Bot not recognizing letters correctly

    NEW MEMBER
    Posted 11-30-2023 18:28

    Hi, I'm working on building a voice bot to take a customer's tracking number and return the status of the shipment.

    I have the bot working, but sometimes I'm running into the issue where its not recognizing the input when someone says C (it thinks they said D or V) or an O (it automatically translates it to zero instead of the letter O). 

    Is there:

    a) a way that I can adjust how it resolves the speech input or 
    b) train it to not translate the letter O to a zero?

    Thanks,

    Craig


    #ConversationalAI(Bots,AgentAssist,etc.)

    ------------------------------
    Craig Gillett
    CEVA Logistics U.S., Inc.
    ------------------------------


  • 2.  RE: Bot not recognizing letters correctly

    Posted 12-09-2023 16:10

    The c and v issue is always going to be tricky.  How many times have you as a human has had to repeat or clarify letters like that or b and d and p?  If you want the best be sure to use a very strict REGEX pattern.   What are the patterns for the tracking number?

    UPS:

    /\b(1Z ?[0-9A-Z]{3} ?[0-9A-Z]{3} ?[0-9A-Z]{2} ?[0-9A-Z]{4} ?[0-9A-Z]{3} ?[0-9A-Z]|[\dT]\d\d\d ?\d\d\d\d ?\d\d\d)\b/

    Fedex:

    /(\b96\d{20}\b)|(\b\d{15}\b)|(\b\d{12}\b)/
    /\b((98\d\d\d\d\d?\d\d\d\d|98\d\d) ?\d\d\d\d ?\d\d\d\d( ?\d\d\d)?)\b/
    /^[0-9]{15}$/

    USPS:

    /(\b\d{30}\b)|(\b91\d+\b)|(\b\d{20}\b)/
    /^E\D{1}\d{9}\D{2}$|^9\d{15,21}$/
    /^91[0-9]+$/
    /^[A-Za-z]{2}[0-9]+US$/



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



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources