A place to ask questions, connect with others, and stay in the know
Hi,I am looking at creating an audio sequence based on what the schedule is set to. Our hours of operation change from time to time and we have to update the "Closed message" each timeThe idea is to have an audio sequence that does this -1) PROMPT - Plays audio file 1 - "Welcome to Sales, we are currently closed, our hours of operation are "2) EXPRESSION - Then checks the schedule and lets say they are open 9am-5pm, pulls the time from the schedule and plays what is in the schedule "9am to 5pm"3) PROMPT - Plays audio file 2 - " If you would like to leave a voicemail, press 1... etc "So rather than updating the prompt every time, we just update the schedule and it would modify the audio provided to the customer on that basisI can't see anything on the Expressions that seems to matchThanks in advance
Thank you @Melissa Bailey. I am new to Genesys Cloud CX so please excuse my questions. The above makes senses. So from what I understand, you setup a data action and you use a task to pull that data?
My question would be how to I determine what the details of that data are. For example I have a "Schedule" called "English Open Hours" and it is set to open at 9am to 6pm. How to I determine the exact request to pull that data? I did check the API explorer but I can't seem to find anything that refers to schedules.Thanks
Firstly, thank you @Jim Crespino I think that is a good idea and would work. I did think of that initially but the only issue is that when the support team modify their hours ( as they do from time to time ) , I need to modify the data table right?
@Melissa Bailey Thanks for your response. A played around and using the API was able to get the output of the schedule which gave me the following two strings
Start 2021-06-28T08:00:00.000End 2021-06-28T17:00:00.000
So I am getting there, but what is the next step to manipulate that data so that I can use it in the script? The idea is to take the start time 08 and end time 17 and make routing decisions based. So whatever the start time, it would play the audio that corresponds with that.
I was able to publish the action and in the script the I can see the successful outputs and assigned "Start" and "End" to Variables, but should I manipulate the data in the script or before it hits there or do beforehandAgain, sorry, very new to this so I am sure its simple enough
Thanks @Melissa Bailey that works perfectly.I will explain what I did in case anyone else finds it useful
I had recorded some prompts called EN_1, EN_2... to EN_12 as well as EN_30 Each had a number in them "One", "Two".... to "Twelve" and "Thirty"
I also had the start and end of the closed message as well as "AM" and "PM" and "TO"To play this in the "Play Audio" section, I added multiple prompts and expressions
1 - Prompt - Played the Start of the Closed message2 - Expression - FindUserPrompt("EN_"+ToString(Hour(ToDateTime(Task.OpenTime)))) - This would play 9 for example for 9am3 - Expression - FindUserPrompt("EN_"+ToString(Minute(ToDateTime(Task.OpenTime)))) - This would plan 30 if the start time was a 9:304 - Prompt - Played "AM"5 - Prompt - Played "TO"6 - Expression - FindUserPrompt("EN_"+ToString(Hour(ToDateTime(Task.ClosedTime))-12)) - This would play 6 for 6pm7 - Expression - FindUserPrompt("EN_"+ToString(Minute(ToDateTime(Task.OpenTime)))) - This would plan 30 if the closed time was a 6:308 - Prompt - Played "PM"9 - Prompt - Played the end of the Closed message
So in the end you get "Welcome to Company Blah, we are currently closed, our hours of operation are 9 AM TO 5 PM Monday to Friday... blah..."
Every year, Genesys® delivers more than 70 billion remarkable customer experiences for organizations in over 100 countries. Through the power of the cloud and AI, our technology connects every customer moment across marketing, sales and service on any channel, while also improving employee experiences. Genesys pioneered Experience as a ServiceSM so organizations of any size can provide true personalization at scale, interact with empathy, and foster customer trust and loyalty. This is enabled by Genesys Cloud™, an all-in-one solution and the world's leading public cloud contact center platform, designed for rapid innovation, scalability and flexibility. Visit www.genesys.com.