# 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/es/reference/steps/acknowledge

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **Nombre del paso** | `acknowledge` |
| **Recurso** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Grupo de la paleta, categoría** | notify, messages |
| **Créditos** | **0** créditos cada vez que tiene éxito |
| **Efectos externos** | sí: Cambia algo fuera de Lumen, así que un reintento pregunta antes y una prueba muestra lo que haría en lugar de hacerlo. |
| **La instalación debe aportar** | `mail` |

## Entradas

| Propiedad | Valor |
| --- | --- |
| **Necesita** | nada |
| **Produce** | `fields` |
| **Trabaja sobre** | item: un documento cada vez |

Necesita y Produce son tipos de datos (file, text, fields, email). El editor ofrece un paso solo donde lo que necesita ya está en el camino. Consulta [Documentos y datos](https://docs.go-lumen.ai/es/concepts/how-flows-run.md#documents-and-data).

## Salidas

Un nodo posterior se refiere a una salida como `{nodeId.field}` en un texto, o `nodeId.field` en una condición.

| Salida | Tipo |
| --- | --- |
| `waited` | boolean |
| `lockWait` | boolean |
| `waitingFor` | string |
| `file` | string |

## Ajustes

Se definen bajo `config:` en el nodo del flujo. Los ajustes de texto pueden contener marcadores de posición como `{nodeId.field}`.

| Ajuste | Tipo | Valor por defecto | Descripción |
| --- | --- | --- | --- |
| `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) |

El JSON Schema completo de estos ajustes: [acknowledge.schema.json](https://docs.go-lumen.ai/schemas/steps/acknowledge.schema.json).

## Ejemplo

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

## Úsalo en un flujo

Un nodo que ejecuta `acknowledge` va bajo `spec.nodes` de un [Flow](https://docs.go-lumen.ai/es/concepts/how-flows-run.md#the-flow-as-yaml). Dale cualquier id y enumera en next los ids de los nodos siguientes.

```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
```
