Install
openclaw skills install agentic-lettersSend physical letters anywhere in Germany with a single command. Use when: user wants to send a physical letter. Requires an API key from agentic-letters.com.
openclaw skills install agentic-lettersSend physical letters anywhere in Germany via the agentic-letters.com API. Your PDF gets printed, put in an envelope, and mailed — one API call, one real letter.
mkdir -p ~/.openclaw/secrets
echo 'AGENTIC_LETTERS_API_KEY=al_your_api_key' > ~/.openclaw/secrets/agentic_letters.env
AgenticLetters has no account system and no login. The flow is:
al_) is sent to that email immediatelyThe key is a Bearer token used in every request. If the user buys more credits later with the same email, the existing key gets topped up — no new key issued. If the user doesn't have a key yet, guide them to https://agentic-letters.com/buy.
{baseDir}/agentic_letters.py — a zero-dependency Python CLI (stdlib only).
python3 {baseDir}/agentic_letters.py send \
--pdf letter.pdf \
--name "Max Mustermann" \
--street "Musterstraße 1" \
--zip 10115 \
--city Berlin \
--label "Kündigung Fitnessstudio"
Optional flags:
--type <type> — letter type (default: standard). New types will be added over time; the API rejects unknown types with a list of valid ones.--country <code> — country code (default: DE). Currently only Germany is supported.Output (JSON to stdout):
{
"id": "550e8400-e29b-41d4-a716",
"status": "queued",
"type": "standard",
"label": "Kündigung Fitnessstudio",
"created_at": "2026-02-24T19:00:00Z",
"credits_remaining": 4
}
python3 {baseDir}/agentic_letters.py status <letter-id>
Status values: queued → printed → sent → returned
python3 {baseDir}/agentic_letters.py credits
python3 {baseDir}/agentic_letters.py list
Every sent letter is tracked locally in {baseDir}/records/. Each file is named YYYY-MM-DD_<id-prefix>.json and contains:
{
"id": "550e8400-...",
"status": "queued",
"type": "standard",
"label": "Kündigung Fitnessstudio",
"recipient": { "name": "Max Mustermann", "street": "Musterstraße 1", "zip": "10115", "city": "Berlin", "country": "DE" },
"created_at": "2026-02-24T19:00:00Z",
"credits_remaining": 4,
"last_checked": null
}
Records are created automatically on send and updated on status. The date prefix lets agents quickly find recent letters without scanning old files. To check on pending letters, look at recent record files and call status for any that aren't sent yet.
If the user doesn't have a PDF ready, generate one:
pandoc for markdown → PDF: echo "Dear Sir..." | pandoc -o letter.pdfwkhtmltopdf for HTML → PDF: wkhtmltopdf letter.html letter.pdffpdf2 or reportlab for programmatic generationAlways ensure A4 format (210 × 297 mm) with at least 15 mm margins.
Errors go to stderr with a clear origin tag. The exit code is non-zero on failure.
Origins:
[local] — problem before the request (missing file, no API key)[server] — the API rejected the request (includes error code, HTTP status, detail, and field)[network] — could not reach the API (DNS, timeout, connection refused)Example server error:
[server] Invalid German postal code
code: recipient_zip_invalid
http_status: 400
detail: Expected a 5-digit German PLZ (e.g. "10115"), got "123".
field: recipient.zip
On success, JSON is printed to stdout. On failure, nothing goes to stdout.
Kündigung (cancellation): Ask for: service name, customer number, recipient address. Generate a formal cancellation letter as PDF, send it.
DSGVO Auskunftsersuchen (data access request): Ask for: company name, address, user's full name. Generate a DSGVO Art. 15 request letter, send it.
Widerspruch (objection/appeal): Ask for: authority/company, reference number, reason. Generate a formal objection letter, send it.