WhatsApp Business API¶
Webhook konfigurace¶
integration:
name: "WhatsAppIntegration"
type: "webhook"
provider: "Meta"
endpoint: "/webhooks/whatsapp"
authentication:
verifyToken: "{env:WA_VERIFY_TOKEN}"
appSecret: "{env:WA_APP_SECRET}"
messageHandling:
# Příchozí textová zpráva
- type: "text"
action:
findOrCreateContact:
phoneField: "from"
createActivity:
type: "WhatsAppMessage"
direction: "Inbound"
notifyUser:
role: "Dispatcher"
# Příchozí obrázek
- type: "image"
action:
downloadMedia: true
attachToContact: true
createLead:
name: "WhatsApp foto od {contact.name}"
source: "WhatsApp"
templates:
serviceConfirmation:
name: "service_confirmation"
language: "cs"
components:
- type: "body"
parameters:
- "{serviceRequest.number}"
- "{serviceTrip.scheduledStart}"
- "{technician.name}"
Typy zpráv¶
| Typ | Popis |
|---|---|
text |
Textová zpráva |
image |
Obrázek |
document |
Dokument |
location |
Poloha |
contact |
Kontakt |
➡️ Pokračujte na Google Maps.