WhatsApp (app's shared number)
Tipo de conexión
whatsapp-sharedYour app's WhatsApp number, shared with its other businesses. Members verify their phone, and their messages reach this workspace.
De un vistazo
| Propiedad | Valor |
|---|---|
| Class name | whatsapp-shared |
| Resource | ConnectorClass (lumen.ai/v1alpha1); a workspace creates a Connector with classRef: {name: whatsapp-shared} |
| Driver | whatsapp-shared |
| Provides | whatsapp |
| Mode | push (the outside system pushes data in) |
A workspace adds this connection on the Connections page or with lumen connect; credentials are kept in a Secret, never in the flow.
Ajustes
Se definen bajo config: en el Connector.
| Ajuste | Tipo | Valor por defecto | Descripción |
|---|---|---|---|
appClientobligatorio | string | - | App |
sharedNameobligatorio | string | - | Shared number |
sharedNamespaceobligatorio | string | - | Namespace of the shared number |
El JSON Schema completo de estos ajustes: whatsapp-shared.schema.json.
Uso
connector.yaml
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: my-whatsapp-shared
namespace: tenant-acme
spec:
classRef: {name: whatsapp-shared}
config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: whatsapp-message-received-whatsapp-shared-example
namespace: tenant-acme
spec:
displayName: "WhatsApp (app's shared number)"
triggers:
- id: start
ref: {name: whatsapp-message-received}
connectorRef: {name: my-whatsapp-shared}
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
¿Te ha resultado útil esta página?