> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.latch.bio/llms.txt
> Use this file to discover all available pages before exploring further.

# Results

> Learn how to highlight the most relevant outputs of a workflow to users.

Latch workflows can output thousands of files, making it difficult for users to find the most relevant output files. To help users navigate these outputs, Latch provides a results page that displays the outputs of a workflow in a user-friendly interface.

## Usage

### SDK Example

To expose specific outputs to users, developers must explicitly supply a list of paths to publish. For example:

```python theme={null}
...

from latch.executions import add_execution_results

@small_task
def assembly_task(
    read1: LatchFile, read2: LatchFile, output_directory: LatchOutputDir
) -> LatchFile:

    ...

    results = []
    results.append(str(output_directory.remote_path))
    results.append(os.path.join(output_directory.remote_path, 'pipeline_info/execution_report.html'))
    add_execution_results(results)

    ...
```

### Nextflow Example

Developers can explicitly define a list of subpaths for any output directory defined in `latch_metadata/parameters.py`. For example, the following
code snippet exposes shortcuts for the workflows `publishDir` and execution report:

```python theme={null}
parameters = {
  'outdir': NextflowParameter(
    type=LatchDir,
    results_paths=[
      Path("/"),
      Path("/pipeline_info/execution_report.html")
    ]
  )
}
```

## Results Interface

Both methods render a "Results" page in the Latch Console that displays the outputs of the workflow in a user-friendly interface:

<img src="https://mintcdn.com/latchbio/uN1BKX4g3v1ZQv8l/images/workflows/nextflow/results-page.png?fit=max&auto=format&n=uN1BKX4g3v1ZQv8l&q=85&s=48f7c5651ac70c181a6e417273ba4511" alt="Results GUI" width="3456" height="1330" data-path="images/workflows/nextflow/results-page.png" />
