Skip to main content
When split_type is smart, Document Split uses your prompt to decide how to group and split pages into output documents. Clear, specific prompts produce more reliable splits.
A smart split consumes AI Units. Box consumes 1 AI Unit for every 4 pages processed.

Prerequisites

Before you start, follow the steps in the guide to create a platform app and generate an access token. You also need:
  • A source PDF already stored in Box.
  • A destination folder in Box that your app can write to.
  • A prompt that describes how to group the pages.

What you configure

Prompt guidelines

  • State that the Box file you supply is the source document.
  • Describe the splitting rule, such as a page count, a marker like a QR code, or a content criterion.
  • Prefer sequential ranges when order matters, such as contract exhibits followed by signature pages.
  • Call out the pages or sections to include, and where it helps, the ones to skip.
  • Avoid ambiguous language such as “split somehow” or “use whatever makes sense.”

Example prompts

Explicit page groups

Split a file into two documents whose ranges you describe in natural language.
This produces two outputs, corresponding to pages 1 to 3 and pages 5 to 8.
If you already know the exact ranges, use split_type: "manual" with a split_definition instead. See for deterministic results.

QR code as a break point

Treat each QR code page as a separator between documents. Pages before a QR code form one split, and the QR code page itself is excluded unless you specify otherwise.
This produces sequential ranges bounded by the marker pages. With markers on pages 5 and 11, the outputs cover pages 1 to 4 and pages 6 to 10.

Content-based contractual pages

Keep only the pages with substantive contractual content, such as ID proofs, signatures, and executed terms, and skip the boilerplate terms and conditions. Split the retained sections sequentially.
This produces one output for each contiguous block of content that matches the criteria, such as pages 1 to 3 and pages 4 to 6.

Create a smart split job

cURL
The response contains the ID of the split job:
Use this ID to . The split_definition in that response shows the ranges Box derived from your prompt, so you can confirm the prompt produced the grouping you expected.
Last modified on September 10, 2026