Skip to content

Ollama Web Search

Ollama Web Search searches the internet with Ollama’s web search service and returns the results it finds. It can run a single search or one search for each item in a list.

You can use it as a step in a flow, with the search in Search Query, or as a tool for an agent: connect its Tool output to the agent’s Tools input and the agent decides when to search and what to type.

When to use it

  • You already use Ollama cloud models and want your agent to search the internet with the same account.
  • You need to look up a list of companies, products or people, one search per item.
  • An agent has to check current facts before answering.
  • You want to collect a few relevant results to summarise with AI.

Configuration

You need an Ollama Cloud API credential with a key from your Ollama account. See Credentials.

FieldWhat it does
Search Query (required)What you want to search for. When the component is used as a tool, the agent writes the search.
Ollama API Key (required)Your Ollama account key.

Processing a list

FieldWhat it does
Batch InputA list of items, for example company names. One search is run for each.
Batch ModeWhen on and there is a list in Batch Input, a search runs for each item and all results come out together in one list. On by default.
Parallel ExecutionsHow many searches from the list run at the same time, from 1 to 5. Default: 3.
Skip if Empty Batch InputWhen on and the list arrives empty, the component doesn’t run and neither do the following steps. On by default.
Skip Branch if Empty OutputWhen on and the search returns nothing, the following steps don’t run. On by default.

Advanced options

FieldWhat it does
LimitHow many results each search returns, from 1 to 10. Default: 3.
Tool NameThe name the agent sees for the tool.
Tool DescriptionWhat the agent reads to know when to search.
Tool response modeHow the result is handed to the agent. Leave Standard.

Output

  • Data: a list with one item per result found. If the key isn’t valid or your account’s search limit is exceeded, the run stops with a message explaining why.
  • Tool: the search ready for an agent. Connect it to the agent’s Tools input.

Example

A sales team wants a quick profile of each company on its prospect list.

  1. Connect the list of companies to the Batch Input of Ollama Web Search.
  2. In Search Query, switch to Mapped and choose the field with the company name.
  3. Leave Limit at 3.
  4. Connect the Data output to an agent that writes a profile of each company from what was found.