Role-playing assigns a specific role or persona to an AI system, shaping the perspective and behavior it should use when responding. It functions as one prompt-engineering technique alongside clear objectives, contextual clues, examples, task decomposition, and format specifications. section 9.3.1
Assigning a prompt-engineering role
A prompt can begin: “Act as a highly experienced prompt engineer with expertise in optimizing prompts for maximum clarity, relevance, and output quality.” The role is strengthened by requesting targeted clarifying questions before producing an optimized prompt. section 9.3.1

