Wiki / Workflows

Workflows

Workflows are visual AI flows made of connected nodes. Each node fulfills a task – from input through agent steps and scripts to sub-workflows – and passes its result to the next.

Editor & Connections

In Workflows mode you build flows on a canvas:

You edit the properties of the selected node on the right in the Properties panel.

Node Types

NodeTask
StartStarts the workflow without user input.
InputReceives the start input; on start the app asks for your input.
AgentAn AI step with its own prompt, provider/model and tool selection.
Sub-workflowRuns another workflow as its own run and passes on its result.
ScriptRuns a shared local script (see Scripts).
MetadataCreates values (e.g. date, environment variables) for subsequent nodes.

Structural Rules

For a workflow to be valid, the following rules apply:

The app reports violations as validation errors before the workflow starts.

Agent Node

The agent node is the centerpiece. Its properties:

PropertyMeaning
Prompt / system instructionThe instruction for this step.
Provider / modelOwn provider/model or default.
Forced toolOptionally specify a tool that the step must use.
Shared historyWhen enabled, the step sees all previous AI responses.
On errorStop or continue.
MCP serversEnable/disable MCP servers individually for this node.
Internal toolsAllow file system, shell, task, charts and scripts individually.
Terminal sandboxSandbox on/off or adopt the global setting.
Todo reminderControl auto-checkoff and fallback reminder.

Context Modes

You control how much prior history an agent step sees via the context mode:

ModeBehavior
Full historyThe agent sees all previous messages and interactions 1:1.
Isolated / anonymousThe agent works without prior history – only its own prompt counts.
Targeted handoverThe agent works in isolation and additionally receives a structured handover package from the predecessor.

For handover you choose a handover field (key from the predecessor's JSON output, dot notation possible; empty = full output) and optionally a handover character limit. Overly large packages are visibly truncated instead of blowing up the context.

Script Node

The script node runs a shared script. Its output is passed to the next step. For each argument you define the source:

Sub-Workflow Node

A sub-workflow runs as its own run and passes its result to the next step. You define:

Metadata Node

The metadata node creates values from fields (key + value/template) and makes them available to subsequent nodes. Two modes:

As the target you choose all subsequent nodes or individual agent nodes. Available placeholders:

{{now_utc}}  {{date_de}}  {{time_de}}  {{datetime_de}}  {{env:NAME}}
{{user_id}}  {{workflow_id}}  {{workflow_title}}  {{run_id}}
{{input}}  {{metadata.schluessel}}

Execution

On start the execution view shows two tabs:

You can stop the run, view error details per step and open the history as a chat. Handover packages appear collapsed so they don't burden the context. Once a run has finished you can also keep chatting in it – see Continue a Run Chat.

If the same tool keeps failing inside a step, the step shows the same note as a chat and the AI is asked to change its method instead of repeating the call – that keeps a step from looping forever. More in Chat Features.

Between two steps the AI sometimes works without producing a visible message: it compresses a long history, summarizes an isolated step or determines an input. In these phases the execution view shows what is currently happening in a status line – the same texts as the chat (Compress chat…, Answer is being prepared…, and for the local model Loading model… or Processing prompt… 64 %) – so a run never looks frozen.

Continue a Run Chat

Every run keeps its own chat. As long as the run is still active, the workflow writes into that chat step by step – that is why the run view shows a note that a run chat can be continued once the run has ended.

When the run has finished – completed, failed or canceled – an input field appears at the bottom of the run view. It is the same input as in the normal chat: text, attachments and images, the plus menu, the provider/model chip, the thinking toggle and Enter to send. Your message is answered right in the run's chat and keeps the history the run has built up. So you can ask follow-up questions, have a result explained or keep working on a run that was stopped early.

Continuing only adds to the chat: the workflow itself does not run again and nothing about the recorded run changes. The answer appears in the Overall tab – the view jumps there automatically as soon as you send a message.

With Back you leave the run view again: the chat you had open before comes back, and the run chat stays with its run instead of appearing as a separate chat in the chat tab.

Schedule

A workflow can run automatically at fixed times – as long as Apis AI is running (in the background service also without a visible window, see Background Service).

FieldMeaning
Enable scheduleTurns the cron schedule on.
Cron expressionMinute hour day month weekday.
Optional fixed inputStart input for scheduled runs; empty = no input.
Catch up on missed runsMakes up runs that were missed, e.g. because the PC was off.
0 9 * * *     daily 09:00
*/30 * * * *  every 30 minutes
0 9 * * 1-5   weekdays 09:00

The app shows the next scheduled run. When duplicating a workflow, the copy's schedule is disabled.