Transfer to livechat


#1

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


#2

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
-d ‘{“rid”: message.rid, “token”: message.token, “department”: “ID-of-the-department-your-agents-are”}’