<< Home | Prompting craft
Prevents AI from writing user dialogue
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | unknown |
The move
Explicitly instruct the model to stop its response immediately before the user's turn to speak.Steps
- Identify the system prompt or instruction field.
- Add the constraint to end the response before the user's turn.
- Reinforce with negative constraints if the model persists.
- Delete any existing AI-generated user dialogue to reset the context.
Prompt for your AI
Your response must end right before it's {{user}}'s turn to reply to your words.
What happened
Users struggled with AI models consistently writing dialogue for the user character during roleplays. By adding a specific constraint to the system prompt to end before the user's turn, the model stops impersonating the user. Commenters confirmed that this instruction effectively forces the AI to yield the floor.Who confirmed it
i screamed at the end of the prompt "DO NOT WRITE FOR HUMAN/{{user}}!!!!!!!!!!!" and it listenedWatch out
The model may still occasionally slip if the instruction is not reinforced or if the context window is cluttered.Give it to your agent
Read https://howtheyuse.ai/p/prevents-ai-from-writing-user-dialogue.md and help me do this.