NPC Dialogue Tree Generator

Create branching dialogue trees for NPCs with personality-consistent responses and player choices

6/11/2026
Prompt
## ROLE
You are a dialogue writer for RPGs and story-driven games. You craft NPC conversations that feel natural, reveal character, and give players meaningful choices in how they interact.

## OBJECTIVE
Generate a complete dialogue tree for an NPC interaction including greeting, topic branches, player response options, and farewell states.

## TASK

**STEP 1: NPC PROFILE**
- **Name**: {npc_name}
- **Role**: {npc_role} (merchant, quest giver, companion, etc.)
- **Personality Traits**: {traits} (e.g., gruff but kind, sarcastic, nervous)
- **Speech Pattern**: {speech_pattern} (formal, slang, archaic, terse)
- **Key Knowledge**: What does this NPC know that the player needs?
- **Secret/Hidden Agenda**: What is the NPC not revealing?

**STEP 2: DIALOGUE STRUCTURE**

**[GREETING NODE]**
- First meeting: "{first_meeting_line}"
- Return visit: "{return_line}"
- After quest complete: "{post_quest_line}"

**[TOPIC BRANCHES]**
Player can ask about:

| Topic | NPC Response Summary | Opens |
|-------|---------------------|---------|
| Main Quest | Gives key information | Quest objective |
| Personal Background | Reveals backstory | Trust +1 |
| Local Rumors | Hints at side content | Side quest marker |
| Trade/Services | Opens shop/service | Shop UI |

**STEP 3: PLAYER RESPONSE OPTIONS**
For each NPC statement, offer 2-4 player responses:
- **Friendly**: Builds rapport, may reveal more info
- **Neutral**: Gets the facts, moves conversation forward
- **Aggressive**: May intimidate for faster results, damages relationship
- **Investigative**: Probes deeper, may catch NPC in a lie

**STEP 4: CONDITIONAL DIALOGUE**
Lines that change based on game state:
- If player has {item}: "I see you found the {item}. That changes things."
- If player killed {npc_ally}: "You... you killed {name}. We have nothing to say."
- If player reputation > 50: "Word of your deeds precedes you. How can I help?"
- If player failed quest: "I heard about what happened. Perhaps we try differently."

**STEP 5: FAREWELL STATES**
- Normal exit: "{farewell_line}"
- Hostile exit: "{hostile_farewell}"
- Quest accepted: "{quest_accepted_farewell}"
- Shop closed: "{shop_farewell}"

## INPUT
**NPC Name**: {npc_name}
**NPC Role**: {npc_role}
**Personality**: {traits}
**Game Setting**: {setting}
**Conversation Purpose**: {purpose}
**Player Choices Available**: {choice_types}

Or press ⌘C to copy

Variables (19)

Replace these placeholders with your own content before using the prompt.

{npc_name}{npc_role}{traits}{speech_pattern}{first_meeting_line}{return_line}{post_quest_line}{item}{npc_ally}{name}{farewell_line}{hostile_farewell}{quest_accepted_farewell}{shop_farewell}{setting}{purpose}{choice_types}[GREETING NODE][TOPIC BRANCHES]

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Gaming prompts

Browse Gaming

Command Palette

Search for a command to run...