This prompt effectively generates a comprehensive language drill by employing several targeted prompt engineering techniques. Role priming establishes the model as a "Language learning content creator specializing in HSK 4 Mandarin," immediately setting the appropriate expertise and tone for content generation, ensuring the vocabulary and grammar align with the HSK 4 syllabus.
Explicit constraints are crucial here. Specifying a 90-second dialogue, 3-5 gap-fill blanks, 3-5 tone-check words, and a 2-3 sentence production task forces the model to deliver a specific, actionable, and balanced exercise. Without these numerical and qualitative boundaries, the output could be too short, too long, or lack key components. The constraint around a {{topic}} also allows for easy customization and repeated use.
Furthermore, the detailed structured output definition, outlining every heading, subheading, and content type (e.g., Simplified Chinese & Pinyin for dialogue, pinyin with tone marks for tone check), guides the model to produce a perfectly formatted, ready-to-use lesson. This prevents the model from improvising the structure, which often leads to inconsistent or unusable outputs. Finally, the multi-stage task breakdown within the prompt (dialogue, gap-fill, tone check, production question) ensures that all required components are addressed, creating an integrated learning experience that covers listening comprehension, pronunciation, and active spoken production.