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.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.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.Create a smart split job
cURL
split_definition in that response shows the ranges Box derived from your prompt, so you can confirm the prompt produced the grouping you expected.
