In one of my scenarios, if the user-agent discussion terminates, I will receive a summary of the dialogue from an outside source. This chat summary is something I wanted to save in the after-call work section.
Please let me know the best place to store this data and the corresponding apis.
When the agent ends the chat, I must give the iframe the complete conversation. After I give the data to the iframe, my custom-service will send me a summary of the chat. I'm loading my own iframe address through an interaction widget.
The produced summary must be saved in the after-call work area (notes or wrapup codes).
Please let me know where to put them and which APIs to utilize, as well as where to put them.
I am using below to apis to store the data on notes, conversationsApi.patchConversationsChatParticipant(currentConversationId, customerId, {body})
After clicking the end button, the agent is receiving the summary in my custom intereaction widget and it is saving through the above mentioned API call, but if I am navigating to notes section. again it is updating with empty string and my updated string I am unable to see.