# Read a scan or photo

> 

Source: https://docs.go-lumen.ai/reference/steps/read-scan

## At a glance

| Property | Value |
| --- | --- |
| **Step name** | `read-scan` |
| **Resource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palette group, category** | ai, ai |
| **Credits** | **5** credits each time it succeeds |
| **Side effects** | no |
| **Installation must provide** | nothing |

## Inputs

| Property | Value |
| --- | --- |
| **Needs** | `file` |
| **Produces** | `text`, `fields` |
| **Works on** | item: one document at a time |

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See [Documents and data](https://docs.go-lumen.ai/concepts/how-flows-run.md#documents-and-data).

## Outputs

A later node references an output as `{nodeId.field}` in text, or `nodeId.field` in a condition.

| Output | Type |
| --- | --- |
| `text` | string |

## Settings

This step takes no settings.

## Use it in a flow

A node that runs `read-scan` goes under `spec.nodes` of a [Flow](https://docs.go-lumen.ai/concepts/how-flows-run.md#the-flow-as-yaml). Give it any id, and list the next node ids in next.

```yaml title="flow.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: read-scan-example
  namespace: tenant-acme
spec:
  displayName: "Read a scan or photo"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [read-scan]
  nodes:
    - id: read-scan
      stepRef: {name: read-scan}
```
