🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ 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
TriggerAction
- Invoice and receipt processing
- Contract text extraction
- Bank statement parsing
- Form digitization
- Image OCR (scanned documents)
### Don't Use For:
- Documents >5 pages with sync (use async)
- Video/audio transcription
- Non-document images
πŸ’‘ 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:

  • Set file permissions: chmod 600 ~/.openclaw/openclaw.json
  • Never commit this file to version control
  • Prefer environment variables or your agent's secret store when possible
  • Rotate keys regularly and limit API key permissions if supported
  • πŸ“‹ Tips & Best Practices

    | Document Size | Mode | Notes | |---------------|------|-------| | <=5 pages | sync (default) | Immediate response | | >5 pages | "async": true | Poll for results |

    JSON Extraction:

  • Field list: ["field1", "field2"] β€” quick extractions
  • JSON schema: {"type": "object", ...} β€” strict typing, nested data
  • Confidence Scores:

  • Add "include_metadata": "confidence_score"
  • Scores are 0-100 per field
  • Review fields <80 manually
  • View on ClawHub
    TERMINAL
    clawhub install mar-docstrange

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’