Skip to main content

Bing Search

The Bing Search component allows you to perform web searches using Microsoft's Bing search engine. You can create dynamic search queries by combining multiple text inputs with a template, similar to the Text Aggregator component.

Credit Cost

10 credits per search.

Usage

The Bing Search component has multiple input handles that accept text data, and a single output handle that produces the search results in JSON format. You can connect any number of text variables to the input handles and use them in your search query template using the {{variable}} syntax.

Variable Handling

Variables must be explicitly referenced in the search query template to be used. Simply connecting a variable to the input handle is not enough - you must use the {{variable}} syntax in the template to include its value. Any connected variable that is not referenced in the search query template will be ignored.

If a referenced variable contains empty data, that variable will be replaced with an empty string in the query.

Properties

Search Query

  • Type: text
  • Description: The search query template that defines what to search for. Use {{variable}} syntax to reference input variables.
  • Default: Empty template

Output Format

The component outputs a JSON array of search results, where each result contains:

  • title: The title of the webpage
  • url: The webpage URL
  • description: A brief description or snippet from the webpage
  • site: The website's domain name

Example output:

[
{
"title": "OpenAI",
"url": "https://openai.com/",
"description": "We believe our research will eventually lead to artificial general intelligence, a system that can solve human-level problems. Building safe and beneficial AGI is our mission.",
"site": "OpenAI"
},
{
"title": "ChatGPT | OpenAI",
"url": "https://openai.com/chatgpt/overview/",
"description": "OpenAI o1 is trained to spend more time thinking before responding and reasons through complex questions across fields like math, science, and coding.",
"site": "OpenAI"
}
]

Examples

For input variables:

  • company = "Tesla"
  • year = "2024"

Search Query:

{{company}} news {{year}}

This will search for "Tesla news 2024" and return relevant search results in JSON format.

Handling Missing Variables

For input variables:

  • product = "MacBook Pro"
  • specs = [empty data]
  • year = "2023"

Search Query:

{{product}} {{specs}} review {{year}}

This will effectively search for "MacBook Pro review 2023", as the empty specs variable is replaced with an empty string.