Live chat - modify original message | Community
Skip to main content

Live chat - modify original message

  • July 6, 2022
  • 3 replies
  • 0 views

Rocking

Hello team, 

I have requirement to update original message of live chat before it send to visitor/agent.

i have used below API but not able to update chat it show me its mutable field.

https://developer.zendesk.com/api-reference/live-chat/chat-api/chats/#update-chat 

Can any one have a idea how to change/modify/append texts to original chat message.

 

3 replies

  • July 6, 2022

Hi there,

Past chat messages are not editable both in the UI and via the APIs. You can only delete the chat if you want to remove a conversation or redact/delete an attachment. You can learn more here: https://support.zendesk.com/hc/en-us/articles/4408882994714-Permanently-deleting-chats-and-attachments 

-Ramin


Rocking
  • Author
  • July 7, 2022

Thanks Ramin for quick response,

Actually, I don't want to update past chat. I want to modify live chat in between visitor and agent, while visitor send message through live chat and agent receive that.

like say for example, if visitor has send 'Hello, it's beautiful day' than agent should get 'Hola, es un hermoso día'. Here, I want to translate messages which is basically our requirements.

Can you please suggest me any API or any events from which I could achieve this use case?

It would be really helpful.

Thanks & Regards,

Charmi


  • July 7, 2022

If you are purely looking to support translations, we have built in features that detect and translate live conversations in the widget and in the chat dashboard. You can learn more about the translation feature here:

https://support.zendesk.com/hc/en-us/articles/4408827559962-How-does-Google-Translate-work-with-Chat-

https://support.zendesk.com/hc/en-us/articles/4408832500506-Translating-conversations-in-the-Zendesk-Agent-Workspace

If for whatever reasons you don't want to use our translation feature, you could look at building a private side bar app that uses the API to get the chat messages and translate it accordingly: https://developer.zendesk.com/api-reference/apps/apps-chat-api/chat_sidebar/#chatmessages