Use this skill when the user wants to send a supported file for signature through Nota Sign.
PROD or UAT environmentCollect only the missing fields.
Required to send:
userName and userEmailSupported file formats:
doc, docx, pdf, xls, xlsx, bmp, png, jpg, jpegSize limit:
<= 100MBOptional:
subjectDefault to the file name when the user does not provide one.
Required only when config is missing or the user asks to reconfigure:
appIdappKey as Base64 PKCS#8 RSA private keyuserCodeserverRegion in CN | AP1 | AP2 | EU1environment in PROD | UATDefault to PROD.
Important:
PROD and UAT require separate credential setsPROD appId, appKey, userCode, or serverRegion can be reused in UATUAT appId, appKey, userCode, or serverRegion can be reused in PROD./notasign-config.json exists; if not, check ~/.notasign/config.json.PROD and UAT, do not only flip environment. Collect the full target-environment values for appId, appKey, userCode, and serverRegion, then rewrite the config.http:// or https://doc, docx, pdf, xls, xlsx, bmp, png, jpg, jpeg.100MB.[{"userName":"Alice","userEmail":"alice@example.com"}]
node exists and the major version is 18+, run:npx tsx scripts/send_envelope.ts --file "PATH_OR_URL" --signers '[{"userName":"Alice","userEmail":"alice@example.com"}]' --subject "Optional subject"
18, temporarily download node@20 and tsx for this run only:npx -y -p node@20 -p tsx -c 'tsx scripts/send_envelope.ts --file "PATH_OR_URL" --signers '"'"'[{"userName":"Alice","userEmail":"alice@example.com"}]'"'"' --subject "Optional subject"'
init:npx -y -p node@20 -p tsx -c 'tsx scripts/send_envelope.ts init'
The shared config normally lives at ~/.notasign/config.json. The script also supports a local override at ./notasign-config.json.
Write the config in this shape:
{
"appId": "your_app_id",
"appKey": "base64_pkcs8_private_key",
"userCode": "your_user_code",
"serverRegion": "AP1",
"environment": "PROD"
}
Notes:
environment is optional and defaults to PRODPROD to UAT, or from UAT to PROD, requires replacing appId, appKey, userCode, and serverRegion with the target environment's valuesenvironment fieldsubject if the file name is good enough.scripts/send_envelope.ts command with a runtime check instead of inventing wrappers or extra helper files.100MB before trying to send.This skill should trigger for requests like:
English:
Chinese:
共 1 个版本