Fax send

From HybridAIOne/hybridclaw · View interactive version

Fax send is an AI agent skill from the GitHub repository HybridAIOne/hybridclaw. Send outbound faxes through a guarded provider adapter and route inbound fax-to-email attachments into downstream document workflows.

How to use this skill

Skill file

Fax Send

Use this skill when a user asks to fax a supported file, web page, text note, or

PDF to an external fax number, or when an inbound fax arrives as an email PDF

and needs routing to a document workflow such as DATEV Belegtransfer, file

storage, or client records.

Response Contract

same plan, missing-input list, or no-send notice in a second format.

markdown-styled version and a plain-text duplicate of the same sentence.

filler in fax responses.

once and only if it is actually required: SINCH_FAX_PROJECT_ID plus either

SINCH_FAX_BASIC_AUTH or SINCH_FAX_OAUTH_TOKEN. Never claim a Sinch

service ID secret is required for normal outbound sending.

helper-generated PDF upload path after the recipient fax number, stored Sinch

project ID, stored credential, and explicit approval are available. Omit

from when the user wants to use the Sinch Fax service default sender. Do

not ask the user for a service ID for a normal outbound send; Sinch uses the

product's default Fax service when serviceId is omitted.

returns, stop and report the provider result. Do not use web_search,

web_fetch, the PDF skill, local PDF scripts, helper source inspection, or

ad hoc replacement requests, and do not ask to retry in the same response,

unless the user explicitly asks for debugging in a new turn.

Scope

PDF handoff flows

Direct modem control, T.38/SIP live transmission, binary local file upload, and

cover-page templating are outside this skill slice.

Credential Rules

Store credentials in HybridClaw encrypted runtime secrets. Never paste them into

chat or helper arguments.

For Sinch Basic auth, set the base64 value of username:password in this

order:

  1. Browser admin: open the active HybridClaw admin URL ending in /admin/secrets and set

SINCH_FAX_BASIC_AUTH.

  1. Browser /chat or TUI fallback:

/secret set SINCH_FAX_BASIC_AUTH "<base64-username-password>".

  1. Local console fallback:
hybridclaw secret set SINCH_FAX_BASIC_AUTH "<base64-username-password>"

For Sinch OAuth, set a bearer token only if the operator has a token minting

process, using the same setup order:

  1. Browser admin: open the active HybridClaw admin URL ending in /admin/secrets and set

SINCH_FAX_OAUTH_TOKEN.

  1. Browser /chat or TUI fallback:

/secret set SINCH_FAX_OAUTH_TOKEN "<access-token>".

  1. Local console fallback:
hybridclaw secret set SINCH_FAX_OAUTH_TOKEN "<access-token>"

The helper emits either `secretHeaders: [{ name: "Authorization", secretName:

"SINCH_FAX_BASIC_AUTH", prefix: "Basic" }] or bearerSecretName:

"SINCH_FAX_OAUTH_TOKEN"` so the gateway injects the secret server-side.

Set the Sinch project default once so normal sends do not need provider account

arguments:

  1. Browser admin: open the active HybridClaw admin URL ending in /admin/secrets and set

SINCH_FAX_PROJECT_ID.

  1. Browser /chat or TUI fallback:

/secret set SINCH_FAX_PROJECT_ID "<sinch-project-id>".

  1. Local console fallback:
hybridclaw secret set SINCH_FAX_PROJECT_ID "<sinch-project-id>"

Default Workflow

  1. Confirm the recipient fax number in E.164 format and the content URL, local

PDF file, or text upload content. Use stored SINCH_FAX_PROJECT_ID by default. Include

--from only when the user explicitly supplies a sender fax number;

otherwise omit it so Sinch uses the Fax service default sender. Omit

serviceId unless the user explicitly provides a non-default Fax service ID

in the same request.

  1. Run plan for natural-language requests when details are incomplete.
  2. Require explicit operator approval before fax.send; faxing is an external

document delivery action and can incur per-page cost.

  1. Build the request with fax_send.cjs http-request send. Do not hand-author

Sinch API JSON or secret references.

  1. Pass only the emitted httpRequest object to http_request for live sends.
  2. After the http_request returns, stop tool use for that send attempt and

summarize the returned status/body. If Sinch returns 4xx/5xx, report it as

the provider response; do not search the web, inspect PDF tooling, or retry

with a different payload shape in the same turn.

  1. Record/inspect audit intent or call the runtime accounting helper:
  1. Use classify-status after status polling or webhook payloads to turn

provider states into the expected audit event and retry decision.

Command Contract

Run the helper:

node skills/fax-send/fax_send.cjs --help

Plan a request without contacting a provider:

node skills/fax-send/fax_send.cjs --format json plan "Fax the signed contract to +49 89 1234567"

Build a guarded Sinch outbound request:

node skills/fax-send/fax_send.cjs --format json http-request send \
  --provider sinch \
  --auth basic \
  --content-url https://example.com/signed-contract.pdf \
  --to +49891234567 \
  --page-count 3 \
  --label costCenter=legal \
  --operator-grant

Look up delivery status:

node skills/fax-send/fax_send.cjs --format json http-request status \
  --fax-id 01F3J0G1M4WQR6HGY6HCF6JA0K

Classify a provider status into audit and retry handling:

node skills/fax-send/fax_send.cjs --format json classify-status \
  --fax-id 01F3J0G1M4WQR6HGY6HCF6JA0K \
  --provider sinch \
  --status FAILURE \
  --error-type CALL_ERROR \
  --error-message "BUSY"

List provider reference support:

node skills/fax-send/fax_send.cjs --format json providers

List eval scenarios:

node skills/fax-send/fax_send.cjs --format json eval-scenarios

Inbound Fax-To-Email

Inbound fax is handled by the existing email channel. Configure the fax provider

or telco portal to forward inbound faxes as PDF attachments to a dedicated

mailbox, then configure HybridClaw email polling for that mailbox.

Use a narrow sender allowlist when the provider uses stable sender domains, and

route attachment PDFs with normal document skills. See

docs/content/channels/fax.md for the operator recipe and reference YAML.

Build a guarded Sinch generated-PDF text upload request:

node skills/fax-send/fax_send.cjs --format json http-request send \
  --provider sinch \
  --auth basic \
  --text "Hallo Welt" \
  --filename hallo-welt.pdf \
  --to +498920931098 \
  --page-count 1 \
  --operator-grant

For generated PDFs, including requests that combine text with an image, first

create the PDF with the bundled PDF script and then send that file. Do not write

ad hoc PDF or multipart scripts.

node skills/pdf/scripts/create_pdf.mjs fax.pdf \
  --image-url https://github.com/HybridAIOne/hybridclaw/blob/main/docs/hero.png?raw=true \
  --text "Hello World! This Claw can fax!"

node skills/fax-send/fax_send.cjs --format json http-request send \
  --provider sinch \
  --auth basic \
  --file fax.pdf \
  --to +498920931098 \
  --page-count 1 \
  --operator-grant

Working Rules

file type or web page. Do not send local paths or private intranet URLs to a

fax provider.

secret-backed multipart/form-data request with the PDF as the file part.

Do not write custom multipart builders.

secret-backed multipart/form-data request with a generated PDF file upload.

Do not invoke skills/pdf, create_pdf.mjs, web_search, or web_fetch to

convert or verify this path; the fax helper owns the PDF payload shape.

the same plan in a second format, do not mirror raw helper JSON after a

human summary, and do not add decorative emoji, sign-off text, or readiness

filler.

+49 89 1234567 becomes +49891234567.

when the user needs small text or detailed scans.

operator to verify the stored Sinch credential.

retry plan instead of resending manually in parallel.

costMeasurement.system = "UsageTotals" plus unit = "fax-page" and the

provided pageCount so evals can verify the accounting contract.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.