<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Kongens Lyngby, Denmark
* Corresponding author.
$ snagel@uni-koblenz.de (S. Nagel); awolters@uni-koblenz.de (A. Wolters); riehle@uni-koblenz.de (D. M. Riehle);
delfmann@uni-koblenz.de (P. Delfmann)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>EduClare - An Intelligent Tutoring Chatbot for Teaching Declarative Process Modeling</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sabine Nagel</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anna Wolters</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dennis M. Riehle</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Patrick Delfmann</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>tools</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>EduClare 1.0 CC 4.0 BY-NC-ND Java, JavaScript, LangChain4j, gpt-4o N/A https://educlare.de/ https://uni-ko.de/educlare-git https://uni-ko.de/educlare-git https://uni-ko.de/educlare-screencast</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Koblenz</institution>
          ,
          <addr-line>Universitätsstr. 1, 56070 Koblenz</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0003</lpage>
      <abstract>
        <p>In this work, we introduce EduClare, a web-based intelligent tutoring chatbot to support Declarative Process Model (DPM) education in the modeling language Declare. This innovative hybrid chatbot combines principles from intelligent tutoring systems and large language models to create an interactive and user-friendly educational tool. In addition to explaining fundamental concepts of Declare, the chatbot generates an arbitrary number of tasks with increasing dificulty levels, covering basic reasoning, model execution, and active modeling of declarative specifications, with a focus on constraint interplay and inconsistency. Users benefit from instant answer validation, feedback, and the ability to ask for clarification, receiving customized guidance throughout their entire learning process.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Declare</kwd>
        <kwd>Declarative Process Models</kwd>
        <kwd>Education</kwd>
        <kwd>Intelligent Tutoring Systems</kwd>
        <kwd>Chatbot</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Value</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction and Related Work</title>
      <p>
        Declarative Process Models (DPMs) ofer a flexible approach to process modeling by specifying a
set of constraints that implicitly define process behavior rather than explicitly modeling a fixed
sequence of activities [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. However, the implicit nature of DPMs introduces significant challenges
in comprehension and application [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], which stresses the need for efective educational tools.
Existing approaches, such as the one developed by De Smedt et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] primarily focus on
exploring hidden dependencies within DPMs. More recently, Nagel and Delfmann [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] proposed
an e-learning framework designed to support learners in gradually becoming familiar with
Declare. This framework addresses the common challenges identified in understanding Declare
by ofering a structured set of tasks that cover various aspects of the modeling language.
However, there remains a significant gap in the availability of interactive, technology-enhanced
educational tools for teaching Declare.
      </p>
      <p>
        Within the field of technology-enhanced education, Pedagogical Conversational Agents
(PCAs) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] are widely used. PCAs, which are conversational agents (CAs) applied in educational
contexts, ofer an interactive learning experience that aligns with the ICAP framework,
emphasizing the importance of active engagement in learning [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Recent advancements in CAs,
particularly those using Large Language Models (LLMs), have opened new possibilities for
increasing the interactivity and efectiveness of educational tools. While CAs have been explored
in the context of business process modeling, their application to declarative process modeling
has been relatively limited. Notable exceptions include Declo, a chatbot introduced by Alman
et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] for defining DPMs using natural language, and the CA developed by Fontenla-Seco
et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] for supporting declarative process mining. Still, the development of tools for DPM
education remains unexplored.
      </p>
      <p>To address this gap, we present EduClare, an intelligent tutoring chatbot designed to teach
the declarative modeling language Declare. Our solution applies the latest advances in CA
research and provides a structured, task-based learning experience that adapts to the learner’s
progress. The remainder of this paper is structured as follows. In Section 2 we describe the
application, its functionality, and architecture in more detail. In Section 3 we explain usage and
report on the results of a first usability study to discuss the tool’s maturity. We conclude and
discuss directions for future work in Section 4.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Tool Description</title>
      <sec id="sec-3-1">
        <title>2.1. Functionality</title>
        <p>
          EduClare is a comprehensive educational tool designed to support learning Declare through an
interactive and personalized experience. The tutoring chatbot guides users through three main
phases: (1) introducing the tutoring and explaining relevant Declare concepts, (2) providing
tasks of diferent types and with increasing dificulty as part of the task-based learning and (3)
interactively answering questions to provide continuous support. The task-based learning phase
builds on previous work [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], where we developed the foundation for an e-learning concept for
teaching Declare and provided a comprehensive collection of tasks covering concepts such as
constraint definitions, model behavior, and inconsistency within DPMs. In the following, we
will describe the tool’s functionality in more detail.
        </p>
        <p>Introduction In this phase, the chatbot assesses the user’s prior experience with Declare. New
users are provided with a detailed introduction, while more experienced users can choose
to skip this section or only refresh their prior knowledge. This phase is interactive, with
the chatbot regularly prompting users to ask questions to ensure that uncertainties are
immediately addressed.
Task Generation The chatbot can dynamically generate an arbitrary number of tasks with
varying dificulty levels to help users improve and test their understanding of Declare.
This includes (1) inference tasks where users must infer an activity based on a provided
model and corresponding statement, (2) execution tasks, where users are required to
provide valid/invalid traces for a model and vice versa, (3) inconsistency tasks where users
are provided with a consistent model and either have to maintain consistency or cause
inconsistency by adding a constraint and (4) redundancy tasks where users are asked to
add or remove constraints to/from a model without changing its behavior. Furthermore,
EduClare currently supports three task types (true/false, choice and input) to reinforce
comprehension through both recognition and recall.</p>
        <p>Instant Answer Validation and Feedback Any answers given by the user are evaluated on
the fly and the chatbot provides instant feedback on each task, indicating whether the
answer was correct and providing explanations when mistakes were made (cf. Figure 1).</p>
      </sec>
      <sec id="sec-3-2">
        <title>Customized Guidance and Continuous Support Users can interrupt the task flow at any</title>
        <p>time to interact with the chatbot and receive customized guidance, as illustrated in Figure
1. Here, possibilities include asking for a new task, an exemplary answer or hint, and
asking any other task-related questions, such as the definition of Declare templates used
in a task. The chatbot’s ability to maintain conversation history allows it to provide
contextually relevant answers and continue discussions seamlessly.</p>
        <p>Learning Progression The chatbot supports learning progression as the tutoring process
is designed based on levels, allowing users to gradually build their skills. Each level is
designed to incrementally increase in dificulty (beginner, intermediate, and expert) and
interaction complexity (true/false, choice, input). Eligibility to advance to a new level is
based on a pre-defined number of consecutive correct answers, but users can decide to
keep practicing at any point, which enables continuous learning.</p>
      </sec>
      <sec id="sec-3-3">
        <title>2.2. Architecture</title>
        <p>EduClare is implemented as a Java SpringBoot web application. To integrate LLMs, we used the
LangChain4j1 framework and selected OpenAI’s GPT-4o model as the underlying LLM. We will
now describe the architecture and design of our application (cf. Figure 2) in more detail.</p>
        <p>Intent
Recognition</p>
        <p>Output</p>
        <p>Parsing
Service Selector</p>
        <p>ASSISTANTS</p>
        <p>Task Generation</p>
        <p>Assistant
Evaluation Assistant</p>
        <p>Answer</p>
        <p>Identification
General Assistant</p>
        <p>Answer
Generation</p>
        <p>TOOLS
Generate Task
Process Solution</p>
        <p>Attempt
Task-Related Tools</p>
        <p>ALGORITHMS
Task Generator</p>
        <p>Task</p>
        <p>Generation
Task Evaluator</p>
        <p>Evaluation</p>
        <p>Trace Validation</p>
        <p>Language</p>
        <p>Comparison
Check for Empty</p>
        <p>Language
Frontend The frontend was developed using JavaScript, HTML and CSS. It allows the user to
interact with the tutoring chatbot, either in textual form via the input field or by selecting
one of the provided options. The chatbot additionally allows customized interactions,
such as allowing users to input shorthand commands or full sentences, which are then
correctly interpreted by the system. This allows for more flexibility and accessibility.
Assistants Assistants manage the interaction between users and the system’s underlying tools
and algorithms. The Service Selector is the first to process user messages by determining
their intent, i.e., whether it is requesting a new task, responding to a task, or asking
a general question. Based on this intent, the Service Selector directs the request to the
appropriate assistant. The Task Generation Assistant handles requests for new tasks
by invoking the Task Generator Tool, formatting the output for user display. The Task
Evaluation Assistant manages task responses by identifying and evaluating user-provided
artifacts using specific algorithms. The General Assistant addresses all other queries, such
as answering general questions or providing exemplary answers, relying on predefined
tools or the language model for more complex responses. To increase the validity of the
answer to any general question, a system prompt was designed that provides the LLM with
general information on Declare as well as further instructions on how to communicate
with the users. Therefore, any general question that is not covered by a tool is directly
processed by the prompted LLM. Each assistant ensures user interactions are eficiently
processed and appropriately handled.</p>
        <p>Tools The tools within our tutoring chatbot architecture perform specific tasks as directed by
the assistants. They are defined by natural language descriptions that enable assistants to
select and invoke the correct function for user requests. For example, the Task Generator
Tool creates new tasks based on user context, while the Task Evaluation Tool validates
user responses by comparing them with expected outcomes or calling the corresponding
evaluation algorithm. This ensures eficient system performance by reducing reliance on
the LLM for straightforward tasks. Lastly, tools accessed by the General Assistant handle
routine requests, like providing exemplary answers or repeating tasks.</p>
        <p>Algorithms We developed various Java algorithms to generate and evaluate tasks. For task
generation, we created specific algorithms tailored to each task category, which enables
the chatbot to create arbitrary amounts of tasks covering a variety of Declare-related
concepts with progressively increased dificulty. To generate and assess both correct and
incorrect answers, we employed additional algorithms using deterministic finite automata
(DFA) via dk-brics-automaton2. By transforming each Declare model into a corresponding
DFA, we validated traces against models, compared languages of diferent models (e.g., to
check for redundant constraints), and ensured model consistency (as inconsistent models
have an empty language).</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>3. Usage and Maturity</title>
      <p>A demo version of EduClare is available here3, a local version can be obtained from our Git
repository and requires an own OpenAI API key.</p>
      <p>To gain first insights into the usability of our initial concept, we conducted a small study with
four PhD students that had varying levels of prior experience with Declare. It comprised of an
exploration phase, where the participants were instructed to try out the chatbot on their own
and explore its functionality, usability and intuitiveness, while voicing their thoughts . To gain
additional insights, we then asked some follow-up questions, focusing on encountered dificulties,
suggestions for improvement or extension and general feedback. Overall, the tutoring chatbot,
its innovative approach and overall usability was perceived positively. Users appreciated the
chatbot’s ability to make Declare more accessible, with two participants mentioning that they
found the interaction with the chatbot more engaging and enjoyable compared to conventional
methods, such as textbooks or literature. The chatbot’s guidance throughout the learning
process was also well-received, with one participant mentioning an increased curiosity to
explore beyond the necessary tasks, indicating a high level of user engagement. Additionally,
some feedback suggested areas for improvement, such as shortening introductory messages and
incorporating visual aids, as well as further customization based on individual learning styles.
Furthermore, suggestions were made for introducing gamification elements and adjusting task
dificulty based on user experience. The feedback also indicated interest in including visual
representations of Declare, which could be a direction for future development.
2https://www.brics.dk/automaton/
3https://educlare.de/</p>
    </sec>
    <sec id="sec-5">
      <title>4. Conclusion</title>
      <p>In this work, we developed an intelligent tutoring chatbot with a hybrid architecture to support
Declare education. Our approach integrates a structured learning path with task-based learning
and continuous interactive support, tailored to diferent experience levels. The LLM-based
chatbot efectively generates and evaluates tasks, while assisting users in learning Declare.
Future work will address current limitations, such as a risk of producing incorrect outputs,
by iteratively improving and expanding the chatbot’s functionality. This includes visual DPM
representations, multilingual support, and personalized learning experiences. That way, we aim
to not only enhance Business Process Management (BPM) education but also provide a valuable
tool for process mining researchers.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This paper was funded by the Deutsche Forschungsgemeinschaft (grant number DE 1983/9-3)
and the Federal Ministry of Education and Research (BMBF) under grant number 16DHBKI039.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>C.</given-names>
            <surname>Di Ciccio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Montali</surname>
          </string-name>
          ,
          <source>Declarative Process Specifications: Reasoning</source>
          , Discovery, Monitoring, in: Process Mining Handbook, volume
          <volume>448</volume>
          , Springer Int. Publ.,
          <year>2022</year>
          , pp.
          <fpage>108</fpage>
          -
          <lpage>152</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>C.</given-names>
            <surname>Haisjackl</surname>
          </string-name>
          , I. Barba,
          <string-name>
            <given-names>S.</given-names>
            <surname>Zugal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Sofer</surname>
          </string-name>
          , I. Hadar,
          <string-name>
            <given-names>M.</given-names>
            <surname>Reichert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pinggera</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Weber</surname>
          </string-name>
          ,
          <article-title>Understanding Declare models: strategies, pitfalls, empirical results</article-title>
          ,
          <source>Software &amp; Systems Modeling</source>
          <volume>15</volume>
          (
          <year>2016</year>
          )
          <fpage>325</fpage>
          -
          <lpage>352</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>J. De Smedt</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. De Weerdt</surname>
            , E. Serral,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Vanthienen</surname>
          </string-name>
          ,
          <article-title>Gamification of Declarative Process Models for Learning and Model Verification</article-title>
          , in: Business Process Management Workshops, volume
          <volume>256</volume>
          , Springer International Publishing, Cham,
          <year>2016</year>
          , pp.
          <fpage>432</fpage>
          -
          <lpage>443</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Nagel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Delfmann</surname>
          </string-name>
          ,
          <article-title>Towards an E-Learning Approach for Declarative Process Modeling</article-title>
          ,
          <source>in: Proceedings of the BPM</source>
          <year>2024</year>
          Blockchain/RPA/CEE/Educators/Industry Forum, Krakow, Poland,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>F.</given-names>
            <surname>Weber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Rüttimann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Wambsganss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Söllner</surname>
          </string-name>
          ,
          <article-title>Pedagogical Agents for Interactive Learning: A Taxonomy of Conversational Agents in Education</article-title>
          ,
          <source>in: ICIS Proceedings</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M. T. H.</given-names>
            <surname>Chi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Wylie</surname>
          </string-name>
          , The ICAP Framework:
          <article-title>Linking Cognitive Engagement to Active Learning Outcomes</article-title>
          ,
          <source>Educational Psychologist</source>
          <volume>49</volume>
          (
          <year>2014</year>
          )
          <fpage>219</fpage>
          -
          <lpage>243</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Alman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. J.</given-names>
            <surname>Balder</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F. M.</given-names>
            <surname>Maggi</surname>
          </string-name>
          ,
          <article-title>Declo: A Chatbot for User-friendly Specification of Declarative Process Models</article-title>
          ,
          <source>in: Proceedings of the Best Dissertation Award, Doctoral Consortium, and Demonstration &amp; Resources Track at BPM</source>
          <year>2020</year>
          ,
          <year>2020</year>
          , pp.
          <fpage>122</fpage>
          -
          <lpage>126</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Fontenla-Seco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Winkler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gianola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Montali</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lama</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bugarín-Diz</surname>
          </string-name>
          ,
          <article-title>The Droid You're Looking For: C-4PM, a Conversational Agent for Declarative Process Mining</article-title>
          ,
          <source>in: Proceedings of the Best Dissertation Award, Doctoral Consortium, and Demonstration &amp; Resources Forum at BPM</source>
          <year>2023</year>
          , Utrecht, Netherlands,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>