Thanks to this action you will unsubscribe the contact, meaning it will change its status from opt-in to opt-out. Since then the contact will cease to receive messages generated by the system.
Go to AUTOMATION PROCESSES => WORKFLOW
From the list of the elements in Workflow choose Action => Opt out
After the selection, connect the action with an event by means of an arrow.