You are looking for the Behaviour Tree and all that follows. Its quite a long subject.
Here is a tutorial serie (not mine) : Unreal Engine 4 Tutorial - AI - Part 1 The Behaviour Tree - YouTube
Alternatively you can look up “Unreal Engine AI behaviour tree” and so on on google.
In the behaviour tree there are several nodes, including sequence nodes you can configure to play different kind of actions in a preset order and according to various conditions etc. It will do the things you need.
Here is some official doc too :
Good luck and good learning to you!