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
Original Message:
Sent: 07-10-2022 21:26
From: Basha Mulla
Subject: Callback bot for web messaging
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
Original Message:
Sent: 07-10-2022 20:44
From: Anton Vroon
Subject: Callback bot for web messaging
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
Original Message:
Sent: 07-10-2022 15:19
From: Basha Mulla
Subject: Callback bot for web messaging
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.)