WhatsApp (app's shared number)
Connection type
whatsapp-sharedYour app's WhatsApp number, shared with its other businesses. Members verify their phone, and their messages reach this workspace.
At a glance
| Property | Value |
|---|---|
| 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.
Settings
Set under config: on the Connector.
| Setting | Type | Default | Description |
|---|---|---|---|
appClientrequired | string | - | App |
sharedNamerequired | string | - | Shared number |
sharedNamespacerequired | string | - | Namespace of the shared number |
The full JSON Schema of these settings: whatsapp-shared.schema.json.
Use it
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
Was this page helpful?