Understanding the Workato Connector SDK Copilot Traffic

Ferry Djaja
5 min readApr 12, 2024

In this blog, I would like to explain how you can get the most of the Workato connector copilot feature by understanding its traffic and leverage it for your own productivity purpose. We will monitor the traffic from HTTP request/response and WebSocket.

Here is the outline that we are going to do in Connector Copilot SDK.

  1. Init Chat.
  2. Clear current conversation.
  3. Reset API Documentation URL
  4. Reply with Documentation URL for example NA (which is doesn’t exist).
  5. Reply with Basic type of authentication
  6. Ask Copilot with the question you want to ask
  7. Ask again (just to ensure you got the expected answer)

Let’s start with “Init Chat”.

GET https://app.workato.com/web_api/custom_adapters/536967/chat

Response:
{
"data": {
"subscribe_url": "wss://rtc.marie.awsprod.workato.com/notifications/custom_adapter_chat/536967-2693225?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJzdWIiLCJleHAiOjE3MTI5NzI5MDYsIm5iZiI6MTcxMjk2OTMwNiwic3ViIjoiL25vdGlmaWNhdGlvbnMvY3VzdG9tX2FkYXB0ZXJfY2hhdC81MzY5NjctMjY5MzIyNSJ9.lY5-W5c3GQ7OgeLOg3OSLDSO2DY9tb2Pfr9EYVVpcTQ",
"state": {
"controls": [
{
"type": "prompt",
"text": "Provide API documentation URL",
"action": "interact",
"icon": null,
"disabled": null
}
],
"name"…

--

--