laiye-doc-processing
FreeNo executable scriptsNot checkedEnterprise-grade agentic document processing API. Accurately extracts key fields and line items from invoices, receipts, orders and more across 10+ file…
by diegosouzapw★ 68 GitHub starsAbout this skill
Agentic Document Processing
Agentic Document Processing API — convert 10+ file formats(.jpeg,.jpg,.png,.bmp,.tiff,.pdf,.doc,.docx,.xls,.xlsx) to structured JSON/Excel with per-field confidence scores using VLM and LLM.
Base URL:
https://adp-global.laiye.com/?utm_source=clawhub
Quick Start
curl -X POST "https://adp-global.laiye.com/open/agentic_doc_processor/laiye/v1/app/doc/extract" \
-H "Content-Type: application/json" \
-H "X-Access-Key: $ADP_ACCESS_KEY" \
-H "X-Timestamp: $(date +%s)" \
-H "X-Signature: $(uuidgen)" \
-d '{
"app_key": "$ADP_APP_KEY",
"app_secret": "$ADP_APP_SECRET",
"file_url": "https://example.com/invoice.pdf"
}'
Response:
{
"status": "success",
"extraction_result": [
{
"field_key": "invoice_number",
"field_value": "INV-2024-001",
"field_type": "text",
"confidence": 0.95,
"source_pages": [1]
},
{
"field_key": "total_amount",
"field_value": "1000.00",
"field_type": "number",
"confidence": 0.98,
"source_pages": [1]
}
]
}
Setup
1. Get Your API Credentials
# Contact ADP service provider to obtain:
# - app_key: Application access key
# - app_secret: Application secret key
# - X-Access-Key: Tenant-level access key
Save your credentials:
export ADP_ACCESS_KEY="your_access_key_here"
export ADP_APP_KEY="your_app_key_here"
export ADP_APP_SECRET="your_app_secret_here"
2. Configuration (Optional)
Recommended: Use environment variables (most secure):
{
skills: {
entries: {
"adp-doc-extraction": {
enabled: true,
// API credentials loaded from environment variables
},
},
},
}
Security Note:
- Set file permissions:
chmod 600 ~/.openclaw/openclaw.json - Never commit this file to version control
- Prefer environment variables or secret stores
- Rotate credentials regularly
Common Tasks
Extract from File URL
curl -X POST "https://adp-global.laiye.com/open/agentic_doc_processor/laiye/v1/app/doc/extract" \
-H "Content-Type: application/json" \
-H "X-Access-Key: $ADP_ACCESS_KEY" \
-H "X-Timestamp: $(date +%s)" \
-H "X-Signature: $(uuidgen)" \
-d '{
"app_key": "'"$ADP_APP_KEY"'",
"app_secret": "'"$ADP_APP_SECRET"'",
"file_url": "https://example.com/document.pdf"
}'
Extract from Base64
# Convert file to base64
file_base64=$(base64 -i document.pdf | tr -d '\n')
curl -X POST "https://adp-global.laiye.com/open/agentic_doc_processor/laiye/v1/app/doc/extract" \
-H "Content-Type: application/json" \
-H "X-Access-Key: $ADP_ACCESS_KEY" \
-H "X-Timestamp: $(date +%s)" \
-H "X-Signature: $(uuidgen)" \
-d "{
\"app_key\": \"$ADP_APP_KEY\",
\"app_secret\": \"$ADP_APP_SECRET\",
\"file_base64\": \"$file_base64\",
\"file_name\": \"document.pdf\"
}"
Extract with VLM Results
curl -X POST "https://adp-global.laiye.com/open/agentic_doc_processor/laiye/v1/app/doc/extract" \
-H "Content-Type: application/json" \
-H "X-Access-Key: $ADP_ACCESS_KEY" \
-H "X-Timestamp: $(date +%s)" \
-H "X-Signature: $(uuidgen)" \
-d '{
"app_key": "'"$ADP_APP_KEY"'",
"app_secret": "'"$ADP_APP_SECRET"'",
"file_url": "https://example.com/document.pdf",
"with_rec_result": true
}'
Access VLM results: response["doc_recognize_result"]
Async Extraction (Large Documents)
Create extraction task:
curl -X POST "https://adp-global.laiye.com/open/agentic_doc_processor/laiye/v1/app/doc/extract/create/task" \
-H "Content-Type: application/json" \
-H "X-Access-Key: $ADP_ACCESS_KEY" \
-H "X-Timestamp: $(date +%s)" \
-H "X-Signature: $(uuidgen)" \
-d '{
"app_key": "'"$ADP_APP_KEY"'",
"app_secret": "'"$ADP_APP_SECRET"'",
"file_url": "https://example.com/large-document.pdf"
}'
# Returns: {"task_id": "task_id_value", "metadata": {...}}
Poll for results:
curl -X GET "https://adp-global.laiye.com/open/agentic_doc_processor/laiye/v1/app/doc/extract/query/task/{task_id}" \
-H "X-Access-Key: $ADP_ACCESS_KEY"
Advanced Features
Custom Scale Parameter
Enhance VLM quality with higher resolution:
# model_params: { "scale": 2.0 }
Specify Config Version
Use a specific extraction configuration:
# model_params: { "version_id": "config_version_id" }
Document Recognition Only
Get VLM results without extraction:
curl -X POST "https://adp-global.laiye.com/open/agentic_doc_processor/laiye/v1/app/doc/recognize" \
-H "Content-Type: application/json" \
-H "X-Access-Key: $ADP_ACCESS_KEY" \
-H "X-Timestamp: $(date +%s)" \
-H "X-Signature: $(uuidgen)" \
-d '{
"app_key": "'"$ADP_APP_KEY"'",
"app_secret": "'"$ADP_APP_SECRET"'",
"file_url": "https://example.com/document.pdf"
}'
When to Use
Use ADP For:
- Invoice processing
- Order processing
- Receipt processi
Install laiye-doc-processing in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the laiye-doc-processing skill do?
Enterprise-grade agentic document processing API. Accurately extracts key fields and line items from invoices, receipts, orders and more across 10+ file formats, with confidence scoring. Zero-configuration, fast integration. Professionally optimized on massive enterprise documents.
How do I install the laiye-doc-processing skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the laiye-doc-processing skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
by AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
by Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
by Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
by Anthropic