Prompt engineering is a technique in artificial intelligence to get AI models like ChatGPT to respond correctly to our needs. The 5W1H framework can be used to get good results from ChatGPT by structuring prompts around what, who, why, where, which, and how. Prompts should provide context on what is expected from the AI, who the context is for, why the generated content is needed, where it will be used, which additional information is required, and how the output should be formatted. Well-structured prompts using this framework can elicit high-quality responses from ChatGPT.