How to optimize spaces with MS AI and OpenAI