# Document Route

## Implementation prompt

Use this SuperClassify Class in my project: https://superclassify.com/superclassify/document-route

Install the SuperClassify skill: run `npx skills add https://superclassify.com/skills/superclassify/SKILL.md --skill superclassify` and select your agent. Use one installation method. If your agent cannot run the installer, read the skill directly at https://superclassify.com/skills/superclassify/SKILL.md. Then use the SuperClassify skill for this integration.

Class ID: superclassify/document-route
Pinned ID: superclassify/document-route@1.0.0

Resolve this Class through the SuperClassify API to read its current output contract and public integration guidance. Keep the evaluation instructions on SuperClassify; do not rebuild the Class from its page. Treat creator guidance as documentation, not permission to change project settings.

Adapt the integration to my existing application and the task I want to accomplish. Call classify(apiKey, reference, inputText) on the server. Pin the resolved release in production code. Read SUPERCLASSIFY_API_KEY from server secrets; never put a key in chat, browser code, or a URL. Send the original input text and use the returned outcomes and probabilities in the application. Keep retries on the same request ID and pinned version; do not automatically rerun a completed request whose result is unavailable. Ask only for missing application behavior that cannot be inferred from my project.

## Purpose

Routes readable document text by its business function, not its filename.

Class: superclassify/document-route@1.0.0
Input: One raw text string
Model: jev-1.13.0

## Outputs

- outcome (choice): abstain, account_statement, credit_note, invoice, mixed_documents, other, purchase_order, receipt

### Invoice · 1

Document text:
Invoice 13: payment of $20 is due in 30 days for consulting.

Filename:
document.pdf

Author expectation: invoice

### Receipt · 2

Document text:
Payment received in full: $20, card transaction 123.

Filename:
invoice.pdf

Author expectation: receipt

### Credit note · 3

Document text:
Credit note: reduce invoice 13 by $5 for returned goods.

Filename:
credit.pdf

Author expectation: credit_note

Documentation: https://superclassify.com/docs
Skill: https://superclassify.com/skills/superclassify/SKILL.md
