AI Search Flow Action always returns KB articles only from IT Knowledge Base (other KBs ignored)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I’m using the AI Search Flow Action in Flow Designer to retrieve Knowledge Articles based on a search term. The action runs successfully and returns results, but I’m seeing a strange issue:
Problem:
Regardless of the search term, the AI Search Flow Action always returns articles only from the IT Knowledge Base, even when an identical or better-matching article exists in another KB (specifically the Customer Service KB).
If I change the Customer Service article’s Knowledge Base field to IT, then it starts appearing in the results.
If I move it back to Customer Service KB, it disappears again.
What I have already checked:
The Search Profile being used has no filters that restrict knowledge bases.
The AI Search Datasource (“Knowledge Table”) also has no KB filters, only excludes Retired/Outdated articles.
Both IT and Customer Service KBs are published, readable, and indexed (verified in AI Search Indexed Sources).
I am leaving search_context_id blank in the Flow Action inputs.
The AIS Search Source record has no filter_condition, no datasource filter, and no document table restrictions (essentially empty).
There is no Search Application associated with the Search Profile.
Permissions for the Customer Service KB are correct.
Observed Behavior:
Even with no explicit restrictions anywhere in the search configuration:
AI Search Flow Action only returns articles from IT KB
Customer Service KB articles appear only when moved to IT KB
This happens even though the Customer Service KB articles are indexed and published
Flow Action Inputs:
search_term = "Kaspersky antivirus updates"
context_profile_id = b45341372b69b21007ecfb13ed91bf86 (Search Profile sys_id)
search_context_id = "" (left empty)
additional_context = "{}"
Flow Script Snippet (simplified):
var api = new AISearchRetrieveSearchResultsWrapper();
var searchResult = api.retrieveSearchResults(
inputs.search_term,
inputs.context_profile_id,
inputs.search_context_id,
inputs.logging_context,
locale,
additionalContext,
grConfigFilter,
inputs.search_result_type
);
I’m trying to understand why AI Search Flow Action ignores non-IT knowledge bases, even though:
indexing includes those KBs
Search Profile/Data Source have no KB filters
search_context_id is blank
permissions are correct
Is there a hidden context fallback, default search scope, or API behavior that restricts Flow Action search results to IT KB unless a specific Context Profile or Context ID is explicitly provided?
Any insights into where AI Search might be applying an implicit KB filter would be greatly appreciated.
