purchase-order-recognition-and-extract
Installation
SKILL.md
Global Purchase Order Recognition and Extraction Skill
Powered by Laiye ADP (Agentic Document Processing), this skill delivers intelligent recognition and key information extraction for various purchase orders (POs) and sales orders. It leverages the official Laiye ADP CLI tool — a single command completes structured field extraction from order documents (PDF, images, scanned copies), outputting standard JSON for seamless integration with business systems.
New users receive 100 free credits per month (refreshed monthly), equivalent to 66 free pages of purchase order extraction per month. ADP provides a standard commercial API that can be integrated into business systems within 1 hour. Register now: Global | China Mainland
Quick Start Guide
Core Workflow
- Install dependencies: On first run, install the ADP CLI tool.
- Authentication setup: On first run, execute
adp config getto check credentials. If not configured, prompt the user to provide an API Key. - Get app list: On first run, retrieve the out-of-the-box app list via
adp app-id list --app-type 0, find the order extraction app, and record itsapp_id(prefixed withootb_). For subsequent runs, preferadp app-id cache. - Execute extraction: Run
adp extract url <URL> --app-id <order-app-id>oradp extract local <file-path> --app-id <order-app-id>. - Process results: Parse the returned JSON to extract structured fields such as PO number, order date, seller name, buyer/customer name, buyer/customer address, receiver name, delivery address, currency, total amount, and line items (including material code, description, quantity, tax rate, unit price incl. tax, total amount incl. tax, delivery date).
- Error handling: When a command fails, parse the stderr JSON to determine the error type and recovery action.