How to configure Web Search Tol in custom skill ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2025 08:58 AM
Hello Everyone,
I was facing an issue in using Tools in custom skill, when I use web searchl, I was getting an error message everytime.
Can someone help me, how to solve this with any step-by-step approach?
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2025 12:50 PM
Step-by-Step Approach to Resolve Web Search Tool Issues in Custom Skills:
Check Tool Configuration:
Go to Conversational Interfaces > Tools in the Application Navigator.
Open the Web Search tool and ensure:
It’s Active.
The Script is correct and doesn’t throw exceptions.
Input and output variables are properly defined.
Validate Tool Permissions:
Make sure the tool script is not trying to access data or APIs that are restricted due to ACLs or cross-scope access.
If needed, add a cross-scope privilege from your custom application to the tool’s application scope.
Check Integration or API Key (if applicable):
If your Web Search tool is calling an external API (like Bing, Google, or a custom REST API), verify:
The API key is valid and stored securely (e.g., in a system property or credential store).
The MID Server (if used) has access.
The URL being called is allowed in the Outbound HTTP ACL list.
Test the Tool in Isolation:
Use Virtual Agent Designer > Test Skill to invoke the tool by itself (outside of full skill logic).
Check if it's returning a result or throwing a script error.
Review Logs:
Navigate to System Logs > All or use "Debug Virtual Agent" from the VA Test Console.
Look for error messages tied to tool execution (e.g., Tool failed to execute, ReferenceError, etc.).
Use Glide logging:
Add gs.info() statements to the tool’s script to trace where it may be failing.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Uday Rathore
ServiceNow Developer
LinkedIn: https://www.linkedin.com/in/uday-rathore049/