Skip to main content
QUICK REVIEW

[Paper Review] dFlow: A Domain Specific Language for the Rapid Development of open-source Virtual Assistants

Nikolaos Malamas, Konstantinos Panayiotou|arXiv (Cornell University)|Oct 3, 2023
AI in Service InteractionsComputer Science5 citations
TL;DR

dFlow is a domain-specific language (DSL) that enables low-code development of open-source virtual assistants using a framework-agnostic, text-based approach. Built on a system-agnostic meta-model and integrated with a cloud-native architecture on Discord, it allows developers with minimal NLP expertise to rapidly design, test, and deploy task-specific VAs using Rasa, achieving high usability among junior developers in a large-scale evaluation.

ABSTRACT

An increasing number of models and frameworks for Virtual Assistant (VA) development exist nowadays, following the progress in the Natural Language Processing (NLP) and Natural Language Understanding (NLU) fields. Regardless of their performance, popularity, and ease of use, these frameworks require at least basic expertise in NLP and software engineering, even for simple and repetitive processes, limiting their use only to the domain and programming experts. However, since the current state of practice of VA development is a straightforward process, Model-Driven Engineering approaches can be utilized to achieve automation and rapid development in a more convenient manner. To this end, we present extit{dFlow}, a textual Domain-Specific Language (DSL) that offers a simplified, reusable, and framework-agnostic language for creating task-specific VAs in a low-code manner. We describe a system-agnostic VA meta-model, the developed grammar, and all essential processes for developing and deploying smart VAs. For further convenience, we create a cloud-native architecture and expose it through the Discord platform. We conducted a large-scale empirical evaluation with more than 200 junior software developers and collected positive feedback, indicating that dFlow can accelerate the entire VA development process, while also enabling citizen and software developers with minimum experience to participate.

Motivation & Objective

  • To address the high barrier to entry in virtual assistant (VA) development caused by complex NLP and software engineering requirements.
  • To enable citizen developers and junior programmers with minimal domain knowledge to create task-specific VAs without deep expertise in NLP or software engineering.
  • To provide a vendor- and framework-agnostic solution that avoids lock-in and supports extensibility across evolving open-source NLP frameworks.
  • To accelerate VA development through model-driven engineering (MDE) using a textual DSL and automated deployment pipelines.
  • To evaluate the usability and effectiveness of the dFlow DSL in real-world settings with non-expert participants.

Proposed method

  • Design of a system-agnostic virtual assistant meta-model that abstracts core VA components independently of underlying frameworks.
  • Definition of a textual DSL grammar for specifying intents, entities, training examples, and dialogue flows in a human-readable, reusable format.
  • Implementation of a generator component that translates dFlow models into Rasa-compatible configurations using the open-source Rasa framework.
  • Design and deployment of a cloud-native architecture hosting the dFlow system, with automated model generation and deployment via the Discord platform.
  • Integration of end-to-end processes including model validation, testing, and deployment to support seamless development workflows.
  • Adoption of a model-driven engineering (MDE) pipeline where the meta-model, DSL grammar, and code generator are decoupled and composable.

Experimental results

Research questions

  • RQ1RQ1: Can a textual DSL significantly reduce the development effort and learning curve for creating task-specific virtual assistants among non-expert developers?
  • RQ2RQ2: To what extent is the dFlow DSL framework- and system-agnostic, enabling future extensibility to alternative NLP frameworks or deployment environments?
  • RQ3RQ3: How effective is dFlow in enabling citizen developers with minimal programming and NLP knowledge to successfully design and deploy functional VAs?
  • RQ4RQ4: What are the perceived usability and productivity gains of dFlow compared to traditional VA development workflows?
  • RQ5RQ5: Can dFlow be extended to support advanced features such as multi-turn dialogues, conditional logic, and external service integration?

Key findings

  • Out of 219 participants, nearly all were able to successfully design and deploy virtual assistants using dFlow, despite having only basic programming skills and minimal domain knowledge in NLP or VA development.
  • Participants reported that dFlow was simple and straightforward to learn, with minimal struggles in understanding or applying the language, indicating a low barrier to entry.
  • The dFlow DSL demonstrated strong usability in practice, enabling rapid development and deployment of VAs without requiring deep expertise in NLP or software engineering.
  • The framework-agnostic design of the dFlow meta-model ensures long-term maintainability, as new Rasa versions or alternative frameworks can be supported via updated generators without modifying the core DSL or meta-model.
  • The cloud-native architecture on Discord enabled seamless, real-time testing and deployment, enhancing the development experience and reducing setup overhead.
  • The study confirmed that dFlow effectively reduces hand-coding and domain-specific technical requirements, enabling broader participation of citizen developers in VA creation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.