Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
"OutputHtml content can not be transcribed" in live agent conversation transcript - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • "OutputHtml content can not be transcribed" in live agent conversation transcript
KB0791828

"OutputHtml content can not be transcribed" in live agent conversation transcript


648 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

When an end user requests to get connected to live agent through Virtual Agent chat, the live agent can see the VA conversation transcript, including Knowledge articles user was presented with. However, some transcripts don’t list the knowledge articles, instead they show an error “OutputHtml content can not be transcribed”. 

Cause

Parsing error when trying to convert the following html to an image for agent. This is due to the content snippet for article is ending with an invalid HTML tag

Resolution

Check which knowledge article that is returned when searching for the term is causing the issue.

Steps to identify the bad knowledge article :

  1. Find the sys_cb_topic/ sys_cs_topic which is being used to return the contextual search results.
  2. For each of the knowledge article that is returned when the search is performed, run the below script from scripts background :

 

var search_context_sys_id = '69a05b3853001300a9a2664906dc343f'; //this will be the sys_id of the contextual search used in the topic (variable name is search_context_sys_id)
var search_term = "email";  //search term used in virtual agent chat
 
var contextualSearch = new sn_itsm_va.VAContextualSearchUtil();
var response = contextualSearch.search(search_context_sys_id, search_term);
var success = contextualSearch.processSearchResponse(response);
if (!success) {
gs.print('failed');
}
var relevantSearchResults = contextualSearch.processGeneralResults(response, 20,0);
var kbResultCount = relevantSearchResults.length;
var search_kb_json_string = JSON.stringify(relevantSearchResults);
var kbJsonObj = JSON.parse(search_kb_json_string);

gs.print(kbJsonObj[0].snippet.substring(0,240));  // replace index of kbJsonObj with 0,1,2 etc based on the number of the articles returned

 

 

(For example in the above image, notice that only one article is returned. So we need to use kbJsonObj[0] to get the snippet for this article)

Check for the articles which are ending with an invalid tag in the print statement for snippet. (like <B)

3. Go to the knowledge article identified in Step 2, do a checkout on it and update the HTML content of it to remove the additional spaces so that the snippet would end with a valid html tag.

4. Publish the article with the modifications. Verify that the chat_queue_entry that is created now has the valid transcript in the worknotes.

 

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.