Example of setting custom worker attribute in Twilio Flex
if (Flex.Manager.workerClient.attributes){ let preAttributes = manager.workerClient.attributes; preAttributes.test1 = "value1"; preAttributes.test2 = "value2"; Flex.Manager.workerClient.setAttributes(preAttributes); }