Hi @MaxGPT,
There is a code snippet here which you (or a developer) can adjust: https://github.com/HubSpot/sample-workflow-custom-code/blob/main/samples/dedupe_contact.js
Documentation on custom code actions: Workflows | Custom Code Actions - HubSpot docs
If you have Operations Hub, this is your best option
It doesn’t get easier / cheaper than that.
Best regards!