Saltar al contenido principal

Notify people in the app

Pasonotify-in-appnotifyefectos externos

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

De un vistazo​

PropiedadValor
Nombre del pasonotify-in-app
RecursoClusterStep (lumen.ai/v1alpha1)
Grupo de la paleta, categoríanotify, messages
Créditos0 créditos cada vez que tiene éxito
Efectos externossí 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 aportarnada

Entradas​

PropiedadValor
Necesitanada
Producenada
Trabaja sobreitem 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.

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}.

AjusteTipoValor por defectoDescripción
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
titleobligatoriostring-The bold first line.minLength 1; maxLength 200
bodystring-Optional. A line or two under the title.maxLength 2000

El JSON Schema completo de estos ajustes: notify-in-app.schema.json.

Ejemplo​

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. Dale cualquier id y enumera en next los ids de los nodos siguientes.

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