<< Home | Prompting craft
Prevent AI from speaking for your roleplay character
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | unknown |
The move
Apply plaintext stop tokens, positive phrasing, and depth 0-1 Author's Notes to halt unwanted character control.| When this works | When it doesn't |
|---|---|
| When an LLM roleplay model repeatedly generates dialogue or actions for your character despite system prompt rules. It works when custom stop tokens and prompt placement can be modified. | When the frontend does not support custom stop tokens or depth-based prompt insertion, or when generation stops after printing the user name, requiring manual deletion of the trailing prompt. |
Key details
- [name in plaintext]
- respond exclusively as {{char}}
- wait for {{char}}'s reaction before continuing
Prompt for your AI
[System Prompt Rules]
Always phrase roleplay instructions using positive framing rather than negative constraints. Instead of 'Never speak for {{user}}', use: 'Respond exclusively as {{char}}. Leave {{user}} their autonomy, enabling them to control their character themself.'
[Author's Note Configuration]
Insert an Author's Note placed at depth 0 or depth 1 (at the very end of the prompt context, right around the message the model is responding to):
'Respond only as the character {{char}}.'
[User Prompting Strategy]
End your inputs with explicit turn-yielding phrases. Instead of 'I say X and do Y', prefer:
'I say X, do Y and wait for {{char}}'s reaction before continuing.'
[Stop Token Settings]
Do not use macro variables like {{user}} in stop string fields. Enter your exact persona name in plaintext with trailing space as a custom stop token. This forces the model to stop generation as soon as it attempts to write the user name.
Before you give me the final result, check with me:
- Verify the stop string uses exact plaintext persona name, not the {{user}} macro.
- Ensure character constraints use positive phrasing like 'respond exclusively as {{char}}'.
- Confirm the Author's Note is positioned at depth 0 or 1 at the end of context.
- Check that user turns end with waiting for {{char}}'s reaction.
What happened
A user struggling with an AI taking over their character added their plaintext username as a custom stop token, which forced the AI to halt generation right before writing user dialogue. Combining this with positive instructions like 'respond exclusively as {{char}}' and placing an Author's Note at depth 0-1 fixed the issue.Who confirmed it
Finally I added '[name in plaintext] ' as a stop token, and that makes it just say the name and stop instead of actually speaking for me.Give it to your agent
Read https://howtheyuse.ai/p/prevent-ai-from-speaking-for-the-user.md and help me do this.