Anyone mind telling me where to find a tutorial on the follow functionality?

I am running a 2-box and just want my slave to follow me -> attack when I hit attack (using keyclone this works) -> and then follow me after combat is complete.

Thanks!