# Notify people in the app

> Puts a notification in the bell of your team, your admins or one person. The title and the message can use the details found.

Source: https://docs.go-lumen.ai/de/reference/steps/notify-in-app

## Auf einen Blick

| Eigenschaft | Wert |
| --- | --- |
| **Schrittname** | `notify-in-app` |
| **Ressource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palettengruppe, Kategorie** | notify, messages |
| **Credits** | **0** Credits 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** | nichts |

## Eingaben

| Eigenschaft | Wert |
| --- | --- |
| **Braucht** | nichts |
| **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 |
| --- | --- | --- | --- |
| `to` | string | `"members"` | To is who is told: every member, the admins, or one person. (one of members, admins, person) |
| `person` | string |  | Pick someone from your team, or use a value found earlier. (maxLength 320) |
| `title` (erforderlich) | string |  | The bold first line. (minLength 1; maxLength 200) |
| `body` | string |  | Optional. A line or two under the title. (maxLength 2000) |
| `link` | string |  | Optional. Where a click on the notification goes. (maxLength 500) |

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

## Beispiel

```yaml title="config"
body: 'Total: {total}'
title: New invoice from {supplier}
to: admins
```

## Im Flow verwenden

Ein Knoten, der `notify-in-app` 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: Flow
metadata:
  name: notify-in-app-example
  namespace: tenant-acme
spec:
  displayName: "Notify people in the app"
  triggers:
    - id: start
      ref: {name: manual-run}
      next: [notify-in-app]
  nodes:
    - id: notify-in-app
      stepRef: {name: notify-in-app}
      config:
        body: 'Total: {total}'
        title: New invoice from {supplier}
        to: admins
```
