The ServiceNow and Kbot Live Chat integration allows users interacting with Kbot to log issues or make requests in the ServiceNow ITSM system. This page describes how to set up the ITSM configuration.
Prerequisites
Create a service account for Kbot. This account must have access to sys_choice
table to get displayed names of ticket statuses and categories. Make sure you grant proper permissions for such API requests.
Kbot setup
General configuration
To process incidents and demands, make sure your Kbot configuration includes the following:
The
ticket_url
configuration variable is set to the ServiceNow instance URL, starting withhttps://
. For example:
ticket_url = https://my-company.service-now.com
The
ticket_user
andticket_password
variables store the username and the corresponding password of your ServiceNow service account. To configure these variables, open the Kbot back office and go to Configuration > General > ITSM.
In this view, you can also provide other ITSM parameters. To learn more about it, see the built-in documentation.
Incidents
To process incidents, make sure your Kbot configuration includes the following:
The Incident intent is enabled and available.
The list of additional settings for access options of logging issues. You can add these settings into the kbot.conf
file if you need to redefine default values.
Parameter | Description | Sample |
---|---|---|
| Contains the mapping of |
|
| Specify |
|
| Specify |
|
Requests
To process requests, make sure your Kbot configuration includes the following:
The Search ServiceNow catalog intent is enabled and available.
The list of additional settings for access options of a service catalog. You can add these settings into the kbot.conf
file.
Parameter | Description | Sample |
---|---|---|
| A comma separated list of |
|
| Contains the mapping of |
|
| Contains the mapping of |
|
| Specify |
|
| Specify |
|
Testing
Healthcheck
Once the ITSM is configured, you can use the Test button to see whether the portal is available and whether the service account that you are using is valid.
Creating an incident/request
You can test the incidents or requests in the chat. Note that you must have a ServiceNow user with the access to the portal.
Incident
In the chat, click the Quick Ticket Management button, then select Submit an incident.
Request
To create a request, run the following command in the chat: #do Search ServiceNow catalog:: <requested item>
.
Managing tickets
In the chat, click the Quick Ticket Management button, then select List my tickets. The bot displays the complete list of tickets (both incidents and requests) with the current status.
Troubleshooting
If the ITSM configuration is invalid, the Healthcheck displays an error. In this case, follow the recommendations given in the error message.
If the dialog in the chat seems strange and you do not get expected replies, you can turn on the debugging. To do so, run the following command:
#debug on
and repeat the scenario to see the details. When you have finished the debugging, you can turn off the debugging functionality by typing#debug off
.