I have an application where I want to place the LiveChat Widget.
I want to use “external service” an trigger “Voxtron”.
“external service” is required to respond with a username, which I dont have at this point.
I will ask Voxtron to create a new contact … and some time later asynchronosly I can retrieve the userId. How can I use this with “external service”?
whats the timeout of “external service” … can this busy wait for minutes?
can I assign the chat to a dummy user
and via some REST API calll (which one?) reassign the LiveChat to the user which has been selected by voxtron?
I will activate: Omnichannel CRM Integration - “on new chat”
h…ttps://github.com/RocketChat/Rocket.Chat/blob/4b408c2ddea118fad49fe1e5949f79154ad0c1b7/app/livechat/server/hooks/sendToCRM.js#L124
the request body seems to contain the roomId
h…ttps://github.com/RocketChat/Rocket.Chat/blob/2f405cb944aa6c86eba19bbe96a491f2dafd5f93/app/livechat/server/lib/Livechat.js#L822
in the “CRM”
I can ask Voxtron to create a new contact
In the Voxtron client, when the contact arrives asynchronously I finally know the agent-username which has been selected by voxton
How can I convert agent-username to userId?
I have found this undocumented query param: HTTP GET /api/v1/livechat/users/agent?text=someUsername
the response contains the userId