How to integrate Digital DX AI with ServiceNow
As a first step in setting up the Digital DX Rapid Helpdesk solution, set up the ServiceNow NodeJS provider integration in Digital DX AI.
- Created an API key in Digital DX AI that has access to your knowledge base and has write permissions for knowledge base
- Set up OAuth in ServiceNow and have your OAuth API endpoint client ID and secret ready
- Created a user in ServiceNow that will be making the requests to the API on behalf of the user
The Digital DX Rapid Helpdesk includes a bot that enables users to do the following in ServiceNow:
- Create a new incident
- Update an existing incident
- Check the status of an existing incident
- Download the relevant executable file.
Important: The executable file is going to generate some files in the same folder where you download it. Make sure you have write access to this folder.
- Download the sample configuration file.
You can use this file to provide the data the script needs:
Table 1. Name mapping between json template and script Name in json file Name in script instanceName ServiceNow instance name clientId Note: If you use basic authentication, you can delete this name from the file.
OAuth API Endpoint Client ID clientSecret Note: If you use basic authentication, you can delete this name from the file.
OAuth API Endpoint Client Secret username ServiceNow username password ServiceNow password bold360Account Digital DX AI Account bold360Kb Digital DX AI Knowledge Base bold360ApiKey Digital DX AI API key Important: If you decide to use this file, make sure you rename it to config.json so that the script recognizes it.
- Run the script.
If you downloaded the configuration file and provided the required values in it, all values will be populated automatically in the script. If not, provide the following when prompted and press Enter:
- ServiceNow instance name
- Select authentication method between basic and OAuth
- OAuth API Endpoint Client ID if you selected OAuth as authentication method
- OAuth API Endpoint Client Secret if you selected OAuth as authentication method
- ServiceNow username
- ServiceNow password
- This executable is going to create all the required articles for the bot in your knowledge base in Digital DX AI.
If you downloaded the configuration file and provided the required values in it, all values will be populated automatically in the script. If not, provide the following when prompted and press Enter:
- Digital DX AI Account
Your Digital DX AI account name is what comes before nanorep.co in your Digital DX AI account URL.
- Digital DX AI Knowledge Base
You can see what your knowledge base is called at the top of the menu on the left in Digital DX AI.
- Digital DX AI API key
Make sure your API key has access to the knowledge base you specified in the previous step and has write permissions for knowledge base.
Result: Once the script is done running, you'll see Done in the command line. You can close the script.
- Digital DX AI Account
- a providers folder with the following files in it:
- create-incident.detect.js
- create-incident.get.js
- get-incident.detect.js
- get-incident.get.js
- get-open-incidents.get.js
- update-incident.detect.js
- update-incident.get.js
- a widget-settings.json file.
The script also added all the required articles to your knowledge base.