I used the following solution to achieve handoff to live agents. In my case, the front end is MS Teams and the live operator uses service now chat.
I have posted my implementation in the same thread: