# Webchat with live operator

**URL:** <https://forum.rasa.com/t/webchat-with-live-operator/29592>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [June 1, 2020, 7:19am UTC](https://forum.rasa.com/t/webchat-with-live-operator/29592 "2020-06-01T07:19:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivobrabec](https://avatars.discourse-cdn.com/v4/letter/i/b77776/32.png) [@ivobrabec](https://forum.rasa.com/u/ivobrabec)\
**Post date:** [June 1, 2020, 7:19am UTC](https://forum.rasa.com/t/webchat-with-live-operator/29592/1 "2020-06-01T07:19:37Z")

</div>

Hi, I am trying to figure out what is the best way to build a webchat which would provide the option for rasa to transfer to live operator. Does anybody have a hint where to start? For example the rasa integration with rocketchat is not capable of doing so. Slack integration is relying on third-party webchat solutions which are not open-source. Thanks

---

<div class="post-metadata">

**Author:** ![nchauras](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nchauras/32/16965_2.png) [@nchauras](https://forum.rasa.com/u/nchauras)\
**Post date:** [June 1, 2020, 3:25pm UTC](https://forum.rasa.com/t/webchat-with-live-operator/29592/2 "2020-06-01T15:25:48Z")

</div>

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.

> [@Forwarding messages to Slack and vice versa for human hand-off](http://forum.rasa.com/t/forwarding-messages-to-slack-and-vice-versa-for-human-hand-off/28447/2):
>
> Hi, one possible way to accomplish that would be the following: So this means you have one action action\_human\_handoff like you suggest above. In addition to what it does already, have it set a slot like handoff\_active. add a policy like described in the post I linked And then for sending messages back and forth between the user and the human support, you could implement another custom action like action\_talk\_to\_human which your policy always predicts while the handoff\_active slot is set. …

I have posted my implementation in the same thread:

> [@Forwarding messages to Slack and vice versa for human hand-off](http://forum.rasa.com/t/forwarding-messages-to-slack-and-vice-versa-for-human-hand-off/28447/5):
>
> For future readers, this is the path I have taken so far: User types ‘talk to live agent’ or something similar. The custom action action\_live\_agent creates a live support chat in service now and sets the handoff\_active to true. It also sets slots like live\_chat\_id (live chat id), live\_chat\_user (user\_id to differentiate messages between agent and user), and live\_chat\_last\_updated (timestamp of the last sent message to compare and only get the new messages later). The custom handoff policy Hand…

---

<div class="post-metadata">

**Author:** ![ivobrabec](https://avatars.discourse-cdn.com/v4/letter/i/b77776/32.png) [@ivobrabec](https://forum.rasa.com/u/ivobrabec)\
**Post date:** [June 1, 2020, 5:59pm UTC](https://forum.rasa.com/t/webchat-with-live-operator/29592/3 "2020-06-01T17:59:15Z")

</div>

thanks that helps

---

<div class="post-metadata">

**Author:** ![sekhar8](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@sekhar8](https://forum.rasa.com/u/sekhar8)\
**Post date:** [July 10, 2023, 12:54pm UTC](https://forum.rasa.com/t/webchat-with-live-operator/29592/4 "2023-07-10T12:54:09Z")

</div>

Can you send a custom action of transferring to the live agent? so that I can relate with my current implimentation
