PWA Webchat Events
When you use PWA Chat App & Chat Link, the platform sends webhook events for every customer interaction from the moment the link is clicked until the chat room session is closed.
List of PWA Event Types
Section titled “List of PWA Event Types”Event Name (event) | When It Is Sent |
|---|---|
pwa_redirect_clicked | When the customer opens the short chat link URL and is redirected to the PWA chat room. |
pwa_session_started | When a PWA chat room session is successfully initialized on the customer’s browser. |
pwa_message_received | When the customer sends an incoming message from the PWA chat room. |
pwa_message_sent | When an agent or automation bot sends an outgoing message to the customer’s PWA chat room. |
pwa_push_delivered | When a Web Push notification is successfully delivered to a customer’s device subscribed to PWA notifications. |
pwa_session_closed | When a PWA chat room session ends due to expiration or being closed. |
Example Payload & Data Attributes
Section titled “Example Payload & Data Attributes”{ "event": "pwa_session_started", "tenant_id": "0195f2a0-1234-7000-8000-000000000001", "timestamp": "2026-11-04T11:00:00Z", "data": { "link_id": "0195f2c0-1111-7000-8000-000000000022", "session_id": "0195f2c1-2222-7000-8000-000000000033", "conversation_id": "0195f2a9-0000-7000-8000-000000000045", "contact_id": "0195f2a5-0000-7000-8000-000000000012", "phone": "+6281234567890", "expires_at": "2026-11-05T11:00:00Z" }}| Field | Type | Description |
|---|---|---|
event | string | PWA event name (pwa_redirect_clicked, pwa_session_started, pwa_message_received, pwa_message_sent, pwa_push_delivered, pwa_session_closed). |
data.link_id | string (UUID) | The one-time chat link ID created via /v1/webchat/links or automation step Create chat link. |
data.session_id | string (UUID) | The PWA chat room session ID. |
data.conversation_id | string (UUID) | Conversation ID in Inbox. |
data.contact_id | string (UUID) | The customer contact ID attached to the chat link. |
data.message_id | string (UUID) | Specific to pwa_message_received and pwa_message_sent: The ID of the message sent or received. |