Haven't done it myself, but you will need to use the 2.0 version of the widget and I would suggest the GO SDK for this as there is source code for similar functions on GitHUB
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.comhttps://www.Avtex.comhttps://RobertWC.Blogspot.com------------------------------