> For the complete documentation index, see [llms.txt](https://docs.coupler.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coupler.io/sources/category/files-and-tables/box-data-extract.md).

# Box Data Extract

Connect Box folders to Google Sheets, BigQuery, or AI tools via Coupler.io. Extract text, metadata, and AI-generated insights from your Box documents.

Box is a cloud content management platform used by teams to store, share, and collaborate on documents. The Box Data Extract source in Coupler.io lets you pull text content and AI-generated insights directly from files stored in your Box folders.

With this source, you can go beyond just syncing files — you can extract structured data and ask questions about document content using Box AI.

**Why connect Box Data Extract to Coupler.io?**

* Extract raw text from Box documents and load it into spreadsheets, databases, or AI tools
* Use Box AI to pull structured metadata from documents without manual review
* Ask natural-language questions about your Box files and get answers as structured data
* Route document content to destinations like Google Sheets, BigQuery, or AI tools such as ChatGPT, Claude, or Gemini

## Prerequisites

Before you start, make sure you have:

* A Box account with access to the folder you want to extract data from
* A Box Developer App with a **Client Credentials Grant** or **JWT** authentication configured
* Your Box API credentials: **Client ID**, **Client Secret**, and **Enterprise ID** (or **User ID**)
* The **Folder ID** of the Box folder you want to process (visible in the URL when you open the folder in Box)

{% hint style="success" %}
If you're not sure which entity to start with, try **Stream text representation folders** first — it gives you the raw text content of your documents and works without any AI prompt configuration.
{% endhint %}

## Quick start

{% stepper %}
{% step %}
**Create a new data flow in Coupler.io** and select **Box Data Extract** as the source.
{% endstep %}

{% step %}
**Enter your Box API credentials.** You'll need your Client ID, Client Secret, and either your Enterprise ID or User ID. These come from your Box Developer App settings at developer.box.com.
{% endstep %}

{% step %}
**Set your Folder ID.** Paste the ID of the Box folder containing the files you want to process. You can find this in the URL when you open the folder in Box — it's the number after `/folder/`.
{% endstep %}

{% step %}
**Choose an entity.** Select from Stream text representation folders, Stream AI ask folders, Stream AI extract folders, or Stream AI extract structured folders depending on what kind of data you need.
{% endstep %}

{% step %}
**Configure entity-specific settings.** If you selected an AI entity, enter the relevant prompt in the Ask AI Prompt or Extract AI Prompt field. Enable **Recursive** if you want to include subfolders.
{% endstep %}

{% step %}
**Choose your destination.** Send your data to Google Sheets, Excel, BigQuery, Looker Studio, or an AI tool like ChatGPT, Claude, Cursor, Gemini, Perplexity, or OpenClaw.
{% endstep %}

{% step %}
**Run your data flow manually** to confirm everything is working before setting up a schedule.
{% endstep %}
{% endstepper %}

## Available entities

| Entity                               | Description                                                           |
| ------------------------------------ | --------------------------------------------------------------------- |
| Stream text representation folders   | Raw text content extracted from documents in the specified Box folder |
| Stream AI ask folders                | AI-generated answers to a custom question asked about each document   |
| Stream AI extract folders            | Metadata extracted from documents using a free-form Box AI prompt     |
| Stream AI extract structured folders | Structured data extracted using a predefined field schema via Box AI  |

## Box Data Extract data overview

Box Data Extract surfaces content from your Box documents in four different ways, depending on how much processing you want Box AI to apply. Each entity targets the same folder but returns a different representation of the documents inside it.

## Entities

| Entity                               | What it returns                                                 |
| ------------------------------------ | --------------------------------------------------------------- |
| Stream text representation folders   | Plain text extracted from each document                         |
| Stream AI ask folders                | AI-generated answer to your custom prompt, per document         |
| Stream AI extract folders            | Key-value metadata extracted by Box AI based on your prompt     |
| Stream AI extract structured folders | Structured fields extracted by Box AI using a predefined schema |

## Fields by entity

#### Stream text representation folders

| Field         | Description                           |
| ------------- | ------------------------------------- |
| file\_id      | Unique identifier of the Box file     |
| file\_name    | Name of the file                      |
| text\_content | Full extracted text from the document |
| folder\_id    | ID of the parent folder               |

#### Stream AI ask folders

| Field      | Description                                 |
| ---------- | ------------------------------------------- |
| file\_id   | Unique identifier of the Box file           |
| file\_name | Name of the file                            |
| prompt     | The question sent to Box AI                 |
| answer     | The AI-generated response for that document |
| folder\_id | ID of the parent folder                     |

#### Stream AI extract folders

| Field           | Description                         |
| --------------- | ----------------------------------- |
| file\_id        | Unique identifier of the Box file   |
| file\_name      | Name of the file                    |
| prompt          | The extraction prompt used          |
| extracted\_data | Key-value pairs extracted by Box AI |
| folder\_id      | ID of the parent folder             |

#### Stream AI extract structured folders

| Field              | Description                                     |
| ------------------ | ----------------------------------------------- |
| file\_id           | Unique identifier of the Box file               |
| file\_name         | Name of the file                                |
| structured\_fields | Extracted fields matching the predefined schema |
| folder\_id         | ID of the parent folder                         |

## Common field combinations

* **file\_name + text\_content** — useful for full-text search pipelines or feeding content into AI destinations
* **file\_name + answer** — great for summarization or Q\&A dashboards built from document libraries
* **file\_name + structured\_fields** — ideal for turning contracts, invoices, or forms into structured database records

## Use cases by role

{% tabs %}
{% tab title="Operations" %}

* Extract text from policy documents or SOPs and load into a searchable Google Sheet
* Use AI extract to pull key dates and parties from contracts into BigQuery for tracking
* Feed structured extraction results into an AI tool like Claude or ChatGPT for further processing
  {% endtab %}

{% tab title="Legal & Compliance" %}

* Run structured extraction on NDAs or agreements to capture counterparty, date, and jurisdiction fields
* Ask Box AI a compliance question across all files in a folder and collect the answers as a dataset
* Append results from multiple folder extractions to build a unified contract register
  {% endtab %}

{% tab title="Finance" %}

* Extract invoice data from scanned PDFs stored in Box using the structured AI entity
* Pull vendor names, amounts, and due dates into a spreadsheet automatically
* Use the Aggregate transformation in Coupler.io to summarize extracted invoice totals by vendor or period
  {% endtab %}
  {% endtabs %}

## Platform-specific notes

* Box AI features (AI ask, AI extract) require a **Box AI-enabled plan** — not all Box accounts include this
* The Folder ID is a numeric string visible in the Box URL when you open a folder (e.g., `/folder/123456789`)
* Enabling **Recursive** will process all subfolders, which can significantly increase the number of API calls and processing time for large folder trees
* Each document in the folder is processed individually — very large files or folders with hundreds of files may take longer to sync
* Supported file types for text extraction depend on Box's representation API; PDFs, Word documents, and plain text files are typically supported

## Box Data Extract common issues

### Connection issues

<details>

<summary>Authentication fails when entering API credentials</summary>

Double-check that you're using the correct **Client ID**, **Client Secret**, and **Enterprise ID** (or User ID) from your Box Developer App. Make sure the app has been **authorized for your enterprise** in the Box Admin Console — apps using Client Credentials Grant require explicit admin approval before they can access content.

</details>

<details>

<summary>Connection succeeds but no files are returned</summary>

The service account or app user associated with your Box Developer App may not have access to the target folder. In Box, sharing permissions are not inherited by API apps automatically. Make sure the app's service account has been added as a **collaborator** on the folder you specified.

</details>

### Missing data

<details>

<summary>Some files in the folder are not appearing in the output</summary>

Box Data Extract only processes file types that Box supports for text representation. Files in unsupported formats (e.g., some image types or proprietary formats) may be skipped silently. Check whether the missing files are in a supported format such as PDF, DOCX, or TXT.

Also verify whether the files are in a **subfolder** rather than the root folder — if **Recursive** is not enabled, only files directly in the specified folder are processed.

</details>

<details>

<summary>AI entity returns empty or null results for some files</summary>

Box AI may return empty responses for files that are too short, contain only images, or are in a format that Box AI cannot parse. Check the source file directly in Box to confirm it has readable text content. For scanned documents, OCR must be enabled in your Box account for AI to process them.

</details>

### Permission errors

<details>

<summary>"Insufficient permissions" error when accessing a folder</summary>

Your Box app's service account needs at least **Viewer** access to the folder. Go to the folder in Box, open sharing settings, and add the service account email as a collaborator. For AI entities, the app also needs Box AI to be enabled on your account plan.

</details>

<details>

<summary>Box AI features return a permissions or plan error</summary>

Box AI (Ask, Extract, Extract Structured) is only available on plans that include Box AI. If you see an error related to AI access, confirm with your Box admin that your account has the Box AI add-on enabled.

</details>

### Data discrepancies

<details>

<summary>Extracted text looks truncated or incomplete</summary>

Box's text representation API has limits on the amount of text it returns per file. Very long documents may be truncated. For full-document processing, consider splitting large files before storing them in Box, or use the AI extract entity with a targeted prompt to pull only the fields you need.

</details>

<details>

<summary>AI answers vary between runs for the same document</summary>

Box AI responses can be non-deterministic — the same prompt on the same document may return slightly different phrasing across runs. If consistency is important, use **Stream AI extract structured folders** with a fixed schema rather than free-form prompts.

</details>

### Rate limits

<details>

<summary>Data flow times out or fails partway through a large folder</summary>

Box's API enforces rate limits on both the representation and AI endpoints. If you're processing a folder with many files, the data flow may slow down or hit limits. Try reducing the folder size by splitting files across multiple folders, or run separate data flows for different subfolders rather than enabling Recursive on a very large tree.

</details>

## Box Data Extract FAQ

<details>

<summary>How do I find my Box Folder ID?</summary>

Open the folder in Box in your browser. The Folder ID is the number in the URL after `/folder/` — for example, in `https://app.box.com/folder/123456789`, the Folder ID is `123456789`. Paste this number into the Folder ID field in Coupler.io.

</details>

<details>

<summary>Can Box Data Extract read files in subfolders?</summary>

Yes — enable the **Recursive** option when setting up your source. With Recursive on, Coupler.io will process files in the specified folder and all nested subfolders. Without it, only files directly in the root folder are processed.

</details>

<details>

<summary>Do I need a special Box plan to use the AI entities?</summary>

Yes. The Stream AI ask, Stream AI extract, and Stream AI extract structured entities all rely on Box AI, which requires a Box plan that includes the Box AI add-on. If your account doesn't have Box AI enabled, you'll get an error when running those entities. The Stream text representation entity does not require Box AI and works on standard Box plans.

</details>

<details>

<summary>What file types are supported for text extraction?</summary>

Box supports text representation for common document formats including PDF, DOCX, PPTX, XLSX, and TXT. Image-only files (e.g., scanned documents without OCR, PNG, JPG) are generally not supported unless Box's OCR feature has been applied. Files in unsupported formats will be skipped during extraction.

</details>

<details>

<summary>What should I put in the AI prompt fields?</summary>

For **Ask AI Prompt**, write a question you want answered about each document — for example, "What is the total contract value and the expiry date?" For **Extract AI Prompt**, describe the metadata you want to pull out — for example, "Extract the vendor name, invoice number, and payment due date." Leave these fields empty only if you're using the text representation entity, which doesn't require a prompt.

</details>

<details>

<summary>Can I combine data from multiple Box folders in one destination?</summary>

Yes. Add multiple sources in a single Coupler.io data flow — one per folder — and use the **Append** transformation to merge them into one output table. This is useful when documents are organized by client, project, or time period across different folders.

</details>

<details>

<summary>Can I send extracted Box content to an AI tool like ChatGPT or Claude?</summary>

Absolutely. Coupler.io supports AI destinations including ChatGPT, Claude, Gemini, Cursor, Perplexity, and OpenClaw. You can extract text or AI-generated answers from Box and pipe them directly into one of these tools for further analysis, classification, or summarization.

</details>

<details>

<summary>Why do my AI extract results change between runs?</summary>

Box AI responses can vary slightly between calls even for the same document and prompt — this is a characteristic of large language models. If you need stable, repeatable output, use **Stream AI extract structured folders** with a well-defined field schema, which constrains the output format and reduces variability.

</details>

{% hint style="info" %}
For details on available fields and entity output schemas, see the [Data Overview](#box-data-extract-data-overview) page. For help with connection errors or missing files, visit [Common Issues](#box-data-extract-common-issues).
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coupler.io/sources/category/files-and-tables/box-data-extract.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
