Zendesk Chat API JSON
CompletadaWe're using the Zendesk Chat API to pull data for historical chats following this documentation:
https://developer.zendesk.com/rest_api/docs/chat/chats#json-format
We noticed that for the individual message objects in the `history` field, there is no "sender type" field specified (i.e. did the agent or visitor send this message?) beyond the `name` of the sender. This becomes an issue when the agent and visitor both have the same name set (e.g. both set their display name to "Bob"): we can't distinguish who sent each message in this case.
We noticed that the `msg_id` field is set on the message object for visitor-sent messages, but we couldn't find any documentation on whether this would be consistent and reliable for us to use to distinguish the "sender type".
Can you add a "sender type" to the messages in the `history` field of the API format? Or can you confirm that `msg_id` is a valid way to distinguish the sender type? We think that the API is ambiguous/incomplete as is and it affects our ability to build products for our users from their chat history.
-
Hi David,
Thanks for posting your feedback. I have shared it with the platform team and they agree it is something that should eventually be added in the response but there is no timeline to share on when right now.
Once we have something to share, will update the thread here.
Thanks,
Ramin
-
Hey David,
Good news! We just released an update to the APIs to add sender type in the response. It isn't reflected in the public docs yet but you should see it in the response starting today.
The field is called sender_type in the message object.
-Ramin
Iniciar sesión para dejar un comentario.
2 Comentarios