I think you could set a procedure in the tick update trigger of the golem, where you copy the "check for block in a 6x6x6 area" from the procedure template list, making the block it would check for the button. I think you would need to specify for each type of button, so just add OR clauses with for each type of button in that part.
Then, if the variable found is true, use the "Make event/target entity find a path and move towards x y z" but change that x y z for the variables sx sy and sz respectively. Following that "simulate right click on block" again changing the sx sy and sz.
Now, I don't know if this makes the button actually being pressed, you will have to test that, and if it doesn't, make the effect of pushing that button manually.
I think you could set a procedure in the tick update trigger of the golem, where you copy the "check for block in a 6x6x6 area" from the procedure template list, making the block it would check for the button. I think you would need to specify for each type of button, so just add OR clauses with for each type of button in that part.
Then, if the variable found is true, use the "Make event/target entity find a path and move towards x y z" but change that x y z for the variables sx sy and sz respectively. Following that "simulate right click on block" again changing the sx sy and sz.
Now, I don't know if this makes the button actually being pressed, you will have to test that, and if it doesn't, make the effect of pushing that button manually.
Thank you I will try it