Skip to main content

Main Workflow

29/04/2026

The Main workflow has four stages, some of which have subsections. Each flows into the next to add up to the complete workflow. These stages are described in more detail below after this brief overview.

  1. Pre-processing:

    mainWorkflowPart1of6.png
    1. Input Guardrails

      mainWorkflowPart2of6.png
  2. Data Gathering

    1. Short-term memory

      mainWorkflowPart3of6.png
    2. Parallel Steps

      mainWorkflowPart4of6.png
  3. Main Answer

    mainWorkflowPart5of6.png
  4. Post-answer processing

    1. Parallel steps

      mainWorkflowPart6of6.png

Business logic is separated into different sub-workflows to avoid having a very large single workflow. Each stage of the main workflow calls the sub-orchestrator.

In this workflow you can also see the approach used to send SSE messages. This typically involves a pair of Build and Send nodes accompanied by a colored sticky note and a description, as shown in the example below, where the sticky note is a purple rectangle labeled "Introspection message" :

image28.png