For the complete documentation index, see llms.txt. This page is also available as Markdown.

Box Data Extract

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)

Quick start

1

Create a new data flow in Coupler.io and select Box Data Extract as the source.

2

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.

3

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/.

4

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.

5

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.

6

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.

7

Run your data flow manually to confirm everything is working before setting up a schedule.

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

  • 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

  • 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

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

Authentication fails when entering API credentials

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.

Connection succeeds but no files are returned

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.

Missing data

Some files in the folder are not appearing in the output

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.

AI entity returns empty or null results for some files

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.

Permission errors

"Insufficient permissions" error when accessing a folder

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.

Box AI features return a permissions or plan error

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.

Data discrepancies

Extracted text looks truncated or incomplete

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.

AI answers vary between runs for the same document

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.

Rate limits

Data flow times out or fails partway through a large folder

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.

Box Data Extract FAQ

How do I find my Box Folder ID?

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.

Can Box Data Extract read files in subfolders?

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.

Do I need a special Box plan to use the AI entities?

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.

What file types are supported for text extraction?

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.

What should I put in the AI prompt fields?

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.

Can I combine data from multiple Box folders in one destination?

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.

Can I send extracted Box content to an AI tool like ChatGPT or Claude?

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.

Why do my AI extract results change between runs?

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.

For details on available fields and entity output schemas, see the Data Overview page. For help with connection errors or missing files, visit Common Issues.

Last updated

Was this helpful?