As much as many believe this wonderful work is all AI, there is some very smart human methodology using instructions and reinforcement learning behind it. While the paper for CHATGPT is not there, below is the link to the paper on InstructGPT.