Math / BP driven snake necked biped character?

So what I’m basically trying to achieve is to have an existing biped character and it’s animation content but then be able to spawn a separate “snake head” BP socketed onto the neck of the character and have it driven by math to do things like stay upright, sway, and look at objects regardless of what the body is doing. Does that make sense? Would it be easier to handle all of that in just the animation content with special IK’s or is my theoretical math / BP solution a viable one? Thanks for any help. Just looking for good suggestions on how to tackle this.