ServiceNow
Get ServiceNow Access Token
Gets the access token the other ServiceNow tools need. The bot calls this first.
Unverified
What the model is told
Get an access token for ServiceNow. Call this once before any other ServiceNow tool, then pass the access_token value from the response to those tools. Never read the token aloud or share it with the customer. If a ServiceNow tool returns a 401, call this again to get a fresh token.
Request
POSThttps://YOUR_INSTANCE.service-now.com/oauth_token.do
Headers
Content-Typeapplication/x-www-form-urlencoded
Body
grant_type=client_credentials&client_id=YOUR_SERVICENOW_CLIENT_ID&client_secret=YOUR_SERVICENOW_CLIENT_SECRETParameters
None.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "b315012b-8fb1-4e32-9888-ffd350259ccd",
"type": "HTTP_REQUEST",
"label": "Get ServiceNow Access Token",
"name": "get_servicenow_access_token",
"customName": false,
"description": "Get an access token for ServiceNow. Call this once before any other ServiceNow tool, then pass the access_token value from the response to those tools. Never read the token aloud or share it with the customer. If a ServiceNow tool returns a 401, call this again to get a fresh token.",
"parameters": [],
"config": {
"endpoint": {
"method": "POST",
"url": "https://YOUR_INSTANCE.service-now.com/oauth_token.do"
},
"headers": [
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
],
"body": "grant_type=client_credentials&client_id=YOUR_SERVICENOW_CLIENT_ID&client_secret=YOUR_SERVICENOW_CLIENT_SECRET",
"timeout": null
}
}
}IDs are regenerated on every copy.