Add a web search tool
Add a web search tool to your skill to retrieve web content and include it as context in your prompt.
Before you begin
Role required: sn_skill_builder.admin
To use web search as a tool, you must bring your own search engine API key and configure it on the ServiceNow AI Platform.
About this task
The web search tool queries the web and returns results that the skill prompt can use. Two search result types are available depending on the providers you have configured:
- AI answers
- Generates a single synthesized response to the search query using OpenAI, Perplexity, or Gemini. Requires a configured API key for the selected provider.
- Searching and scraping
- Generates multiple responses using Now LLM Service. Requires a configured scraping API. Default search engine is Bing; Google requires additional configuration.
Important:
If you select Google as your web search provider, the web search tool uses Grounding with Google Search, offered under a Global Standard deployment. Because grounding is not data resident, Google global infrastructure routes traffic to a global datacenter for each web search request. This processing may differ from your data processing location. Consider your
organization data policies before enabling skills that use Google web search.
Procedure
What to do next
After adding the web search tool, reference its response output in your prompt using the + Inputs and tools button in the prompt editor. To learn more, see Create a prompt.
To learn more about configuring the web search capability, see Configure AI search answers capability for web search.