State-Inference-Based Prompting for Natural Language Trading with Game NPCs

Published: 09 Jul 2025, Last Modified: 09 Jul 2025KDD 2025 Workshop on Prompt Optimization PosterEveryoneRevisionsBibTeXCC BY 4.0
Submission Type: Long
Keywords: Large Language Models (LLMs), Game AI, Natural Language Interaction, Prompt Engineering, State-Inference-Based Prompting
Abstract: Large Language Models enable dynamic game interactions but struggle with rule-governed trading systems. Current implementations suffer from rule violations, such as item hallucinations and calculation errors, that erode player trust. Here, State-Inference-Based Prompting (SIBP) enables reliable trading through autonomous dialogue state inference and context-specific rule adherence. The approach decomposes trading into six states within a unified prompt framework, implementing context-aware item referencing and placeholder-based price calculations. Evaluation across 100 trading dialogues demonstrates >97% state compliance, >95% referencing accuracy, and 99.7% calculation precision. SIBP maintains computational efficiency while outperforming baseline approaches, establishing a practical foundation for trustworthy NPC interactions in commercial games.
Supplementary Material: pdf
Submission Number: 5
Loading