How to take webservice connector operational rule response in external rule library

We have a web service application that sends emails based on predefined rules executed before and after certain operations, depending on specific conditions. Now, we want to reuse the email templates and data used in these operation rules within the “leaver” email template.

What would be the best way to pass the email content or response data generated by the operation rules to the leaver rule’s library method, where the logic for sending the leaver email is implemented?