How to get horizontal and vertical for ai blend space???

I want to use blend space for AI animation.
but i`m stuck in how to get ai horizontal and vertical.
when i work on player, i can get horizontal and vertical from player input.
But in ai, how???
pls tell me how do it.