Event Payload

(参考用) 接客チャットの重要payloadデータ

type

userChat message

state

userChattypeの場合、

entity.state:

unassigned :担当者なし

assigned: 担当者あり

messagetypeの場合、

refers.userChat.state:

unassigned :担当者なし

assigned :担当者あり

holding :保留中

solved :終了リクエスト済み

closed :終了済み

trash:削除済み

userChatId

userChattypeの場合、

entity.id

message typeの場合、

entity.chatId

firstOpenedAt

はじめて接客チャットにつながった瞬間

openedAt

接客チャットにつながった瞬間(最初、もしくは終了リクエストしてからお客様が会話を続けるボタンを押して、またメッセージを送った場合)

接客チャットリンク

userChattypeの場合、

https://desk.channel.io/#/channels/ Entity Channel ID/user_chats/ Entity ID

message typeの場合、

https://desk.channel.io/#/channels/ Entity Channel ID/user_chats/ Entity Chat ID

チャットの内容

userChattypeの場合、

Refers Message Plain Text

message typeの場合、

Entity Plain Text

お客様の名前

userChattypeの場合、

Entity Name

message typeの場合、

Refers User Name

その他の顧客プロフィール情報

userChattypeとmessage typeで同様

Refers User Profile オブジェクトの中

など

担当者Id

userChattypeの場合、

Entity Assignee Id

message typeの場合、

Refers User Chat Assignee Id

(※ ほかプラットフォームに連携する場合は、Code By Aapierアクションなどを使ってIDのマッチングが必要なため設定&管理工数がかかるのでおすすめしない)

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0430607c-4396-44bd-9c87-de1566bc974a/_2021-05-05_16.03.54.png

Sample Payload