Require assistance with the external_content ingestDocument api

Ashley
Kilo Sage

Good Afternoon,

I need some guidance with AI Search, I have put together a rest message that returns results from our SharePoint Knowledge base, this is all working fine with it returning the unique document id, title, url etc but I need to get this into AI Search so it is searchable within Virtual Agent.

I have created the external content schema table and search profile etc:
https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/ai-search/task/create-ext-content-schema-ais.html

I have used the external_content/storeContent rest api to create the content pointer which is then used in the external_content/ingestDocument rest api.

Doing all this makes it searchable within Virtual Agent but the schema table I created remains empty and the url its using is pointing to the ServiceNow instance and not too the SharePoint site so ofc it fails to open.

The documentation around the api's is lacking in some areas and wondered if anyone else had any success ingesting external content that is searchable? wondering if I am doing the mapping wrong.

Any help and I would be grateful

Kind Regards

Ashley

1 ACCEPTED SOLUTION

Ashley
Kilo Sage

Good Morning,

So the article that resolved the problem for me in the end was this one:

https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/administer/conversational-interfaces/task/ac-configure-url-navigation.html

It doesn't get mentioned as part of the document ingest api documentation but for custom tables you need to create a new navigation url link which points to the new external schema table that gets created. Once I had this in place everything was pointing to the external site as needed.

Kind Regards

Ashley

View solution in original post

17 REPLIES 17

Gerard Dwan
ServiceNow Employee
ServiceNow Employee

Hi Ashley, 

The external content table remains empty. It is simply a schema used to conform the information coming from an external source to something that the search indexing process can interpret. We expect it to be empty. 

It sounds like everything is working properly *except* when you attempt to click on one of the results. Are you familiar with the EVAM configuration for this result and have you attempted to add a new navigation action for these results? 

Good Morning,

Thank you for the info, I did read up on it a little last week, I will take another look now and let you know.

Kind Regards

Ashley

Hi Dwan,

I'm also trying to index external content into ServiceNow and make it searchable by AI Search.

I've already created the external content schema table and search profile etc:

When I execute external_content ingestDocument api like Ashley, it's succeeded but AI Search don't catch any result. 

So, which table can I see the external content infomation indexed by external_content ingestDocument api and make it searchable by AI Search?

 

Kind Regards

Good Afternoon,

Have you gone to search preview to see the results?

It can be found under:

AI Search > Preview > Search Preview

If you put Search Preview in the filter nav it will show straight away.

Once opened, select the profile you created and do a search for the document you ingested.

Another thing, which didn't get mentioned, did you create the store binary content api first for the pointer?

Kind Regards

Ashley