Genesys Cloud CX

 View Only
Discussion Thread View
Expand all | Collapse all

Callback bot for web messaging

  • 1.  Callback bot for web messaging

    Posted 07-10-2022 15:20
    Edited by Basha Mulla 07-10-2022 21:28
    Hi Team,

    New to bot flows and looking for a bot for webmessaging flow where i can collect phone number to have callback(have data action ready for callback). How can i accomplish this, i am trying to do with Ask intent but not getting it worked. Any help with step to step process to build this bot flow, help would be great on this.


    Regards,
    Basha
    #ConversationalAI(Bots,AgentAssist,etc.)


  • 2.  RE: Callback bot for web messaging

    Top 25 Contributor
    Posted 07-10-2022 20:44
    Use Ask for Slot instead

    For the Slot Type you have two options,

    If you have already authenticated the customer, do a database dip and get their phone numbers from your CRM, and populate your slot with those values, presenting them to the customer to select from
    https://help.mypurecloud.com/articles/use-dynamic-list-slot-types-in-a-bot-flow/

    Otherwise set the Slot Type up with a regular expression matching the phone number setup you have, ensuring you prompt the customer to enter their number in the correct format. 

    That should get you what you need for your DataAction

    ------------------------------
    Anton Vroon
    ------------------------------



  • 3.  RE: Callback bot for web messaging

    Posted 07-10-2022 21:27
    Edited by Basha Mulla 07-10-2022 21:27
    Hi Anton,

    Thank you for your reply,

    I am looking for something like bot asks customer to enter phone number so i can use that in my call back data action to setup call back. I am not much familiar with this bot flows, would  be great if you guide me on how i can design slots and intents to accomplish my task ? Below are the screens how i am configuring , suggestions would be appreciated.



    Regards,
    Basha




  • 4.  RE: Callback bot for web messaging

    Top 25 Contributor
    Posted 07-10-2022 21:39
    Slot configuration looks fine.

    Instead of Ask for Intent, just use Ask for Slot

    Slots are always outputs too, so no need to then create another variable for an output.
    You don't need an intent for gathering something specific like a phone number, a slot by itself is fine. And in the slot you can set Verification to Always to auto confirm. If they say no it will auto re-ask

    ------------------------------
    Anton Vroon
    ------------------------------



  • 5.  RE: Callback bot for web messaging

    Posted 07-10-2022 22:07
    Edited by Basha Mulla 07-10-2022 22:07
    Thank you Anton, i have tried this with regular expression ^(1[-. ]?)?(\([2-9]\d{2}\)[-. ]?|[2-9]\d{2}[-. ]?)[2-9]\d{2}[-. ]?\d{4}$ and it always gives me error stating enter phone number in correct format , i have tried entering all formats with no luck, am i doing something wrong with my regex ?

    Regards,
    Basha


    Original Message:
    Sent: 07-10-2022 21:38
    From: Anton Vroon
    Subject: Callback bot for web messaging

    Slot configuration looks fine.

    Instead of Ask for Intent, just use Ask for Slot

    Slots are always outputs too, so no need to then create another variable for an output.
    You don't need an intent for gathering something specific like a phone number, a slot by itself is fine. And in the slot you can set Verification to Always to auto confirm. If they say no it will auto re-ask

    ------------------------------
    Anton Vroon



  • 6.  RE: Callback bot for web messaging

    Top 25 Contributor
    Posted 07-10-2022 22:35
    regular expressions are not my forte
    Looks fine on RegExr

    But looks like Genesys is struggling with some of it, not sure which parts exactly would need to play around, but something simpler like this definitely works
    ^\d-\d{3}-\d{3}-\d{4}$


    So something in your original that Genesys just isn't liking, possibly the special character for a space or another special character would be my bet
    Genesys reference for regular expressions are here:
    https://help.mypurecloud.com/articles/regular-expression-language-quick-reference/

    So might need to play around with it, hopefully someone with more experience on regular expressions can help on that side further.

    ------------------------------
    Anton Vroon
    ------------------------------



  • 7.  RE: Callback bot for web messaging

    Posted 07-10-2022 22:52
    Edited by Basha Mulla 07-10-2022 22:52