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

## At a glance

| Property | Value |
| --- | --- |
| **Step name** | `notify-in-app` |
| **Resource** | ClusterStep (`lumen.ai/v1alpha1`) |
| **Palette group, category** | notify, messages |
| **Credits** | **0** credits each time it succeeds |
| **Side effects** | yes: It changes something outside Lumen, so a retry asks first and a test shows what it would do instead of doing it. |
| **Installation must provide** | nothing |

## Inputs

| Property | Value |
| --- | --- |
| **Needs** | nothing |
| **Produces** | nothing |
| **Works on** | item: one document at a time |

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See [Documents and data](https://docs.go-lumen.ai/concepts/how-flows-run.md#documents-and-data).

## Outputs

No named outputs. Later nodes still see everything produced earlier on the path, and this step passes the documents on unchanged.

## Settings

Set under `config:` on the flow node. Text settings may contain `{nodeId.field}` placeholders.

| Setting | Type | Default | Description |
| --- | --- | --- | --- |
| `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` (required) | 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) |

The full JSON Schema of these settings: [notify-in-app.schema.json](https://docs.go-lumen.ai/schemas/steps/notify-in-app.schema.json).

## Example

Tell the team a new invoice arrived

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

## Use it in a flow

A node that runs `notify-in-app` goes under `spec.nodes` of a [Flow](https://docs.go-lumen.ai/concepts/how-flows-run.md#the-flow-as-yaml). Give it any id, and list the next node ids in next.

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