Role-playing
Role-playing is a technique in which participants or systems adopt assigned roles in a simulated interaction to shape, rehearse, or examine responses and behavior.
AI for Everyday IT
Role-playing is a rehearsal technique in which participants act out a realistic interaction or scenario to prepare for or examine it.
- How it is used
- Uses rehearsed dialogue to prepare for difficult conversations and examine conflicting viewpoints.
- How deep it goes
- Explains setup, role assignment, and response practice through one workplace scenario, stopping short of broader real-time conflict analysis.
- Examples
- Demonstrates a lawyer-style rehearsal in which one person plays Carlos and another responds as a mediator.
- What you can do after
- Practice difficult conversations through assigned roles, alternative responses, and repeated preparation.
Coding with AI
A prompting method that assigns an assumed role or identity to an AI system to shape its perspective and response behavior.
- How it is used
- Shapes an AI response by assigning a specific role or persona within a broader prompt-engineering workflow.
- How deep it goes
- Defines role assignment and gives one composite prompt example, without examining model internals or evaluating role effectiveness.
- Examples
- Uses the persona of an experienced prompt engineer asked to clarify context and optimize a supplied prompt.
- What you can do after
- Apply it in prompts by assigning an appropriate role or persona to guide the AI’s perspective and response behavior.
Related concepts
- emotional intelligenceuses · Emotional intelligence is the capacity to recognize, understand, regulate, and respond appropriately to emotions in oneself and others.
- interviewerused by · An interviewer is a person who conducts an interview to assess a candidate’s suitability for a role.
- ChatGPTuses · ChatGPT is OpenAI’s conversational AI service, which lets users interact with generative AI models and related tools through natural-language prompts.
- personauses · A persona is a defined identity or representative profile characterized by traits, goals, perspectives, or behavior that guides an agent’s or user group’s representation.
- interview practiceused by · Interview practice is rehearsal of an employment interview through simulated questioning, responses, and feedback.
- conversational aiuses · Conversational AI is artificial intelligence that enables software systems to interact with users through natural-language dialogue.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

