As Vaun suggested, this can be done with the event triggers.
Here are some links to get you started:
https://developer.genesys.cloud/platform/process-automation/
https://help.mypurecloud.com/articles/create-a-trigger/
https://developer.genesys.cloud/notificationsalerts/notifications/available-topics#v2-detail-events-conversation--id--customer-end
https://developer.genesys.cloud/notificationsalerts/notifications/available-topics#v2-detail-events-conversation--id--acd-end
The customer.end event Vaun mentioned will trigger whenever the customer disconnects, you could set the filter for for direction and the Disconnect Type
But if they hang up while speaking to an agent it will also trigger, so then you would need to handle that separately in the workflow logic. You will like need some additional data actions to get further information to make a decision.
Alternatively, use event acd.end and filter by acdOutcome == "ABANDON", you can still filter by other items, media direction etc to get exactly what you are after.
You should be able to get the Queue and most of the details you need straight from the results.
Workflows doesn't have a create callback action so you will need to do that through a DataAction. (https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-conversations-callbacks or as part of the existing conversation https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-conversations-calls--conversationId-)
Hopefully that gets you started
------------------------------
Anton Vroon
------------------------------