The AI is pretty easy from what I've seen. I believe in another platformer tutorial what I seen was that they did:
Enemy > On Collision with "Wall" Turn Around, and as for the edges of platforms, they have a hidden object there and just turn around the enemy on collision.
I don't know how this one was done though.