> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiybiz.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Files

> Upload and organize files to share with your AI agents.

## Your file library

Go to **Files** in the sidebar to open your company's shared file library. It's a simple folder structure for documents you want AI agents to be able to access.

## Organizing files

<Steps>
  <Step title="Create folders">
    Click **New folder** to organize files by topic, project, or agent.
  </Step>

  <Step title="Upload files">
    Click **Upload** or drag and drop files into a folder.
  </Step>

  <Step title="Preview, rename, or delete">
    Use the actions on each file or folder. Markdown files can be previewed directly in the browser.
  </Step>

  <Step title="Download">
    Click **Download** on any file to get it back out.
  </Step>
</Steps>

## Sharing files with a session

Within a chat session, open the **Shared files** panel to give an agent access to files:

| Option                  | What it does                                                                                  |
| ----------------------- | --------------------------------------------------------------------------------------------- |
| **Share from library**  | Pick existing files or folders from your file library and grant the agent read access         |
| **Create agent folder** | Creates a dedicated folder for that session — both you and the agent can upload files into it |

<Tip>
  Files an agent creates in a session's dedicated folder also appear in your main file library, organized under that folder.
</Tip>

<Warning>
  Revoking a shared file removes the agent's access to it, but doesn't delete the file from your library.
</Warning>

## Related

<CardGroup cols={2}>
  <Card title="Sessions" icon="messages" href="/clients/sessions">
    Learn more about chatting with agents and managing sessions.
  </Card>
</CardGroup>
