# Transfer to livechat

**URL:** <https://forums.rocket.chat/t/transfer-to-livechat/2976>\
**Category:** Community Support\
**Created:** [January 23, 2019, 10:49pm UTC](https://forums.rocket.chat/t/transfer-to-livechat/2976 "2019-01-23T22:49:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Facruz](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@Facruz](https://forums.rocket.chat/u/Facruz)\
**Post date:** [January 23, 2019, 10:49pm UTC](https://forums.rocket.chat/t/transfer-to-livechat/2976/1 "2019-01-23T22:49:15Z")

</div>

Hello everyone, how can I do the transfer of my bot to livechat? I am using C #

---

<div class="post-metadata">

**Author:** ![juliomac](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/juliomac/32/865_2.png) [@juliomac](https://forums.rocket.chat/u/juliomac)\
**Post date:** [February 12, 2019, 6:51pm UTC](https://forums.rocket.chat/t/transfer-to-livechat/2976/2 "2019-02-12T18:51:40Z")

</div>

Don’t know about C#. But here is a curl example that works pretty fine.

First you have to create a departments. One for where your Agents resides and another exclusively for where your bot is connected to.

Then use this code:  
curl -X POST   
-H “Content-type:application/json”   
[http://localhost:4000/api/v1/livechat/room.transfer](http://localhost:4000/api/v1/livechat/room.transfer)   
-d ‘{“rid”: message.rid, “token”: message.token, “department”: “ID-of-the-department-your-agents-are”}’
