ServiceNow
Integrate ServiceNow with Watson Assistant
Prerequisites
- Service Now Developer Instance
- Follow steps here
Get Developer Instance Credentials and OpenAPI spec
- Login into the developer site
- Click on the drop down arrow near your profile in top right corner and select "Manage Instance Password"
- Make note of the "username" and "password" values (this will be used later)
- Exit out of the window and select "Start Building"
- Press "All" in the header and search "REST API Explorer"
- Press "Export OpenAPI Specification (YAML/JSON)"
Edit Service Now OpenAPI spec
- Open the downloaded API spec
- Remove the forward slash at the end of the url string within the "servers" block to look like this:
- Add BasicAuth Component to the OpenAPI spec (make sure each block is comma delimited):
"components":{
"securitySchemes": {
"basicAuth": {
"type": "http",
"scheme": "basic"
}
}
} - Save file
Build Custom Extenstion
- Within WatsonX Assistant, navigate to the sidebar and select "Integrations"
- Select "Build Custom Extension"
- For the "Basic Information" page fill out all appropriate fields and click "Next"
- Upload the Service Now OpenAPI spec, click "Next" and then "Finish"
- Within the extensions in Watson Assistant click "Add+" on the recently made Service Now custom extension
- On the Authentication page fill out the username and password fields with the values saved from "Get Developer Instance Credentials and OpenAPI spec" step 3
- Click "Next" and then "Finish"