Skip to content

One Drive

One Drive reads files stored in your OneDrive: one specific file or the documents in a folder, including its subfolders. It can return the text of the files, so an agent or a model can work with it, or the files themselves, to pass them on to another component.

When to use it

  • Summarise the reports the team keeps in a OneDrive folder.
  • Extract the data from a department’s spreadsheets.
  • Load internal documentation into a knowledge base.

Configuration

The component needs a Microsoft One Drive credential connected to your Microsoft account. See Credentials.

FieldWhat it does
Credential (required)The OneDrive credential used to access the files.
Upload file or select fileThe specific file you want to read.
or Select folderThe folder you want to read. If you pick a folder, the folder is read instead of the file.
File TypeWhich files are read from a folder: all (documents, spreadsheets, PDFs and plain-text files such as .txt, .csv or .json), document (documents and spreadsheets), sheet (spreadsheets only) or pdf (PDFs only). Default: all.

You must pick a file or a folder.

Output

  • Data: the text of each file read, along with details such as its name and location. Connect it to an agent, a model or a document store.
  • Files: the files as they are, to pass them to components that work with files.

Example

A finance team keeps each branch’s monthly reports in OneDrive:

  1. Add One Drive, pick the credential and, in or Select folder, the reports folder.
  2. In File Type, pick pdf.
  3. Connect Data to an agent that summarises the key figures of each report.
  4. Email the summary to management.

Good practices

  • Use File Type to read only the files you care about in a folder.
  • Pick the most specific folder you can: all its subfolders are read too.
  • Files: manages OneDrive files.
  • Folders: manages OneDrive folders.
  • Parse Data: turns the data read into text.