What is Dialogue Branch?

Dialogue Branch is an open-source platform for writing, testing and running branching dialogues between people and computers: virtual coaches, games, chatbots and more. It's made up of a scripting language, a Java engine that runs it, a Web Service around that engine, an authoring app called Studio, and a JavaScript client.

You write the flow of your dialogues as .dlb scripts, like this:

welcome.dlb
title: Start
speaker: Martin McOwl
---
Hey there! Do you want a quick tour of Dialogue Branch?

[[Sure!|Tour]]
===
title: Tour
speaker: Martin McOwl
---
Wonderful! A dialogue is a script made of nodes: text plus replies.

[[Like this chat?|Meta]]
[[Why scripts?|WhyScripts]]
[[How do I write one?|Write]]
===

From there, the platform takes you the rest of the way:

  • Studio lets you edit your dialogues as a graph of nodes, play them through, translate them, and publish them when they're ready (about Studio).
  • The Web Service runs your published dialogues for each of your users, on your own server (about the Web Service).
  • Your app plays them through the JavaScript client or the REST API, or runs the Java library directly (connecting your app, the Java library).

The Documentation Hub has detailed guides on writing .dlb scripts, setting up the Web Service, and more. To keep up with what's new, follow News & Updates, or @dialoguebranch.com on Bluesky.

The Story of Dialogue Branch

Once upon a time (September 1st, 2017 to be exact), Roessingh Research and Development and the University of Twente kicked off a European Horizon 2020 research project called Council of Coaches.

The aim of the project was to build a virtual council of health advisors, inspired by the council of advisors in the Sid Meier's Civilization II video game. The project, broadly speaking, had two research tracks — one focusing on human-computer interaction principles, and one focusing on eHealth / Digital Health.

  • The "HCI"-Track worked on experimenting with novel ways of interaction between multiple virtual embodied conversational agents and humans. The focus was on core underlying principles and technology, such as demonstrating the effect of vicarious persuasion, and getting a group of autonomously controlled virtual agents to co-exist and cooperate in the first place.
  • The "eHealth"-Track worked on investigating whether or not the concept of using a council of coaches for lifestyle and wellbeing advice would be able to positively influence the user's behavior. The focus here was on building a solid prototype, adding enough relevant coaching content, and running a large scale trial with relevant participants.

The above-mentioned research led to the development of two separate software prototypes: a 2D Web-Based Council of Coaches Demonstrator, and an open-source 3D Platform for building multi-party embodied conversational agent scenes, now maintained by the Agents United Alliance.

These two prototypes both needed a way to add dialogue content to their conversational agents. Especially for the 2D Prototype that would be used in a large scale eHealth trial, it was important that domain experts (healthcare experts) could contribute to the creation of a large body of scripted conversation.

Having no interest in reinventing the wheel, the team at Roessingh Research and Development (RRD) set out to explore existing solutions that would meet our requirements. We needed a platform to author scripted dialogues, it would have to be easy to integrate into a larger eHealth platform, and it should be simple enough for domain experts to work with.

Unfortunately, we didn't find a tool that ticked all the boxes. The one platform that came close was Yarn (now Yarn Spinner) — an open-source MIT-licensed interactive story-telling tool, made by Australian game developers Secret Lab.

At that time (around 2018), Yarn wasn't as fleshed-out and well-supported as it is today. So, RRD decided to take Yarn as a starting point for creating a new dialogue platform, called WOOL. The WOOL language was a simplified version of Yarn, catering better to the target audience of non-technical domain experts, and an open-source graphical editor made for writing Yarn scripts was modified to support the WOOL language.

In the years following the end of the Council of Coaches project, the WOOL platform was used in various projects, and has received technical updates to support those use cases. But ultimately, there was no support to further grow the platform and its community.

Therefore, in 2023, Dialogue Branch branched off to provide a new and better branching dialogue platform. Like its predecessors Yarn and WOOL, the platform is open-sourced under the MIT License. The home of Dialogue Branch is Fruit Tree Labs, a company founded specifically to support the growth and community uptake of the platform. If you need help integrating Dialogue Branch into your platform, or need us to build a specific feature — please get in touch.

Since 2026, ConnectedCare has been a Core Contributor. This Dutch company, working on conversational interaction, inclusive healthcare and human-centred AI, builds its own digital companions on Dialogue Branch, and invests in the platform's development so that it keeps growing up for real-world use.

Contributors

The Dialogue Branch platform is made possible by the following major contributors.

Maintainer

Fruit Tree Labs is the owner of the Dialogue Branch brand and the maintainer of the platform. This organisation, established in Portugal, was founded on the mission to grow the Dialogue Branch platform and its community. Its founder, Harm op den Akker, has been a major contributor to source and documentation since its inception.

Core Contributor

ConnectedCare, a Dutch company working on conversational interaction, inclusive healthcare and human-centred AI, is a driving contributor to the platform today: it puts Dialogue Branch to work in its own products, and invests in its development.

Original Roots

Roessingh Research and Development, an organisation in the area of rehabilitation, sports and healthy ageing in the Netherlands, is where the first lines of code were written. RRD started the first iteration of the platform in the Council of Coaches project. Developers Dennis Hofs, Boris van Schooten, and Tessa Beinema have been major contributors to the platform's source and documentation.

License

The foundation of Dialogue Branch is its dialogue authoring language, its parsers and its web-components. All of these elements are licensed under the extremely permissive MIT License. This means that you may use Dialogue Branch in any setting, including within commercial applications.

Attribution is not legally required, but it is very much appreciated! If you are using Dialogue Branch, please tell us about it, and feel free to add a "made with Dialogue Branch" logo anywhere in your product. We'd love to hear your feedback, and love to see what you're creating with it. Unless you are using Dialogue Branch for Evil Purposes, in which case we disapprove, and fart in your general direction.

The complete text of the Dialogue Branch License is provided below. The authoritative version is the LICENSE file in the repository.

Copyright (c) 2023-2026 Fruit Tree Labs (www.fruittreelabs.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The copyright of any contribution to Dialogue Branch (source code, documentation, or anything else), will always remain with the original author of the work. For example, if you contribute code, you may choose to flag this code by adding your name (e.g. using an @author JavaDoc tag). However, be aware that the MIT License waives most of the rights typically belonging to the copyright holder.