You can add an action from a deviation or as a loose action.
The way of doing it is the same.
Search this documentation
You can add an action from a deviation in any of the statuses:
Select the "Add action button"
When te actions is created, a notification is sent to the responsible person.