AI based Search using NLP in Service Now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 04:05 AM
Hi,
I am trying to use the following API for AI based Search (AI Search Assist (Internal API)😞
https://dev243998.service-now.com/api/now/aisa/search
While trying to call this API, the Status code on Service Now is returned as 400, with the following output:
{
"error": {
"message": "INVALID_ARGUMENTS",
"detail": ""
},
"status": "failure"
}
I need to pass query string to perform search throughout Service Now, such as tickets, articles etc. Can someone kindly help me out on how to call this API. Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 10:07 PM
Hi,
According to the Scripted REST Service (https://<instance_name>.service-now.com/sys_ws_definition_list.do?sysparm_query=name%3DAI%20Search%2... the Request Body needs to contain at least 3 key-value pairs.
{"searchContextConfigId":"","searchTerm":"","rpSysId":""}
You can get a searchContextConfigId from Search Application Configuration [sys_search_context_config] and rpSysId from Record Producer Configuration [aisa_rp_config].