How can I add the new animation I made and enable it using an Input under the project settings?

So, I created a different animation by editing animation layers in UE and I want to use it in the thirdpersonBP.
I added an input for enabling the animation when the assigned input is pressed.
but I am having troubles with the programming side in UE.

anyone who can point me at the right direction? if there is a tutorial about this.
Thank you.