דלג לתוכן הראשי

וואטסאפ (המספר המשותף של האפליקציה)

Connection typewhatsapp-shared

מספר הוואטסאפ של האפליקציה, משותף לעסקים האחרים שלה. חברי הצוות מאמתים את הטלפון, וההודעות שלהם מגיעות לסביבת העבודה הזאת.

במבט אחד​

מאפייןערך
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.

הגדרות​

Set under config: on the Connector.

הגדרהסוגברירת מחדלתיאור
appClientחובהstring-App
sharedNameחובהstring-Shared number
sharedNamespaceחובהstring-Namespace of the shared number

ה-JSON Schema המלא של ההגדרות: whatsapp-shared.schema.json.

שימוש​

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