how to write ai commands