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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Upload library file

> Upload a file to the CloseBot agency library.

`closeBot.uploadLibraryFile` uploads knowledge content to the agency library.

```ts automations/upload-closebot-library-file.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { closeBot } from "automate.ax/closebot"

export default automation("Upload CloseBot library file", () => {
  onDashboardRun({ title: "Upload library file" })
  closeBot.uploadLibraryFile({
    file: new File(["Product support is available weekdays."], "support.txt", {
      type: "text/plain",
    }),
  })
})
```

## Inputs

Provide a JavaScript `File`. The filename and media type are sent with its content.

## Output

Returns `{ id: string }` with the new library file ID. Use `getLibraryFile` or `listLibraryFiles` to inspect processing status.
