Also to add:
Not only does it run around erratically sometimes, but there are other times the bot will stay completely still while taking damage from pest monsters (even with auto-retaliate on). Usually it stands until the character dies, and then the bot seemingly refreshes and starts up again...