-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docs about chat_received webhook (#148)
* add docs about chat_received webhook * lint * Update _snippets/webhooks/thread-chat-received.mdx Co-authored-by: David Leyland <[email protected]> * Update api-reference/webhooks/thread-chat-received.mdx Co-authored-by: Mathias Vagni <[email protected]> --------- Co-authored-by: David Leyland <[email protected]> Co-authored-by: Mathias Vagni <[email protected]>
- Loading branch information
1 parent
a1c776a
commit 7c9b895
Showing
3 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
```json | ||
{ | ||
"timestamp": "2023-11-02T15:32:28.831Z", | ||
"workspaceId": "w_01GST0W989ZNAW53X6XYHAY87P", | ||
"payload": { | ||
"eventType": "thread.chat_received", | ||
"chat": { | ||
"timelineEntryId": "t_01HE8AM6GZG6C3CM344HFDM3J3", | ||
"id": "ch_01HE8AM6GZPZ3Q3RBEVE5TZ80X", | ||
"customerReadAt": null, | ||
"attachments": [], | ||
"text": "You are welcome!", | ||
"createdAt": "2023-11-02T15:32:28.831Z", | ||
"createdBy": { | ||
"actorType": "customer", | ||
"userId": "c_01HDRC3CJHBWBAAF4K63Z11XZ5" | ||
}, | ||
"updatedAt": "2023-11-02T15:32:28.831Z", | ||
"updatedBy": { | ||
"actorType": "customer", | ||
"userId": "c_01HDRC3CJHBWBAAF4K63Z11XZ5" | ||
} | ||
}, | ||
"thread": { | ||
"id": "th_01HDRC3CRY6ESPZJ7FZCTRQWYH", | ||
"customer": { | ||
"id": "c_01HDRC3CJHBWBAAF4K63Z11XZ5", | ||
"email": { | ||
"email": "[email protected]", | ||
"isVerified": false, | ||
"verifiedAt": null | ||
}, | ||
"externalId": null, | ||
"fullName": "Peter Santos", | ||
"shortName": "Peter", | ||
"markedAsSpamAt": null, | ||
"markedAsSpamBy": null, | ||
"customerGroupMemberships": [], | ||
"createdAt": "2023-10-27T10:50:24.209Z", | ||
"createdBy": { | ||
"actorType": "system", | ||
"system": "email_inbound_handler" | ||
}, | ||
"updatedAt": "2023-11-02T08:57:32.944Z", | ||
"updatedBy": { | ||
"actorType": "user", | ||
"userId": "u_01H1V4NA10RMHWFBXB6A1ZBYRA" | ||
} | ||
}, | ||
"title": "Unable to tail logs", | ||
"previewText": "Hey, I am currently unable to tail the logs of the service svc-8af1e3", | ||
"priority": 2, | ||
"externalId": null, | ||
"status": "TODO", | ||
"statusChangedAt": "2023-11-02T08:57:32.943Z", | ||
"statusChangedBy": { | ||
"actorType": "user", | ||
"userId": "u_01H1V4NA10RMHWFBXB6A1ZBYRA" | ||
}, | ||
"statusDetail": null, | ||
"assignee": null, | ||
"assignedAt": null, | ||
"labels": [], | ||
"firstInboundMessageInfo": { | ||
"timestamp": "2023-10-27T10:50:24.323Z", | ||
"messageSource": "CHAT" | ||
}, | ||
"firstOutboundMessageInfo": { | ||
"timestamp": "2023-10-27T10:50:52.944Z", | ||
"messageSource": "CHAT" | ||
}, | ||
"lastInboundMessageInfo": { | ||
"timestamp": "2023-10-27T15:05:30.223Z", | ||
"messageSource": "CHAT" | ||
}, | ||
"lastOutboundMessageInfo": { | ||
"timestamp": "2023-10-27T15:04:49.521Z", | ||
"messageSource": "CHAT" | ||
}, | ||
"supportEmailAddresses": ["[email protected]"], | ||
"createdAt": "2023-10-27T10:50:24.323Z", | ||
"createdBy": { | ||
"actorType": "system", | ||
"system": "email_inbound_handler" | ||
}, | ||
"updatedAt": "2023-11-02T08:57:32.943Z", | ||
"updatedBy": { | ||
"actorType": "user", | ||
"userId": "u_01H1V4NA10RMHWFBXB6A1ZBYRA" | ||
} | ||
} | ||
}, | ||
"id": "pEv_01HE8AM6GZVS1S3609PFGR30FE", | ||
"webhookMetadata": { | ||
"webhookTargetId": "whTarget_01HD4400VTDJQ646V6RY37SR7K", | ||
"webhookTargetVersion": "2024-09-18", | ||
"webhookDeliveryAttemptId": "whAttempt_01HE8ANGEGVQVTCY3DD30CZ8G4", | ||
"webhookDeliveryAttemptNumber": 1, | ||
"webhookDeliveryAttemptTimestamp": "2023-11-02T15:33:11.760Z" | ||
}, | ||
"type": "thread.chat_received" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: 'Chat received' | ||
--- | ||
|
||
This event is fired when a chat message from a customer is received. | ||
|
||
## Schema | ||
|
||
[**View JSON Schema →**](https://core-api.uk.plain.com/webhooks/schema/latest.json) | ||
|
||
Example: | ||
|
||
<Snippet file="webhooks/thread-chat-received.mdx" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters