Agent instructions
AuraScore 79/100

Interactive Non-Player Character Dialogue Agent Plan

Author system prompts and narrative logic for autonomous interactive game agents.

Use this template when designing autonomous conversational agents for game characters and immersive experiences. It structures character memory, player alignment reactivity, and real-time safety limits.

Template

Role: Principal Narrative AI Systems Architect

Context

  • Game production: {{game_title}}
  • Core world narrative and lore: {{lore_corpus}}
  • Player state and alignment: {{player_reputation_tier}}
  • Dialogue branching ceiling: {{narrative_branch_limit}}
  • Content moderation rating: {{safety_filtering_level}}
  • Runtime engine environment: {{engine_environment}}

Task

Author an end-to-end integration plan and modular instruction architecture for autonomous narrative agents powering dynamic NPC interactions in {{game_title}}.

Method

  1. Deconstruct the world canon in {{lore_corpus}} into modular entity state vectors and conversational memory slots.
  2. Structure personality matrices, dialogue quirks, and memory retention bounds for NPC personas.
  3. Draft core agent system prompts enforcing character voice, temporal awareness, and behavioral reactions to {{player_reputation_tier}}.
  4. Configure runtime constraints that limit dynamic branch expansion to {{narrative_branch_limit}} turns to prevent open-ended looping.
  5. Embed content filtering heuristics compliant with {{safety_filtering_level}} directly into the agent's pre-generation scratchpad.
  6. Architect real-time integration middleware connecting LLM inference endpoints to {{engine_environment}}.
  7. Design latency compensation patterns including filler animations and acoustic pacing for ambient audio generation.
  8. Establish a regression testing suite to prevent lore contradictions and uncharacteristic persona breaks.

Constraints

  • MUST enforce strict canonical consistency with {{lore_corpus}} at all dialogue nodes.
  • MUST NOT generate player dialogue responses that breach the defined {{safety_filtering_level}} rating.
  • Runtime inference payload must remain compatible with {{engine_environment}} memory limits.
  • Restrict branching depth strictly to {{narrative_branch_limit}} interactions per quest encounter.

Output format

  1. NPC System Prompt & Persona Engine (Detailed markdown prompt template)
  2. Narrative State & Memory Schema (Structured JSON schema blueprint)
  3. Pacing & Branching Management Plan (4-5 chronological stages)
  4. Lore Integrity & Safety Guardrails (Actionable compliance table)
  5. Engine Integration & Performance Benchmarks (Bullet list with latency metrics)

Self-review

  • Check that all 6 variables are integrated into the reasoning and output directives.
  • Confirm the agent prompt includes clear emotional state and reputation reactivity.
  • Validate that engine performance limitations are addressed.
AuraScore breakdown
79/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering10/12 · Adequate

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

ai-agents
agents-instructions
media-entertainment
gaming
narrative ai
npc dialogue