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

I have tried in unattended also but im getting the error of UiPath assistant.


This is my catch flow