How to close the modal after the agent finish using it?


After our agent finished to use this modal:

I want to close it for them (without them to click outside the modal).

How I’m doing that?

Just for example, after I choose Safe Reply the modal is closed. This is what I want to do in my app.