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 role-playing to prepare for difficult workplace conversations in a low-pressure setting.
How deep it goes
Defines rehearsal and demonstrates setup and an opening exchange, stopping short of a complete role-play.
Examples
Rehearses a mediator’s conversation with Carlos about frustration over Sofia’s questions about his work.
What you can do after
Practice performing a difficult conversation by responding to a simulated participant.

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 →

Also covered in

What to know first

Related concepts

Questions about role-playing

What is 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.

Which Manning books explain role-playing?

AI for Everyday IT and Coding with AI.

What should I know before learning role-playing?

Manning books that teach role-playing usually introduce client and language model first.

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.