# 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/es/reference/steps/notify-in-app

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **Nombre del paso** | `notify-in-app` |
| **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** | nada |

## Entradas

| Propiedad | Valor |
| --- | --- |
| **Necesita** | nada |
| **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 |
| --- | --- | --- | --- |
| `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` (obligatorio) | 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) |

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

## Ejemplo

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

## Úsalo en un flujo

Un nodo que ejecuta `notify-in-app` 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: 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
```
