Add multiple departments to Twilio Omnichannel

I’m developing a chatbot with AI and I need to redirect to certain departments depending on the flow, but I can only send it to the default department of Twilio Omnichannel.

I would like to know if it is possible to somehow direct to several departments using the extra fields of the Twilio payload?

I managed to use customFields in the extra fields but the department parameter I can’t handle after sending the request to rocketchat, does anyone have an idea how to implement multiple departments?