---
title: "OneDrive integration for AI agents | Langdock"
description: "Connect OneDrive to Langdock. Agents and workflows can use 7 actions, such as “Create folder” and “Download OneDrive file”."
url: "https://langdock.com/integrations/onedrive"
language: "en"
---

[Integrations](https://langdock.com/products/integrations)

# OneDrive integration for AI agents

Search, download, and upload files on OneDrive

Connect OneDrive to Langdock and use it in chat, in agents and in workflows.

7 actions

[Start free trial](https://app.langdock.com/signup) [Talk to sales](https://langdock.com/talk-to-sales)

## OneDrive actions

Each action is one step an agent or workflow can run in OneDrive.

- Create folder

  Creates a folder in OneDrive, or returns it with alreadyExisted: true if it already exists. Nested paths with forward slashes are supported: existing folders are reused and missing ones created.
- Download OneDrive file · Downloads a file from OneDrive and returns base64 content.
- Get folder by name

  Retrieves a folder from OneDrive by its name or path. Supports nested paths like "Parent/Child/Grandchild".
- List available drives · Lists all accessible OneDrive locations.
- List files in OneDrive folder

  Lists files and subfolders in a OneDrive folder. Always returns direct child folders alongside files for nested folder navigation. Enable includeSubfolders to recursively list all files within subfolders.
- Search files · Searches for files by name in a specific drive.
- Upload file

  Uploads a file to OneDrive. Supports files up to 100MB. For files larger than 4MB, uses chunked upload.

## Setup and permissions

An action can ask for your confirmation before it runs. In an agent, each action is set to “Always allow” or “Needs approval”.

### Documentation

- [Microsoft permissions for OneDrive](https://docs.langdock.com/en/admin/manage-integrations/microsoft-integration-scopes/onedrive)
- [Using integrations](https://docs.langdock.com/en/using-langdock/guides/integrations/using-integrations)
- [How connections work](https://docs.langdock.com/en/using-langdock/integrations/connections)
- [Manage access to actions](https://docs.langdock.com/en/admin/manage-integrations/manage-action-access)

[All integrations](https://langdock.com/products/integrations)
