Hi Daniel,
In this case, you can remove the agent's transfer permissions and handle the transfer through the script using a Data Action. This way, the transfer option will no longer be available to the agent, and any transfer will have to follow the configuration defined in the script.
Within the script, you can create a dropdown containing the queue names and IDs you want to allow for transfers, and then call the API:
/api/v2/conversations/${input.conversationId}/participants/${input.participantId}/replace/queue
to perform the transfer.
------------------------------
Elisson Fernandes
------------------------------