> For the complete documentation index, see [llms.txt](https://docs.wayfound.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wayfound.ai/applications/supervise-multi-agent-systems.md).

# Supervise Multi-Agent Systems

For supervising multi-agent systems, Wayfound has the concept of **Applications.**  One or more agents can be added to an application, and as sessions flow in to Wayfound, OpenTelemetry `trace` and `span` information is leveraged to create a holistic view of exactly what has occurred and when.  Additionally, the Wayfound Supervisor can reason across the actions of every agent that participated in the application `trace`.

To create an **Application**, go to the **Applications** section of Wayfound and click 'New Application'.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FZoHDsBI6u4pj2HMXdike%2FUntitled.png?alt=media&amp;token=07184dce-4704-4590-b2dd-ae2240c95eed" alt="" width="563"><figcaption></figcaption></figure>

Provide a name and role and select one or more agents for the **Application**.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FOQqPJDsYX0gFYJ85rNjf%2FUntitled.png?alt=media&amp;token=f9b308d8-9fea-439b-9445-f61d418a7720" alt="" width="375"><figcaption></figcaption></figure>

When viewing the list of Applications, simply click on the **Application** name to view `traces`.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FeEmSxE8dFLCgAz9UJATk%2FUntitled.png?alt=media&amp;token=a41860a1-695f-401e-a53a-02114ba80e4b" alt=""><figcaption></figcaption></figure>

The **Application** detail screen provides a quick overview of all the `traces` collected.  For each `trace` you can see the number of sessions, the grades of each participating agent, the durations, and when each `trace` started and ended.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2Fde21PHN7DOA3iu3Q2NOx%2FUntitled.png?alt=media&amp;token=851516fa-6d20-48a1-911b-f826de18b721" alt=""><figcaption></figcaption></figure>

Clicking on a `trace` id will display the `trace` details drawer where you can view key analysis and the multi-agent timeline.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2FUiAlc9k3S3Ep8ALzIVkR%2FUntitled.png?alt=media&amp;token=9a313617-3910-4f33-8a22-bd51ce6ed610" alt="" width="563"><figcaption></figcaption></figure>

Click on an entry in the timeline to view the full agent analysis drawer.

<figure><img src="https://3122969842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fifg8pcYnTcaO17HuTu4I%2Fuploads%2Fve5pF9rsPQ1SXmY33gBu%2FUntitled.png?alt=media&amp;token=94849b1e-9baa-4cde-aac9-dc02f25b60d5" alt="" width="563"><figcaption></figcaption></figure>

**Contextualize Session Data**

After an Application is created in Wayfound, the next step is to enhance your session data to include the `applicationId`, `trace_id`, and `span_id` .

It is important to use the same `trace_id` across sessions where multiple agents are involved so that Wayfound can properly correlate the multi-agent session data.

The required `span_id` and optional `parent_span_id` can be used to further group data within a trace.

Here is an example of a Wayfound session with these fields included:

```
{
 "agentId": "22198fc5-1056-4a9d-b455-440db1249539",
 "applicationId": "7cf54242-0898-4ac1-a09c-c0e4be3f000a",
 "firstMessageAt": "2025-15-08T10:51:00.000Z",
 "lastMessageAt": "2025-15-08T10:51:00.000Z",
    "messages": [
      {
        "timestamp": "2025-15-08T10:51:00.000Z",
        "event_type": "assistant_message",
        "attributes": {
          "content": "Hello, how can I help you today?"
        },
        "context": {
            "trace_id": "123",
            "span_id": "abc"
        }
      }
    ]
}

    
```

**Note:** The `context`, `trace_id`, and `span_id` are required fields when you add `applicationId` to a session.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.wayfound.ai/applications/supervise-multi-agent-systems.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
