How to add the take screenshot in the workflow if ay error or exception occurs

How to add the take screenshot xaml (Integration) in current worflow