Thread events

Event

thread.status.updated

Trigger

Occurs when the status of a conversation thread changes.

data.object contains a thread object.

{
  "version": "0",
  "id": "5US7xdqKHalKbU8CXjhO",
  "type": "conversation.status.updated",
  "agentId": "1R7kHmQ6moHuhpaddTf9",
  "description": "A conversation status was updated.",
  "createdAt": "024-08-20T15:52:00Z",
  "data": {
    "object": {
      "id": "2IvanDv3RSQsESRqVKeL",
      "agentId": "1R7kHmQ6moHuhpaddTf9",
      "customerId": "N7adUrMXvVnH5ZN7cDTK",
      "from": {
        "channel": "facebook",
        "id": "25950932307884313"
      },
      "status": "active",
      "createdAt": "2024-08-20T15:50:00Z",
      "updatedAt": "2024-08-20T15:50:00Z",
      "metadata": {
        "conversation": [
          {
            "role": "user",
            "content": "Hello, I need help with my order",
            "media": [],
            "createdAt": "2024-08-20T15:51:00Z"
          }
        ]
      },
      "expanded": {
        "customer": {
          "id": "N7adUrMXvVnH5ZN7cDTK",
          "firstName": "John Doe",
          "email": "[email protected]"
        },
        "opportunities": [
          {
            "id": "OP12345",
            "name": "Order Support",
            "customerId": "N7adUrMXvVnH5ZN7cDTK",
            "stageId": "K1mb7xsIsx0qnfyxFAvo",
            "pipelineId": "g3g7oZwXq7Gc9e5rwO3Y"
          }
        ]
      }
    }
  }
}

Last updated