<< Home | Prompting craft
Stop AI from speaking or writing as {{user}}
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | unknown |
The move
Remove user lines from character examples, set strict {{char}}-only prompt rules, configure custom stopping strings, and edit out unauthorized user dialogue.| When this works | When it doesn't |
|---|---|
| When an AI roleplay model speaks for your character or hijacks your lines and actions during a session. | When using models that ignore custom stopping strings, or when an AI occasionally overrides system instructions since nothing works 100% of the time. |
Key details
- Only respond as {{char}}, no other characters.
- NEVER write as {{user}}. If {{user}} is needed to respond, end your response.
- ["\n*{{user}}", "\n{{user}}", "{{user}}:"]
- Always add character's name to the prompt
Prompt for your AI
System Prompt:
You're {{char}} in this fictional never-ending roleplay with {{user}}. Only describe {{char}}. Never describe or speak as {{user}}.
Author's Note:
Only respond as {{char}}, no other characters.
All descriptions should be from {{char}}'s point of view.
Always write in third person.
NEVER write as {{user}}.
If {{user}} is needed to respond, end your response.
Character Examples Formatting Rules:
Check the character's examples and remove any lines from {{user}}. Ensure examples only contain dialogue and actions from {{char}}.
Custom Stopping Strings Configuration:
Add custom stop strings: ["\n*{{user}}", "\n{{user}}", "{{user}}:"] to forcefully stop the response if the AI attempts to start a line with {{user}}.
Advanced Formatting Rules:
Enable 'Always add character's name to the prompt' under Advanced Formatting to prevent excluding the character name from context.
Maintenance Rule:
Always edit previous posts if the AI speaks for {{user}}. Remove dialogue or actions attributed to {{user}} so the model does not learn that it is okay.
Before you give me the final result, check with me:
- Verify all character examples contain zero lines or dialogue from {{user}}.
- Check that custom stopping strings include ["\n*{{user}}", "\n{{user}}", "{{user}}:"]
- Ensure 'Always add character's name to the prompt' is enabled in settings.
- Confirm previous bot outputs were edited to delete unauthorized {{user}} dialogue.
What happened
A user needed to stop roleplay bots from generating lines for {{user}}. By stripping {{user}} lines from character examples, adding strict Author's Note rules, setting stop strings like '{{user}}:', and editing past turns, the AI learned to only output {{char}}.Who confirmed it
I get most responses as just the AI's character by doing the following.Give it to your agent
Read https://howtheyuse.ai/p/ai-stops-writing-dialogue-or-actions-for-user.md and help me do this.