Optimizing AI-Generated Content for Search Engines