> For the complete documentation index, see [llms.txt](https://docs.nisa.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nisa.ai/connecting-data-sources/one-drive.md).

# One Drive

Microsoft OneDrive is a comprehensive cloud storage solution that enables file storage, synchronization, and sharing, designed for both individual users and collaborative teams. By integrating OneDrive with our Business Chatbot, you empower the bot with the capability to automatically gather, sync, and index content, thereby enriching the ChatGPT's ability to understand your documents and provide more detailed responses.

#### Setting Up the OneDrive Connector

To connect OneDrive to the Nisa dashboard, you must first set up an OAuth app within the Microsoft Azure Portal. Follow the steps below after logging into the [Azure Portal](https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade/quickStartType~/null/sourceType/Microsoft_AAD_IAM):

**Step 1:** Create a new app registration in Azure Active Directory (AAD).

<figure><img src="/files/99NnZ2H4moR8o1SVY3lv" alt=""><figcaption></figcaption></figure>

**Step 2:** Fill in the details of the app registration.

* Name: Provide a name for your app, like 'Nisa'.
* Supported account types: Choose which accounts you would like your application to support.
* Redirect URI: Enter your dashboard domain callback URL, for example, `https://dashboard.nisa.ai/oauth/onedrive`.

<figure><img src="/files/4EUcJZZ8sN4oPIzontzE" alt=""><figcaption></figcaption></figure>

**Step 3:** Create client credentials.

* Under 'Certificates & secrets', click on 'New client secret'.

  <figure><img src="/files/tCJJF9R2Vstx0k59KC47" alt=""><figcaption></figcaption></figure>

  <figure><img src="/files/T86aDbVj4Lyn3mhyKjcO" alt=""><figcaption></figcaption></figure>
* Add a description and select an expiry for the secret. Store the value securely.

<figure><img src="/files/WfnDNjSWxAU3R5ATKMsp" alt=""><figcaption></figcaption></figure>

**Step 4:** Integrate with Nisa.

* In your Nisa dashboard, go to 'Sources' and add a new 'Add Project Source'.

<figure><img src="/files/3lpRLTRlpoxHvoyoWliu" alt=""><figcaption></figcaption></figure>

* Select the OneDrive to Connect.

<figure><img src="/files/IHU2qpp9zSIA8zvDKOIa" alt=""><figcaption></figcaption></figure>

* Enter the Client ID and Secret Key then press the save configuration.

<figure><img src="/files/68gmQZ8gKzxA6SlKyclB" alt=""><figcaption></figcaption></figure>

* Sync the Integration and Accept the Permission Request after logging in.

<figure><img src="/files/zJhsKAxMOasTsLnp3dg0" alt=""><figcaption></figcaption></figure>

* The syncing process will then start behind the scene.

<figure><img src="/files/2mooEdj0zMhAdmTcAeoB" alt=""><figcaption></figcaption></figure>

**Congratulations!** Your OneDrive is now integrated with Nisa. The bot can now access and index files from OneDrive, enhancing its understanding and the relevancy of its responses to queries related to your documents.<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nisa.ai/connecting-data-sources/one-drive.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
