AI game master design
AI NPC Prompts That Protect Secrets and Player Choice
Design an AI NPC brief that limits what a character knows, lets clues emerge through conversation, and leaves decisions and actions with the player.

A believable NPC does not know the whole plot
A player asks a palace archivist about a sealed decree. If she immediately names the hidden heir, the secret is gone before the player investigates. If she knows nothing despite logging the delivery, the conversation feels pointless. An effective AI NPC prompt gives the character enough knowledge to respond and a clear boundary around what remains hidden.
This winter-palace scene is an editorial example, not captured Playworlds output or a benchmark. Archivist Selene knows a decree arrived after midnight with a crescent wax seal and that a junior clerk carried it to the west vault. She did not open it and does not know who sent it. That limited view supports a useful answer without solving the mystery.
Write the brief around role, knowledge, and motive
A short NPC brief can identify who the speaker is, what they personally observed, what they believe but have not verified, what they want in this exchange, and which secrets are outside their knowledge. Add a style cue only when it changes the voice in a useful way. “Protective of the junior clerk” gives Selene a reason to hesitate; a long list of generic adjectives is less useful than a specific concern.
The scene brief should give the player's actual question and accepted facts. If a player shows the wax seal, Selene should react to it. If the player asks only about archive hours, she need not deliver the decree's whole history. Keep the response local to this character and moment.
A sample short prompt for the archivist
Example NPC brief: “You are Selene, archivist of the winter palace. You logged a sealed decree delivered after midnight with a crescent wax seal. A junior clerk carried it to the west vault. You did not open it and do not know its author or contents. You want to protect the clerk from another reprimand. Answer from what Selene knows. If pressed, admit uncertainty. Do not invent the decree's contents or decide the player's next action.”
Current scene: “The player shows Selene a piece of crescent-stamped wax and asks if she recognizes it. Selene has not been told where it was found.” One illustrative reply is, “I logged a seal like that last night. Where did you find yours?” It confirms a clue and opens choices without forcing an answer or revealing the decree's contents. This is a proposed writing pattern, not a deployed Playworlds prompt.
Keep player agency in the response
An NPC can offer, refuse, bargain, warn, or lie. The narrator should not quietly choose the player's feelings or actions. “You trust Selene and hand over the wax” skips the choice that makes roleplaying interactive. “Selene holds out her hand for the wax” gives the player something concrete to accept or resist. This distinction matters most when a scene turns on an uncertain choice, such as whether to expose a source or search a guarded vault.
If the interaction requires a check, resolve it before narration treats the attempt as successful. Convincing prose alone does not grant success. A strong reply acknowledges the player's method, states the visible consequence, and stops where a new decision begins.
Protect secrets without making every character vague
A knowledge boundary is not an order to stonewall. Selene may reveal the delivery time, seal, and clerk's route because she logged or observed them. She may be wrong about why the decree arrived. Distinguish observation, belief, and withheld information. Keep the hidden heir's identity outside her working context rather than relying only on “do not mention this.”
Review an NPC answer for accidental leaks through narration as well as dialogue. “Selene glances toward the hidden heir's chamber” exposes information even if her spoken line is cautious. A safer description can refer to the visible corridor to the west vault, or omit the glance altogether. Let the player earn a new clue through investigation, a successful attempt, or a later witness instead of slipping it into decorative prose.
Test the prompt with questions the player may ask
Try several turns against the same accepted scene: an open question, a direct accusation, a request to see the register, and a question Selene cannot answer. For each response, check whether she stays within her knowledge, responds to the actual approach, and leaves the next move to the player. Also test a follow-up after the player shares new information; a good boundary should allow Selene's knowledge to change when she hears a credible claim.
Record the prompt, supplied facts, and result. One compelling line does not prove an NPC will preserve secrets throughout a campaign. If Selene repeatedly guesses the heir's identity, adjust her context and knowledge fields. If she refuses every question, give her clearer observations and a motive to speak. These are proposed checks, not Playworlds test results.
A compact NPC prompt checklist
Name the NPC's role and immediate goal. List facts they observed separately from suspicions. Exclude facts they cannot know. Supply the player's exact action and any accepted outcome. Ask for an answer that creates a playable next beat without taking control of the hero. Review both dialogue and narration for leaks, then test again after new clues are shared. A brief that passes those checks can stay short without becoming generic.
Players can use the same idea from the other side of the conversation: ask a specific person about a specific event, show relevant evidence, and decide how much to reveal. In Playworlds, choose a world and use its scene to guide the next action. The roleplaying-actions guide explains how to state your intent and method while leaving the outcome open.