OpenAI's ChatGPT, released on November 30, 2022, has quickly gained a monthly active user base of 100 million in just one month, making it the fastest-growing consumer application in history. This talk will introduce the principle behind ChatGPT, its brief history of development, and the prompt engineering technology. Using this theory and framework, we will construct an automatic generation system for complex long-texts.