Servicenow nlu movement to other environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 03:54 AM
Hello All,
I have my intent and entity defined in servicenow dev environment. Now i want to move entire nlu model to uat, but when it tried exporting to csv from dev and importing that in uat, i got only intents and did not get associated entities to uat. Can someone let me know how can i do that.
I have update sets created, but it has lot of entries, which includes testing of virtual agent chats as well. It is leading to confusion and hence i tried using exporting and importing. Please advise.
Thanks,
Satish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 12:23 AM
Hello,
Please see below query. I was searching for some query using try model and I got the result as below screenshot,
It is pointing to update the catalog item wordings intent with 100% threshold.
If I ask the same question in Virtual Agent, It is pointing to different intent and asking to confirm,
The question should not hit this intent(Any query that contains the word RITM should not hit Search Service Catalogs intent). I didn't understand why the results vary using try model and virtual agent when everything is in published state.
Could you please help on this and also "Any query that contains the word RITM should not hit Search Service Catalogs intent" - I tried to write negative vocabulary like this - ^(?!.*\bRITM\w+\b). But nothing worked.
Please answer these two qns.
Thanks,
Satish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2023 12:37 AM
Unfortunately, this looks like a poorly implemented NLU Model if you are getting unexpected intents predicted with certain test utterances. I cannot answer these questions without looking at your NLU implementation, so that I can explain why you are getting this behaviour, and changes you would need to make to correct it. Please raise a case with ServiceNow Technical Support with the same questions, and state that I will review it, so that it will get assigned to me for further assistance.
Regards,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023 09:50 AM - edited 05-30-2023 09:51 AM
Hi Satish,
Here's how I do it:
- Install "Add To Update Set" utillity
- Create an update set and make it current
- Go into sys_nlu_model and click on the model you want to transfer to UAT
- You'll see a link "Add to Update Set" click on it
- Complete the update set
- Install Update Set on UAT
- Train and publish model on UAT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2023 04:28 AM
Hello Raj,
Thanks for the reply. While I look into the solution, could you please help me with below query I have,
------
I want to exclude certain words to hit my intent. For example, all the words starting with ritm.
I don't want to write any regex in vocabulary as that will be commonly used for model. I want to write specifically in the intent itself. I tried writing regex in the utterance directly (Like this - ^(?!.*\bRITM\w+\b)). But it did not work.
I do see it as limitation, as I can write what I want in the utterance, but what about the words/sentences which I don't want to hit the intent. Is there a way to write an utterance that will work as "words does not contain string RITM".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 06:14 PM - edited 06-14-2023 06:24 PM
I think @Victor Chen has the best walkthrough on moving between environments Migrating Virtual Agent and NLU between instances ... - ServiceNow Community. The only item I think his directions are missing is the db_image table as images break without it which I have posted to have a newer version created. It would be nice if the add to update set included this information @Victor Chen , hint hint lol