Papers
Topics
Authors
Recent
Search
2000 character limit reached

Towards Modeling Human-Agentic Collaborative Workflows: A BPMN Extension

Published 8 Dec 2024 in cs.SE | (2412.05958v3)

Abstract: LLMs have facilitated the definition of autonomous intelligent agents. Such agents have already demonstrated their potential in solving complex tasks in different domains. And they can further increase their performance when collaborating with other agents in a multi-agent system. However, the orchestration and coordination of these agents is still challenging, especially when they need to interact with humans as part of human-agentic collaborative workflows. These kinds of workflows need to be precisely specified so that it is clear whose responsible for each task, what strategies agents can follow to complete individual tasks or how decisions will be taken when different alternatives are proposed, among others. Current business process modeling languages fall short when it comes to specifying these new mixed collaborative scenarios. In this exploratory paper, we extend a well-known process modeling language (i.e., BPMN) to enable the definition of this new type of workflow. Our extension covers both the formalization of the new metamodeling concepts required and the proposal of a BPMN-like graphical notation to facilitate the definition of these workflows. Our extension has been implemented and is available as an open-source human-agentic workflow modeling editor on GitHub.

Summary

  • The paper presents an extension to BPMN that enables precise modeling of human-agent workflows through enhanced agent profiling and reflection strategies.
  • It introduces formalized constructs to capture agent roles, trust scores, and uncertainty metrics, addressing current BPMN limitations.
  • The proof-of-concept implementation using the Sirius framework demonstrates practical applicability in complex multi-agent environments.

Modeling Human-Agentic Collaborative Workflows: A BPMN Extension

Introduction

The proliferation of LLMs and their integration into autonomous agents have catalyzed advancements in solving complex tasks through agent cooperation. However, the orchestration of such agents, especially in collaboration with human participants, remains a challenging pursuit. Current business process modeling languages, notably BPMN, do not adequately accommodate these mixed human-agentic scenarios. This paper addresses this gap by proposing an extension to BPMN, allowing for precise specification of human-agentic collaborative workflows. The paper presents formalized concepts, a graphical notation, and an implementation of this extension as an open-source tool available on GitHub.

Background and Motivation

BPMN serves as a cornerstone for modeling workflows but lacks constructs for the integration of intelligent agents, particularly those powered by LLMs. These agents can act autonomously, make decisions, and learn from feedback, often functioning within Multi-Agent Systems (MAS). Their interaction with human participants necessitates precise modeling of tasks, strategies, and decision-making processes.

Current limitations in BPMN include the inability to denote agent reliability, strategies for task completion, or decision-making frameworks. As such, this extension is motivated by the need to bring clarity and structure to collaborative workflows that involve both humans and agents in dynamic and complex environments. Figure 1

Figure 1: Running example with standard BPMN.

Extension of BPMN

Agent Profiling

The proposal extends the BPMN Lane element to include agent profiling capabilities, introducing attributes such as role (e.g., manager, worker) and a trust score to convey agent reliability. These enhancements enable finer granulation when representing agents within pools, facilitating more effective workflow orchestration and decision-making processes based on agent roles and trustworthiness. Figure 2

Figure 2: Domain model of the AgenticLane.

Reflection Strategies

Incorporating reflection strategies into BPMN is pivotal for modeling agentic workflows. Reflection mechanisms—self-reflection, cross-reflection, and human-reflection—are embedded into tasks, enabling agents to evaluate and adapt their outputs. The AgenticTask extension in the BPMN metamodel formalizes these strategies, supported by associated uncertainty scores to represent the reliability of the task output. Figure 3

Figure 3: Domain model of the AgenticTask.

Collaboration and Merging

The extension further introduces constructs for agent collaboration, by expanding BPMN’s Gateway and MessageFlow elements. It defines cooperation and competition strategies, with corresponding merging strategies within Agentic Gateways and MessageFlow contexts. This facilitates modeling complex interaction patterns among agents and between agents and humans. Figure 4

Figure 4: Domain model of the AgenticOR, AgenticAND and AgenticMessageFlow.

These transformations imbue BPMN with the capacity to represent sophisticated collaboration dynamics in agentic environments.

Implementation and Proof of Concept

An editor leveraging these extensions was implemented using the Sirius framework, producing a tool that allows developers to model workflows with the proposed BPMN enhancements. The tool supports the full complement of standard BPMN notation along with the new agentic elements, enabling intuitive modeling of human-agent interactions. Figure 5

Figure 5: Extension model.

Conclusion

The proposed BPMN extension substantially enriches its modeling capabilities for human-agentic collaborative workflows. This extension offers a robust framework for articulating intricate interactions between humans and agents and their shared tasks, enhancing both theoretical understanding and practical implementation of MAS. Future work aims to develop finer governance specifications, uncertainty propagation mechanisms, and executable models to further support this domain. Figure 6

Figure 6: Platform-independent implementation.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.