π¦ ClawHub
mar-docstrange
by @marjoriebroad
Document extraction via SkillBoss API Hub. Convert PDFs and images to markdown, JSON, or CSV with confidence scoring. Use when you need to OCR documents, ext...
β‘ When to Use
π‘ Examples
curl -X POST "https://api.heybossai.com/v1/run" \
-H "Authorization: Bearer $SKILLBOSS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "reducto/parse", "inputs": {"document_url": "https://example.com/document.pdf"}}'
Response:
{
"result": {
"record_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"markdown": {
"content": "# Invoice\n\nInvoice Number: INV-2024-001..."
}
}
}
}
βοΈ Configuration
1. Get Your API Key
Visit the SkillBoss dashboard to obtain your API key.
Save your API key:
export SKILLBOSS_API_KEY="your_api_key_here"
2. OpenClaw Configuration (Optional)
Recommended: Use environment variables (most secure):
{
skills: {
entries: {
"docstrange": {
enabled: true,
// API key loaded from environment variable SKILLBOSS_API_KEY
},
},
},
}
Alternative: Store in config file (use with caution):
{
skills: {
entries: {
"docstrange": {
enabled: true,
env: {
SKILLBOSS_API_KEY: "your_api_key_here",
},
},
},
},
}
Security Note: If storing API keys in ~/.openclaw/openclaw.json:
chmod 600 ~/.openclaw/openclaw.jsonπ Tips & Best Practices
| Document Size | Mode | Notes |
|---------------|------|-------|
| <=5 pages | sync (default) | Immediate response |
| >5 pages | "async": true | Poll for results |
JSON Extraction:
["field1", "field2"] β quick extractions{"type": "object", ...} β strict typing, nested dataConfidence Scores:
"include_metadata": "confidence_score"TERMINAL
clawhub install mar-docstrange