For the free roaming AI, you could store a range of where it can move, eg max x, min x, max y, min y, then use the pathfinding behaviour, select a random x and y coordinate within that range and have the character move to it with pathfinding. Once they have reached it, move to another random point, repeat. This may not be exactly what you're looking for, but it may be a start.