how do I set boolean on ( NPC) anim blueprint with menu widget?

There are two key things I need to find out how to do. I want to click buttons on a 3d menu widget and have it play animations for a Non Player Character. I’ve been setting the character up with a State machine in anim blueprint with boolean variables to trigger the animations.

But I can’t figure out how to connect a in level 3d menu widget button up to set the booleon value when clicked.

Can anyone help?

note that I do not have an AI blueprint for this character. It just needs to idle until someone clicks a button, then do an action and idle again and so on.