Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Slot for Telephone Number

    Posted 2 hours ago
    Edited by Anne Lindner 2 hours ago
    Hi Community,
     
    I'm currently building a voice bot in Genesys Cloud Architect and I'm looking for best practices around collecting phone numbers from callers.
     
    Context:
    I want to ask callers for their preferred callback number. After collecting it, the bot reads it back for confirmation.
     
    What I've tried:
    I'm currently using the `builtin:number` slot, which works for recognition – but it comes with one issue:
     
    1. Readback problem: When the bot reads back the captured number for confirmation, it reads it as a full integer (e.g. "five million six hundred forty-two thousand...") instead of digit by digit. This is confusing for callers.
     
    Why not Regex?
    1. A regex slot type seems too rigid for our use case – Our expected phone numbers can vary in format and length depending on whether callers say 0, +41, 0041 etc.

    2. STT reliability: German speech recognition can be tricky with numbers. For example, "zwei" and "zwo" are both valid ways to say "2" in German, and I'm not sure how reliably the STT handles these variations for longer number sequences like phone numbers.
     
    My questions:
    - Is `builtin:number` actually best practice for collecting phone numbers in a voice bot, or is there a better approach?
    - Would DTMF input be more reliable here?
    - Is there a way to make the TTS read back a captured number digit by digit instead of as a whole number? I'm using the de-CH-JanNeural (Azure) voice, so SSML is limited.
     
    Thanks in advance!


    #Architect

    ------------------------------
    Anne Lindner
    ------------------------------



  • 2.  RE: Slot for Telephone Number

    Posted 12 minutes ago
    Edited by Phaneendra Avatapalli 9 minutes ago

    Hi Anne,

    From my understanding, builtin:number is still a valid approach for collecting phone numbers.

    For the digit-by-digit readback, you may find this Community thread helpful. It discusses the same scenario and covers using the Communication action with Data and Speak each digit, as well as an alternative approach of splitting the value into individual digits if needed.

    https://community.genesys.com/discussion/voice-bot-read-each-digit-instead-of-whole-number

    You may also find this discussion useful regarding handling numeric variations and different approaches for collecting numeric identifiers in voice bots:

    https://community.genesys.com/discussion/question-on-detecting-numeric-variations-in-voice-bot-flows

    Hope this helps.



    ------------------------------
    Phaneendra
    Technical Solutions Consultant
    ------------------------------