Forum Discussion
j_angelevski
5 years agoContributor III
I created two solutions for this:
-
Output a string
-
Output html string
You can download the pipeline here
ChatHistory_Community_2021_08_10.slp (12.6 KB)
The problem here is what happens with those objects that don’t have the text
field ? What happens when content-type
is something else than text ? For now the pipeline I attached is not omitting those fields with empty text or where content-type is not text, it will simply display it as empty string.
Sample output from pipeline solution 1:
Virtual assistant chat history:
Info Person: demo: I'm unable to create a new sale order
Test:
Test: Please <a role="button" tabindex="0" class="create-ticket"> click confirm </a> to create an incident for your query. If you do not wish to create an incident just ask any other question.
Sample html output from solution 2:
<body><h1>Virtual assistant chat history:</h1><br/><p>Info Person : demo: I'm unable to create a new sale order</p><p>Test : </p><p>Test : Please <a class="create-ticket" role="button" tabindex="0"> click confirm </a> to create an incident for your query. If you do not wish to create an incident just ask any other question.</p></body>
Of course the html output is not formatted here but you can see how it looks on jsfiddle: