# 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/de/reference/steps/reply-to-email

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Schrittname** | `reply-to-email` |
| **Ressource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palettengruppe, Kategorie** | notify, messages |
| **Credits** | **1** Credit bei jedem Erfolg |
| **Externe Wirkung** | ja: Er ändert etwas außerhalb von Lumen, deshalb fragt ein Wiederholungsversuch vorher nach, und ein Test zeigt, was er tun würde, statt es zu tun. |
| **Die Installation muss bereitstellen** | `mail` |

## Eingaben

| Eigenschaft | Wert |
| --- | --- |
| **Braucht** | `email` |
| **Liefert** | nichts |
| **Arbeitet auf** | item: einem Dokument nach dem anderen |

Braucht und Liefert sind Datentypen (file, text, fields, email). Der Editor bietet einen Schritt nur dort an, wo das, was er braucht, schon auf dem Pfad liegt. Siehe [Dokumente und Daten](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#documents-and-data).

## Ausgaben

Keine benannten Ausgaben. Spätere Knoten sehen weiterhin alles, was auf dem Pfad zuvor entstanden ist, und dieser Schritt reicht die Dokumente unverändert weiter.

## Einstellungen

Wird unter `config:` im Knoten des Flows gesetzt. Texteinstellungen dürfen Platzhalter wie `{nodeId.field}` enthalten.

| Einstellung | Typ | Standardwert | Beschreibung |
| --- | --- | --- | --- |
| `body` (erforderlich) | 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. |

Das vollständige JSON Schema dieser Einstellungen: [reply-to-email.schema.json](https://docs.go-lumen.ai/schemas/steps/reply-to-email.schema.json).

## Beispiel

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

## Im Flow verwenden

Ein Knoten, der `reply-to-email` ausführt, steht unter `spec.nodes` eines [Flow](https://docs.go-lumen.ai/de/concepts/how-flows-run.md#the-flow-as-yaml). Geben Sie ihm eine beliebige id und nennen Sie in next die ids der nächsten Knoten.

```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: שלום, תודה על פנייתך. נחזור אליך עם הצעת מחיר עד סוף היום.
```
