# Reply to the email

> Replies in the same thread to the email that started the run, with files attached if you choose.

Source: https://docs.go-lumen.ai/es/reference/steps/reply-to-email

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **Nombre del paso** | `reply-to-email` |
| **Recurso** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Grupo de la paleta, categoría** | notify, messages |
| **Créditos** | **1** crédito 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** | `email` |
| **Produce** | nada |
| **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

Sin salidas con nombre. Los nodos posteriores siguen viendo todo lo producido antes en el camino, y este paso pasa los documentos sin cambios.

## 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 |
| --- | --- | --- | --- |
| `body` (obligatorio) | string |  | Body is the reply, one paragraph per line. (minLength 1; maxLength 4000) |
| `attach` | string | `"none"` | Attach says which files go with the reply: none, the files the run holds, or only those named in Files. (one of none, run, chosen) |
| `files` | list of string |  | Files names the files to attach when Attach is chosen. (maxItems 20) |
| `replyAll` | boolean |  | ReplyAll also writes to everyone else the original was sent to. |

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

## Ejemplo

```yaml title="config"
attach: none
body: שלום, תודה על פנייתך. נחזור אליך עם הצעת מחיר עד סוף היום.
```

## Úsalo en un flujo

Un nodo que ejecuta `reply-to-email` 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: Connector
metadata:
  name: my-email-forward
  namespace: tenant-acme
spec:
  classRef: {name: email-forward}
  config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: reply-to-email-example
  namespace: tenant-acme
spec:
  displayName: "Reply to the email"
  triggers:
    - id: start
      ref: {name: email-arrives}
      connectorRef: {name: my-email-forward}
      next: [reply-to-email]
  nodes:
    - id: reply-to-email
      stepRef: {name: reply-to-email}
      config:
        attach: none
        body: שלום, תודה על פנייתך. נחזור אליך עם הצעת מחיר עד סוף היום.
```
