AI companion prompt engineering: 15 tricks that work across every platform
The difference between a flat AI conversation and one that feels genuinely alive usually comes down to fifteen specific techniques that most users never discover.
May 22, 2026 · 10 min read
Most people interact with AI companions the way they'd text a friend: short messages, casual phrasing, minimal direction. That works for basic conversation. It fails spectacularly when you want the AI to maintain a specific personality, remember emotional context, pace a scene properly, or produce responses that feel like they come from a real character rather than a language model trying to please you.
The techniques here work across CrushOn, SpicyChat, Candy AI, Dream Companion, Kindroid, Janitor AI, GirlfriendGPT, and every other major platform. They're not platform-specific tricks. They're patterns for communicating with language models in ways that produce consistently better output, adapted specifically for the companion context.
The foundation: how companion AI actually reads your messages
Before the tricks, the mechanism. Every message you send gets processed alongside the system prompt (the character card), the conversation history (as much as the context window holds), and any platform-specific instructions. The AI generates its response by predicting what the character you described would say next, given everything in that context.
This means three things that shape every technique below:
The character card matters more than any individual message. A well-constructed character card makes every conversation better. A weak one makes every trick below less effective.
Recent messages carry more weight than older ones. The AI pays more attention to the last 5-10 messages than to messages from 50 turns ago. This is why characters "forget" things and why periodic reinforcement works.
The AI mirrors your energy. Short, casual messages get short, casual responses. Detailed, atmospheric messages get detailed, atmospheric responses. The length and style of your input directly shapes the length and style of the output.
The 15 tricks
The narrator hack
Works on: All platforms
Instead of writing only as yourself, write in third person as a narrator describing the scene. This gives the AI explicit permission to write atmospherically rather than just responding in dialogue.
Instead of:
"I walk into the room and look at you"
Try:
He pushes the door open slowly, letting the hallway light cut across the darkened room. His eyes find her silhouette by the window before she turns.
The asterisk convention signals narrative prose. Most platforms recognize it. The AI responds in kind, matching the descriptive style and atmospheric detail you set.
Temperature manipulation through word choice
Works on: All platforms
You can't adjust model temperature on most platforms, but you can influence the same effect through vocabulary. Abstract, poetic language produces more creative, unpredictable responses. Concrete, specific language produces more grounded, consistent responses.
For more creative/unpredictable:
"There's something in the way the shadows move tonight. Tell me what you're afraid of."
For more grounded/consistent:
"We're sitting in your kitchen. It's 11 PM. The dishes are still in the sink. What happened today?"
The memory anchor
Works best on: Dream Companion, Kindroid, Nomi
When something important happens in conversation that you want the AI to remember, state it explicitly as a fact rather than letting it exist only in the narrative flow. This plants it in the context in a form the model is more likely to carry forward.
After an important moment:
"(This is an important moment for us. From now on, this is the night we first said 'I love you.' Remember it.)"
Parenthetical out-of-character instructions work on most platforms. The model reads them as directives rather than dialogue. On platforms with dedicated memory systems (Dream Companion's Persona Cards, Kindroid's Codex), you can also log important moments directly into the memory system. The memory tricks guide covers twelve variations of this technique.
The scene-setting preamble
Works on: All platforms
Before starting a new scene or shifting the conversation's direction, send a short environmental description that sets the stage. This gives the AI concrete sensory details to work with rather than generating them from nothing.
"(Scene: Her apartment, late evening. Rain against the windows. A half-finished glass of wine on the coffee table. She's been waiting for him to come back from a work trip.)"
The AI uses every detail you provide. "Rain against the windows" gives it sound to reference. "Half-finished wine" gives it a prop. "Waiting" gives the character an emotional state to inhabit. The more specific your scene-setting, the more textured the AI's response.
Voice consistency correction
Works on: All platforms
When the AI's character voice drifts (the sarcastic character suddenly becomes earnest, the shy character becomes bold), correct it in-character rather than breaking the scene.
Instead of:
"You're being too nice, stay in character"
Try:
"He raises an eyebrow. That's surprisingly sweet coming from you. What happened to the girl who told me to go to hell last Tuesday?"
The in-character correction reminds the model of the character's established personality within the narrative context, which is more effective than an out-of-character instruction for most models.
The sensory anchor
Works on: All platforms
Include one specific sensory detail in every message: a sound, a smell, a texture, a temperature. This forces the AI to write in a physical, embodied way rather than retreating into abstract emotional language. "The coffee is getting cold" does more for scene grounding than "I feel nervous."
The pacing brake
Works on: All platforms
AI companions tend to escalate too quickly, jumping from casual conversation to intense emotional or physical territory in three messages. You can control pacing by explicitly describing the passage of time and by asking questions that require the character to slow down and think.
"An hour passes. They've talked about everything except what they're both thinking about. The rain hasn't stopped. So what did you actually do today? The boring version."
The character contradiction
Works on: All platforms
Give your character card one internal contradiction: confident but insecure about one specific thing. Warm but avoidant about one specific topic. Brave but afraid of one specific scenario. Contradictions make characters feel real because they give the AI two competing behavioral directives to resolve in each response, producing more varied and interesting output than a one-dimensional personality.
The recap prompt
Works best on: Platforms with shorter context windows
On platforms with short memory (SpicyChat's ~4K context), periodically send a recap of the conversation so far. This refreshes the model's context with the important details that would otherwise scroll out of the window.
"(Quick recap of where we are: We met at the bookstore three weeks ago. You recommended Murakami. We've been on two dates. You told me about your sister last time. Tonight is the first time I'm at your place.)"
The emotional permission slip
Works on: All platforms
AI companions default to being agreeable and emotionally available. To get more realistic emotional range, explicitly give the character permission to be difficult. Add to your character card: "She doesn't always agree. She has bad days. She sometimes says the wrong thing and has to apologize later." This produces conversations with texture that pure agreeableness can't achieve.
The negative prompt in conversation
Works on: All platforms
Image generation uses negative prompts to exclude unwanted elements. The same principle works in conversation. Tell the AI what the character does NOT do.
"(Character note: She never says 'I understand how you feel.' She never uses therapy language. She shows empathy through action, not through statements about empathy.)"
The speech pattern fingerprint
Works on: All platforms
In your character card, include 3-5 specific speech patterns the character uses. A favorite word. A verbal tic. A way of starting sentences. A type of joke they make. "She starts half her sentences with 'Look,' and uses 'wildly' as her go-to intensifier" gives the model a concrete voice to inhabit. Generic personality traits produce generic dialogue. Specific speech habits produce distinctive voices.
The world-building drip
Works on: All platforms
Rather than front-loading your character card with pages of world-building, introduce setting details gradually through conversation. Mention the bar they always go to. Reference a mutual friend by name. Describe the view from her apartment. Each detail becomes a shared reference point that the AI can call back to in future messages, building the inside joke patterns that make conversations feel like they have history.
The response format directive
Works on: All platforms
You can explicitly tell the AI how to structure its responses. This is the most underused technique in companion AI.
"(When you respond, include her internal thoughts in italics, her spoken dialogue in quotes, and her physical actions in regular text. Keep responses between 150-250 words.)"
Response length control alone transforms the experience. Without it, AI companions tend toward either curt responses or wall-of-text paragraphs depending on the model. Specifying a word range keeps responses consistently readable.
The regenerate-and-pick strategy
Works on: Platforms with regeneration (most of them)
When the AI produces a mediocre response, don't edit your message and resend. Use the regenerate button. Language models are probabilistic, and the same input can produce substantially different outputs on regeneration. Sometimes the third or fourth regeneration hits exactly the tone and content you wanted. This costs nothing on most platforms (regenerations don't count against message limits) and is the fastest way to get a specific response quality without rewriting your own prompt.
Stacking the tricks
These techniques compound. A message that uses the narrator hack (#1), includes a sensory anchor (#6), sets a scene (#4), and controls pacing (#7) produces dramatically better output than a message that uses none of them. The character card techniques (#8, #11, #12) work silently in the background making every conversation better regardless of what you type in individual messages.
Start with the character card techniques. Then add the narrator hack and scene-setting to your messages. The rest layer on as they become relevant to what you're doing. The NSFW character card templates and the conversation starters both incorporate several of these techniques already, and seeing them applied gives a clearer sense of how they work in practice than the descriptions alone.
The underlying mechanics that make these techniques work are documented in the Anthropic prompt engineering guide and the SillyTavern character card specification, both of which informed how companion platforms structure their character definition systems. Understanding the model layer gives you an edge that most users never develop.