liveBook · Manning

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.

How 2 Manning books explain it

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.

Read how AI for Everyday IT explains role-playing →

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.

Read how Coding with AI explains role-playing →

Related concepts

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.