# Confirm receipt and take the file

> Tells the sender right away that the email arrived, and whether it starts now or waits for an earlier update of the same file to finish. Place it first in a flow that declares file locks; a waiting run starts by itself, in order, and says so in the same email thread.

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

## At a glance

| Property | Value |
| --- | --- |
| **Step name** | `acknowledge` |
| **Resource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palette group, category** | notify, messages |
| **Credits** | **0** credits each time it succeeds |
| **Side effects** | yes: It changes something outside Lumen, so a retry asks first and a test shows what it would do instead of doing it. |
| **Installation must provide** | `mail` |

## Inputs

| Property | Value |
| --- | --- |
| **Needs** | nothing |
| **Produces** | `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 |
| --- | --- |
| `waited` | boolean |
| `lockWait` | boolean |
| `waitingFor` | string |
| `file` | string |

## Settings

Set under `config:` on the flow node. Text settings may contain `{nodeId.field}` placeholders.

| Setting | Type | Default | Description |
| --- | --- | --- | --- |
| `to` | text or list |  | To is who is told; empty is the sender of the email that started the run. (maxLength 2000; maxItems 20) |
| `lang` | string |  | Lang is the emails' language, he or en; empty follows the email. (one of , he, en) |
| `startNotice` | boolean | `true` | StartNotice says a run that waited sends a short "starting now" in the same thread when it starts; unset is true. |
| `messages` | object |  | Wording |
| `messages.processing` | object |  | When it starts at once |
| `messages.processing.en` | string |  | English (maxLength 1000) |
| `messages.processing.he` | string |  | Hebrew (maxLength 1000) |
| `messages.waiting` | object |  | When it has to wait |
| `messages.waiting.en` | string |  | English (maxLength 1000) |
| `messages.waiting.he` | string |  | Hebrew (maxLength 1000) |
| `messages.starting` | object |  | When a waiting run starts |
| `messages.starting.en` | string |  | English (maxLength 1000) |
| `messages.starting.he` | string |  | Hebrew (maxLength 1000) |

The full JSON Schema of these settings: [acknowledge.schema.json](https://docs.go-lumen.ai/schemas/steps/acknowledge.schema.json).

## Example

Confirm a rate email

```yaml title="config"
lang: en
to: ops@yourcompany.co.il
```

## Use it in a flow

A node that runs `acknowledge` 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: acknowledge-example
  namespace: tenant-acme
spec:
  displayName: "Confirm receipt and take the file"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [acknowledge]
  nodes:
    - id: acknowledge
      stepRef: {name: acknowledge}
      config:
        lang: en
        to: ops@yourcompany.co.il
```
