Zum Hauptinhalt springen

WhatsApp (app's shared number)

Verbindungstypwhatsapp-shared

Your app's WhatsApp number, shared with its other businesses. Members verify their phone, and their messages reach this workspace.

Auf einen Blick​

EigenschaftWert
Class namewhatsapp-shared
ResourceConnectorClass (lumen.ai/v1alpha1); a workspace creates a Connector with classRef: {name: whatsapp-shared}
Driverwhatsapp-shared
Provideswhatsapp
Modepush (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.

Einstellungen​

Wird unter config: im Connector gesetzt.

EinstellungTypStandardwertBeschreibung
appClienterforderlichstring-App
sharedNameerforderlichstring-Shared number
sharedNamespaceerforderlichstring-Namespace of the shared number

Das vollständige JSON Schema dieser Einstellungen: whatsapp-shared.schema.json.

Verwendung​

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