Bing Search API
Bing Search API runs web searches with the Bing search engine and returns the results: title, link and a snippet of each page.
You can use it in two ways. As a tool, you connect its Tool output to the Tools input of an agent, and the agent decides when to search and what to type. As a step in the flow, you write the search in Input and collect the results from the Data output.
When to use it
- An assistant needs current information that is not in your documents, such as news or published prices.
- You want an agent to check facts online before writing an answer.
- A flow searches for news about your industry every morning and summarises it.
- You need a list of web pages on a topic to review later.
Configuration
You need a Bing Search API credential with your Bing subscription key. See Credentials.
| Field | What it does |
|---|---|
| Credential (required) | The Bing Search API credential used for searches. |
| Input | The text to search for. Only used with the Data output; when you connect the Tool output the field is hidden, because the agent writes the search. |
| Number of results (required) | How many results each search returns. Defaults to 4. |
Advanced options
| Field | What it does |
|---|---|
| Bing Search URL | Address of the search service. Leave it empty to use Bing’s. |
Output
- Tool: connects to an agent’s Tools input. The agent receives the results of every search it runs.
- Data: a list with one item per result, with its title, link and snippet. You can pass it to a component that summarises or stores it.
When you connect one of the two outputs, the other one is hidden.
Example
A marketing team wants a daily summary of news about a competitor.
- Add Bing Search API and write the competitor’s name followed by “news” in Input.
- Raise Number of results to 10.
- Connect the Data output to a component that summarises text, and send the summary by email or chat.
- Schedule the flow to run every morning.
Related components
- Google Serper API, Brave Search API Tool and SearchApi Tool: other web search engines.
- Agent: the agent the tool connects to.