Skip to main content

Notify people in the app

Stepnotify-in-appnotifyside effects

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

At a glance​

PropertyValue
Step namenotify-in-app
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categorynotify, messages
Credits0 credits each time it succeeds
Side effectsyes It changes something outside Lumen, so a retry asks first and a test shows what it would do instead of doing it.
Installation must providenothing

Inputs​

PropertyValue
Needsnothing
Producesnothing
Works onitem 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.

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.

SettingTypeDefaultDescription
tostring"members"To is who is told: every member, the admins, or one person.one of members, admins, person
personstring-Pick someone from your team, or use a value found earlier.maxLength 320
titlerequiredstring-The bold first line.minLength 1; maxLength 200
bodystring-Optional. A line or two under the title.maxLength 2000

The full JSON Schema of these settings: notify-in-app.schema.json.

Example​

Tell the team a new invoice arrived

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. Give it any id, and list the next node ids in next.

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