It seems to me that the way to effectively work with ChatGPT is to guide the AI to progressively discover a solution. That is, you nudge the AI to generate text in a certain form and that form helps the AI in its subsequent text generation.