For the complete documentation index, see llms.txt. This page is also available as Markdown.

Subtasks

Table of Contents

What is a subtask?

Subtasks are a type of task called by a root task. They allow actions to take place simultaneously. Subtasks can call other subtasks, but they cannot call a parent task.

Creating a Subtask

Since a subtask is a type of task, the process of building one is the same:

  • Click create task and give it a name.

  • Open the new task.

  • Add content to the new task. Below is a quick example:

The difference is rather than standing alone, this task can be called on by another task.

  • For example, if I wanted this conversation to happen before the barkeep makes a drink, I can add a subtask to the barkeeps task.

  • Add a new step to your desired task, toggle from Action to Subtask. Find the name of the task you'd like to call on in the drop-down.

  • Once you've chosen a task from the drop-down, you’ll be prompted to fill in task parameters. In this case, we'll align the first bartender with the bartender in the barkeep tasks task parameters.

Within the context of the parent task barkeep tasks, binding the parent task's parameter to a subtask parameter specifies that the same value should be reused for the subtask. If left unassigned, the value assigned to the subtask parameter is chosen by the director according to the constraints defined on that subtask, but this value can be any valid assignment, which may or may not be one used for the parent task parameter.

For example, if a Barkeep NPC is assigned to the barkeep parameter of the barkeep tasks task, but the director is left to pick a random barkeep for the chit chat task, it may select an entirely different barkeep NPC. To avoid this outcome, click into the fields you'd like to maintain consistency with and choose their reference.

  • Hit save changes. You can then use the six dots to the left of the step to move the subtask to your desired location.

Last updated