- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 12:45 AM
I want to add a condition using a script to Search Sources of AI Search.
If you know how to add it, please let me know.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 10:28 AM
Hi @Yudai Yamamoto!
Currently it is not possible using scripts to perform filters in Search Source , see:
âž” ServiceNow Docs - Search sources
Alternatively, you can work with ACLs, if the user does not have permission to see a record due to security permissions, it will automatically not appear in the AI ​​Search results.
If my answer helped you in any way, please mark it as Helpful / Accept as Solution 🎯
Regards,
Isaac Vicentini.
MVP 2025 ✨
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 10:28 AM
Hi @Yudai Yamamoto!
Currently it is not possible using scripts to perform filters in Search Source , see:
âž” ServiceNow Docs - Search sources
Alternatively, you can work with ACLs, if the user does not have permission to see a record due to security permissions, it will automatically not appear in the AI ​​Search results.
If my answer helped you in any way, please mark it as Helpful / Accept as Solution 🎯
Regards,
Isaac Vicentini.
MVP 2025 ✨
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2024 10:40 AM
To add a condition using a script for AI Search, you’d typically need to identify the parameters or criteria you want to filter by—like keywords or source types—and implement logic in your script to ensure the search only pulls from relevant sources. For example, if you're searching for 'AI Search' sources related to a specific topic, you'd apply a condition to filter based on that. Speaking of targeted searches, if you're looking for the best Chinese restaurants in Edmonton, you could add a condition to your search to focus on restaurant reviews or specific ratings, helping you narrow down the top spots like The Lingnan or Dynasty Century Palace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I was looking for something like this as well since I need the AI to suggest Knowledge Articles based on the Contact domain.
Dont think this works well for domain separated instances...