Shwetadabgar
2 min readJan 1, 2021

--

ServiceNow Virtual Assistant: Training NLU models through REST Api

In the last article on ServiceNow basic configuration of a chatbot, we have discussed about NLU model creation.

  1. Navigate to models through filter and go to the NLU Models and copy the sys id as its required to be passed in the api body.

2. Use this POST api in postman to train your model.

https://dev****.service-now.com/api/now/v1/nlu/train

The first part is the instance url which you will get in the servicenow after creating your instance.

In the body pass your modelId which you copied from the model.

Body: {“modelId”: “Sys id of the model”}

In the Authorization tab use the basic Auth and pass your username and password of the servicenow instance.

3.Similarly you can publish the model using the below POST api

https://dev****.service-now.com/api/now/v1/nlu/publish

Body and authorization is same as train api.

4. The date and time gets updated in the models name.

--

--