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

Thank you for your reply!

I put AI Search and Search Preview in the filter nav but I can't find Search Preview. Any Plugin required to use Search Preview?

 

I've created external_content/storeContent rest api like you and used content pointer in the external_content/ingestDocument rest api.

 

Kind Regards

I don't remember installing any plugins just for that, just to check what family release your on? I am using the latest version with San Diego Patch 1.

Some screen shots of what your api should look like:

Binary Content

find_real_file.png

Document Ingest api:

find_real_file.png

Have you checked the ai search logs?

AI Search > AI Search Logs > All

I'm also using latest version and My API is alomost same with you but I'm using flow designer to execute API. Where did you take that screen shots?

I checked the AI Search logs and look like this.

find_real_file.png

find_real_file.png

find_real_file.png

So I have been doing it from an outbound rest message, if you want to do it from flow designer then this article will certainly help you:

https://community.servicenow.com/community?id=community_article&sys_id=591e21f7db294d10f77799ead396195d

The JSON parser piece is a separate plugin that you need to install first to see it.

Thanks a lot,

I tryed both flow designer using JSON parses and outbound rest message like you but still cannot ingest and search. I think there're some configuration error around AI Search such as index sources, search sources, so I'll try more.