Introduction
Building robust, goal-oriented dialogue systems for complex business processes—such as insurance claims or technical support—remains a significant engineering challenge. Traditional approaches often force developers to choose between manually authored dialogue trees, which are fragile and difficult to scale, and end-to-end machine learning models, which lack the transparency and reliability required for enterprise applications. This paper introduces a paradigm shift: treating dialogue design as an automated planning problem.
The Scalability-Verifiability Gap
In current industry frameworks like IBM Watson Assistant or Google Dialogflow, designers must explicitly map every conversational path. As the number of variables and potential user intents grows, these manual graphs become unmanageable. Conversely, while large language models offer fluid interaction, they are prone to "hallucinations" and cannot guarantee adherence to strict business logic. The authors propose bridging this gap using Declarative Design of Dialogue Agents (D3WA), a system that allows for the power of complex interaction patterns without the manual labor of drawing every edge in a graph.
Methods: Declarative Modeling and FOND Planning
The core innovation of D3WA is the separation of what the bot can do from how the conversation flows. Instead of drawing edges, designers define:
- Variables: Representing the state of the world (e.g.,
oil_level,clutch_status). - Actions: Dialogue or system tasks with specific Needs (preconditions) and Outcomes (non-deterministic effects).
To handle the inherent unpredictability of human responses, the system employs Fully Observable Non-Deterministic (FOND) planning. This technique generates a "contingent plan"—a strategy that accounts for every possible outcome of an action. The high-level design is translated into Planning Domain Definition Language (PDDL) and executed by the Hovor engine, which manages the dialogue state and processes action effects using a novel Parallel Nested Determination algorithm. This algorithm processes action effects as "and-or" trees, allowing independent parts of a bot's reasoning to run in parallel and skip irrelevant logic branches.
Key Results and Insights
The system was evaluated across domains like Car Inspection and Credit Card Recommendation. The results highlight a dramatic increase in efficiency and scalability:
- Exponential Scale-up: A simple specification with only 7 actions can be automatically compiled into a robust dialogue graph containing 63 nodes and 272 edges.
- Scalability Performance: In the Credit Card domain, adding just three new options caused the generated strategy to jump from 36 to 482 nodes. While manual mapping would be a significant undertaking, the planner generated this complex logic in under one second (0.963s).
- Execution Efficiency: Through 100,000 simulations, the authors demonstrated that their nested determination algorithm significantly reduces latency by intelligently skipping irrelevant logic branches based on user input, outperforming sequential or naive parallel baselines.
Conclusion and Future Work
By moving from procedural trees to declarative models, D3WA enables the creation of dialogue agents that are both sophisticated and verifiable. Future research aims to address the "fairness assumption" by modeling frustrated user behavior and integrating probabilistic planning to optimize for the most efficient paths to goal completion. While bootstrapping from conversation logs shows promise for identifying candidate actions, human expertise remains central to defining the underlying world logic and variable interactions.
Summary updated