Creative

NPC Dialogue & Choice Branch Generator

Create distinct NPC lines and branching player choices simultaneously.

Prompt · 2 variables

You are an experienced video game dialogue writer. You believe that every character must have a distinct voice so that players immediately know who is speaking without seeing their name.

The character to create is: {{NPC profession}}. The overall game atmosphere is: {{game atmosphere}}. Write the dialogue lines and player choices for when the player talks to this character in town.

Before writing the dialogue, define the character's speech habits in three lines: 2–3 frequently used words or idioms, sentence rhythm (long and descriptive vs. short and blunt), and level of formality/attitude toward the player. Then, write the dialogue strictly following these speech habits.

Follow the format shown in this example: [First Encounter] Blacksmith: "Let me see your hands first. ...Hmph. Hands that actually know how to hold a tool." ▸ Option 1 "I'd like to learn the craft." → Affinity +1, unlocks training dialogue ▸ Option 2 "Just browsing." → No reaction, can talk to NPC again later

Provide lines for five distinct situations: First Encounter / Talking Again / Quest in Progress / Quest Completed / After the Player Disappoints Them. For each situation, provide 1–2 lines of NPC dialogue, 2 player options, and a one-line consequence for each option.

Keep each dialogue line to two sentences or fewer. Ensure the two choices never lead to the exact same outcome, and include at least one situation where a choice abruptly ends the conversation. Avoid generic worldbuilding exposition; make the character speak purely about their own trade, perspective, and immediate business.

Copy, then paste here · ChatGPT and Claude open with the prompt filled in

Why it is written this way

This prompt is built from 6 blocks
Role Context +2 Task Example Format Constraints Role Material Work Material Output

Tap a block to see its paragraph

Role Role · Who answers

You are an experienced video game dialogue writer. You believe that every character must have a distinct voice so that players immediately know who is speaking without seeing their name.

See the Assign a role technique
  • Role Who answers ×1
  • Material What the AI needs to know ×2
  • Work What to do, and how ×1
  • Output What comes back, in what shape ×2

When asking an AI to write NPC dialogue without constraints, every villager sounds identical. From the blacksmith to the innkeeper, they all say: "Greetings, traveler. How may I help you?" This happens because the AI defaults to an averaged stereotype of a generic "game NPC" rather than a distinct individual.

Read the full explanation · 3 paragraphs

The Role section gives the AI a clear quality standard. The phrase "know who is speaking without seeing their name" serves as an internal evaluation rule, forcing the AI to differentiate voice styles from the start. Asking for three lines of speech habits before the dialogue serves the same purpose: once word choices, sentence rhythm, and attitude are locked in, the voice remains consistent across all five situations.

The Example block does the heaviest lifting. It demonstrates the arrow format, the single-line consequence notation, and the natural conversational cadence without requiring pages of formatting rules. Showing the pattern ensures clean, ready-to-use output that easily fits into game design spreadsheets.

The Format constraint requiring five specific scenarios prevents a common development blindspot: creators often write introductions easily but forget post-quest or disappointed states. Finally, the constraint to make at least one option simply end the dialogue prevents "fake branches" where every response unnaturally awards a reward.

Unfamiliar terms? See Aha AI: few-shot, persona

Compared with a bad example

Missing from the bad prompt: Role · Example · Format · Constraints
Bad prompt 54 chars This prompt 1332 chars Role Context Task Example Format Constraints Role · missing Example · missing Format · missing Constraints · missing
Common bad example

Write some game NPC dialogue for an innkeeper in a fantasy world.

This produces five generic lines starting with "Welcome, weary traveler!" All lines share the exact same voice, offer no player choices, and cannot be directly imported into a game dialogue tree. It lacks distinguishing character traits, meaning every NPC generated this way will sound like clones. Crucial late-state dialogue (quest completion, disappointment) is also missing, forcing you to re-prompt multiple times per character.

Variations

1

Differentiating Existing Dialogue Tones

Use this when you already have dialogue drafts but they feel too homogeneous. It pinpoints and polishes only the generic lines instead of rewriting everything.

Show prompt

Below is existing dialogue I wrote for {{NPC profession}}. Instead of rewriting everything from scratch, evaluate whether these lines sound truly distinct to this character. Identify any lines that sound generic enough for any other NPC to say, and rewrite only those lines to fit this character's unique voice. The game atmosphere is {{game atmosphere}}. Provide a one-line explanation for each revision.

2

Vendor & Functional Shop Dialogue

Functional shop dialogue is heard dozens of times, making shorter secondary barks essential to prevent player fatigue.

Show prompt

{{NPC profession}} also functions as a shopkeeper. The game atmosphere is {{game atmosphere}}. Write functional shop dialogue for the following scenarios: Purchasing an item / Not enough money / Selling items / Trying to buy an unavailable item / Closing the shop. For each scenario, provide 1 standard line and 1 shorter alternative line for when the action is repeated.

Last updated 2026-09-02 · Found a mistake? Let us know