logo

NJP

Using Keywords and NLU together in Virtual Agent

Import · Mar 15, 2021 · article

This article is to address scenarios where customers want to use keywords for some languages and NLU for other in VA. This might happen because of two reasons:

  • ServiceNow doesn’t support certain languages yet that a customer wants or has limited support, as it is an early release language
  • The customer wants to implement NLU for VA in a phased manner, i.e. they want to start with a few languages in NLU while still providing keyword support for other languages

In the example below, the customer has implemented a custom model - hr_services_english in English only. The model hr_services_english contains the intents: apply_leave , holiday_enquiry and payroll_information.

image

Now they create a VA Topic: apply_leave and input the intent:apply_leave from model: hr_services_english.

image

** Note: Keywords for the VA topic are not specified yet. **

Now, after a couple months, they open an office in Japan.

The client wants to use the existing English model instead of creating a new model in Japanese for multiple reasons.

How can they accomplish this?

1. Install the Japanese localization plugin

image

2. Add English keywords in the VA Topic, e.g “sick leave”.

image

3. In the sys_translated_text table, add the Japanese translation record for the English keyword “sick leave” and Table Name: “Topic[sys_cs_topic]”.

image

4. In the ts_index_name table, click on the sys_cs_topic table record to open it.

image

5. In the sys_cs_topic record, click to Regenerate the text index.

image

Topic Detection:

For the English word – “sick leave”, the Japanese word is 病気休暇.Test translated Japanese keyword to detect the apply_leave topic.

image

View original source

https://www.servicenow.com/community/virtual-agent-nlu-articles/using-keywords-and-nlu-together-in-virtual-agent/ta-p/2306152