Is it possible somehow to pick up the conversational log from third party chat system, and copy it to the customer agents script tab, so that they know when customer escalates to a purecloud chat widget, that the agent know where to pick up?
I searched thru API documentation, but havent find apropriate way to do this.
Okay it's related to this topic. I managed to import chat history to custom field of the purecloud Chat Config window using converting an array to string. But do you have an idea how the custom field is formatted. I am asking that because I want to replace all the dots with the new line breaks, so that text is displayed much clearly for the agents. I used: chatHistory = chatHistory2.replace("/./gi", "\n"); but with no sucess.
Do you have any idea how to break string so on every dot it prints text in new line.
I tested this with custom data on a web chat and sent a string that contained newline characters (from a textarea input in the page). This content was displayed correctly showing the text multiple lines. The trick is that you must set the variable with a value that contains the actual newline character, not the string \n.