External service in rocket chat

Description

I have an API where I have the username as a parameter and the agent should return me

I have configured rocketchat in external service

How do I send the client id so that it returns the name of the agent

Server Setup Information

  • Version of Rocket.Chat Server: 4.8
  • Operating System: Ubuntu 20.04.4
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • MongoDB Version: 4.0
  • Proxy: Nginx

Any additional Information

Hi!

As of now, this routing method will only send the department ID as querystring, like so:

GET /test?departmentId=departmentID HTTP/1.1
Host: jkweqkjhweq.requestcatcher.com
Connection: close
Accept: application/json
Accept-Encoding: gzip,deflate
Connection: close
User-Agent: RocketChat Server
X-Rocketchat-Secret-Token: token_secret

One way of accomplishing what you want is to integrate a bot with Rocket.Chat (Like Botpress or Rasa) that will have more information about the room and visitor and can implement more complex routing logic.

Let me know if this helps!

Thanks!