Skip to content
Heartie

Guide

Character relationship dynamics that keep an AI chat alive for weeks

Good character relationship dynamics give both sides something the other wants and a reason not to simply hand it over. This guide shows how to choose a dynamic, write it into a persona, and let it shift as a long chat unfolds.

Published Fact-checked

Ask people why they keep returning to one character and not another, and they rarely mention the backstory. They talk about the relationship: the rival who grudgingly respects them, the mentor who is clearly hiding something, the old friend who still knows exactly how to needle them. A character in isolation is a description. A character in relation to you is a story.

This guide treats the relationship as its own design problem, separate from personality. You can have a brilliant, well-voiced character who still goes flat after twenty messages because the relationship has nowhere to go.

Pick the dynamic before the personality

Start by choosing the shape of the relationship, then build the character to fit it. A few dynamics that reliably sustain long chats:

DynamicWhat each side hasWhere the friction comes from
Mentor and apprenticeSkill vs. fresh eyesThe mentor’s methods are outdated, or secret
RivalsEqual abilityOnly one of you can win the thing you both want
Reluctant alliesDifferent resourcesYou don’t trust each other’s motives
Old friends reunitedShared historySomething happened that neither talks about
Protector and chargeStrength vs. informationThe “charge” knows more than they let on
Strangers with a debtA favour owedRepaying it costs more than expected

Heartie’s own catalogue leans on these. Kieran Valentine is a trickster from the mist-covered Lower City, tagged enemies-to-lovers, so every exchange starts from suspicion. Mia, the junior concept artist, works the other way: a warm, eager newcomer at your studio, where the tension is gentle and mostly about her trying to impress you. Same platform, very different engines.

Give both sides leverage

The most common reason a relationship goes flat is that it’s lopsided. If the character has all the power, the user just follows. If the user has all of it, the character becomes a yes-machine. Write down what each side holds:

  • What the character has that the user wants: information, a skill, a key, a way out, approval.
  • What the user has that the character wants: a secret they witnessed, a talent, a connection, simple company.
  • Why neither just hands it over: pride, a past betrayal, an order from someone else, fear of what happens next.

Put all three into the character setting field. Characters generally behave the way they’re described, so if you never state what the character wants from the user, the model won’t invent a reason to want it.

Leverage, written into a persona

Brother Aldous runs the abbey archive and is the only person who can read the old cipher. He needs the user, a travelling scribe, to copy a damaged book before the abbot burns it on Sunday. He won’t explain why the book matters, because the last person he told is the reason the abbot found out.

Write the relationship as it stands today

A persona that says “they are rivals” is a label. A persona that says how the rivalry feels right now gives the model something to perform. Cover three points in plain sentences:

  1. History. How they met, and one specific event that defined the relationship.
  2. Current temperature. Warm, cool, strained, wary, playful. Pick one.
  3. Habits. How the character addresses the user, what they always do when the user walks in, the joke they never let go of.

Then show it in the opening lines. The first message is the clearest signal the AI gets about the relationship, because it’s both read by the user and passed to the model with the character’s setting. A rival who opens with “Oh. You again.” sets a temperature that a paragraph of description can’t match.

Who you are to them

Characters address you through your persona: the name and gender you set in chat settings, which carry across every chat. Members can also write a short description of themselves. Write the character’s side of the relationship so it works whatever name the user brings.

Define what can change, and what can’t

Long chats need relationships that move. But if everything can change, nothing feels earned. Split the relationship into fixed and movable parts:

  • Fixed: the shared history, the character’s core loyalty, the thing they will never do.
  • Movable: trust, how much they reveal, whether they joke with the user, whether they ask for help.

Then write the conditions for movement into the setting as cause and effect, not as a script:

Conditions for change

Aldous trusts the user a little more each time they keep a secret. If the user ever lies to him about the book, he goes cold and formal until they make it right. Once he trusts them fully, he admits why the cipher frightens him.

This gives the AI permission to let the relationship warm or cool based on what the user actually does, which is what makes the change feel earned.

Let memory carry the relationship forward

A relationship lives in its history, and history is exactly what drops out of a long conversation first. Heartie handles this in layers, explained on the long-term memory page. The recent conversation goes along with every reply, and as the chat grows, Heartie periodically writes a short summary of what’s happened between you and a note on where the story is heading.

For the moments that should never be summarised away, members can use Permanent memory in the chat’s Extra Settings. This is per character and stays exactly as typed. It’s the right home for relationship milestones:

  • “We made a truce on the abbey roof after the fire.”
  • “He calls me ‘scribe’ and has never used my name.”
  • “I promised never to read the last page.”

Short, factual lines work best. Leave the plot instructions in the character setting and use permanent memory for what has already happened between you.

Test the relationship from both ends

Start a fresh chat with your character and play two versions of the user. First, play someone who goes along with everything: does the character still create friction, or does it just agree? Then play someone who pushes back hard: does the character hold its ground, or collapse into apology?

If the agreeable test goes flat, the character needs a stronger want of its own. If the pushback test collapses, the persona needs a line about what the character won’t give up. Edit the setting from your profile, tap Restart in the chat toolbox to start again from the opening scene, and repeat both tests.

The goal isn’t a character who wins every exchange. It’s one who makes every exchange cost something, so that when trust finally does arrive, it means something.