Skip to content

Search

Search looks for files in your OneDrive and in the SharePoint sites you have access to. You type what you are looking for, as keywords or as a sentence, and it returns the most relevant files with their link.

It is the quickest way to find a document when you don’t know which folder it is in, and it is especially useful as a tool for an AI agent that needs to find information in the company’s files.

When to use it

  • An AI agent needs to find the proposal or the contract for a specific client.
  • You want to locate every spreadsheet for a project, wherever it is stored.
  • You need the documents by a specific author created within a period of time.
  • You want to give your team an assistant that answers “where is the document about…?”.

Configuration

You need a Microsoft One Drive credential, which connects by signing in with your Microsoft account. See Credentials.

FieldWhat it does
Credential (required)The Microsoft One Drive credential used to search. Only files that account can access appear.
Operation (required)The type of search. See Operations. By default, Quick Search.
Search Query (required)What you are looking for: keywords, a file name or a description in natural language.
Max ResultsThe maximum number of results requested. By default, 20. In Quick Search the maximum is 10.
Top ScoreKeeps only the results ranked highest for relevance, up to this position, on a scale from 0 to 10. For example, with 5 at most the five most relevant results are returned. By default, 5.
File ExtensionsFile extensions separated by commas, for example pdf,docx,xlsx. Used in Advanced Search.
Author FilterThe name of the person who created the file. Only in Advanced Search.
Date FromStart date of the period, for example 2026-01-01. Empty by default: no lower limit. Only in Advanced Search.
Date ToEnd date of the period, for example 2026-03-31. Empty by default: no upper limit. Only in Advanced Search.

Operations

OperationWhat it does
Quick SearchA quick relevance search that returns at most 10 results.
Semantic SearchA relevance search with the number of results you set in Max Results.
Advanced SearchA relevance search with filters for extension, author and date period.

Output

The Search Results output returns one item for each file found, with its identifier, name, link, size, creation and modification dates, the folder it is in, a summary of the matching passage when there is one, and its relevance position.

You can pass the identifier to Files to read the file, or the link to an email or messaging component. The component can also be connected to an Agent as a tool, so the agent decides when and what to search. See Tool Mode.

Example

A company’s sales team wants an assistant that finds the proposals sent to each client.

  1. Add an Agent and connect Search to it as a tool, with the sales team’s Microsoft One Drive credential.
  2. Keep the operation on Semantic Search and set Max Results to 10.
  3. Also connect Files with the Get File operation and Load File Content on, so the agent can read the proposal it finds.
  4. Ask the agent, for example: “Find the latest proposal sent to Ribera Construction and tell me the amount”.

Good practices

  • If you get fewer results than expected, raise Top Score: it limits the results to the highest ranked ones even when Max Results is larger.
  • In Advanced Search, Date From and Date To come empty, so the search covers any date. Fill them in only to narrow it to a period.
  • Files: read and manage the files you find.
  • Folders: manage OneDrive folders.
  • Documents: manage SharePoint documents.