Create fillable document templates from PDF or DOCX API
Upload a contract, NDA, invoice, lease or proposal as a PDF or DOCX file and get it back as a reusable fill-in-the-blank template. A first AI pass identifies
- Id:
widget_391 - Price: Ƀ 30 a run, plus the Call Price, Ƀ 0.1 an API run. Your first 100 API runs carry no Call Price.
- Widget page: Run it in your browser
- Docs: Call Abyss from your code
Input
Send these Fields as input. A Field not listed here is refused.
document
Document to turn into a template (PDF or DOCX)
An https URL or an upload id.
- Type: string
- Required: yes
- Length in characters: at least 1
Run it
One call presses the Widget and answers the run once its status is succeeded or failed, however long it takes. The key is read from ABYSS_API_KEY. Install the library with npm install abysshub or pip install abysshub; cURL sends the Fields as a form.
JavaScript
// index.mjs
import Abyss, { file } from "abysshub";
const abyss = new Abyss();
const run = await abyss.run("widget_391", {
document: file("mutual-nda-harbourline-fennick.docx"),
});
console.log(run.result);
for (const path of await run.save("output")) {
console.log(path);
}Python
from abysshub import Abyss, file
abyss = Abyss()
run = abyss.run("widget_391", {
"document": file("mutual-nda-harbourline-fennick.docx"),
})
print(run.result)
for path in run.save("output"):
print(path)cURL
curl https://api.abysshub.com/v1/widgets/widget_391/runs \
-H "Authorization: Bearer $ABYSS_API_KEY" \
-F document=@mutual-nda-harbourline-fennick.docxA succeeded run carries its result and its output_files. Their URLs are signed for each read: re-read the run, never store a URL. A run still queued or running in the answer (after an hour, or when the API is busy) is read again at its Location with ?wait=true.
What it answers
The Example Run's result, the JSON the Widget wrote to output/output.json:
{
"success": true,
"message": "Document template created successfully!",
"classification": {
"documentType": "Mutual Non-Disclosure Agreement",
"description": "A mutual agreement between two companies establishing reciprocal confidentiality obligations for information shared while evaluating a possible dashboard redesign collaboration.",
"fieldsIdentified": 19
},
"template": {
"filename": "mutual_non_disclosure_agreement_template_2026-11-20.pdf",
"originalDocument": "mutual-nda-harbourline-fennick.docx",
"createdDate": "2026-11-20",
"googleDriveId": null,
"viewUrl": null,
"downloadUrl": null,
"directDownload": null
},
"fields": [
{
"placeholder": "[EFFECTIVE_DATE]",
"description": "Date the agreement is entered into and takes effect (March 3, 2026)"
},
{
"placeholder": "[PARTY_1_NAME]",
"description": "Legal name of the first party, Harbourline Analytics Ltd."
},
{
"placeholder": "[PARTY_1_JURISDICTION]",
"description": "Jurisdiction of organisation of the first party (England and Wales)"
},
{
"placeholder": "[PARTY_1_REGISTERED_ADDRESS]",
"description": "Registered office address of the first party (41 Quayside Lane, Bristol BS1 4XY, United Kingdom)"
},
{
"placeholder": "[PARTY_2_NAME]",
"description": "Legal name of the second party, Fennick & Oduya Design LLC"
},
{
"placeholder": "[PARTY_2_JURISDICTION]",
"description": "Jurisdiction of organisation of the second party (Delaware, USA)"
},
{
"placeholder": "[PARTY_2_PRINCIPAL_ADDRESS]",
"description": "Principal place of business of the second party (1180 Larkspur Avenue, Suite 300, Portland, Oregon 97205, USA)"
},
{
"placeholder": "[PURPOSE]",
"description": "Description of the purpose of the disclosure, namely evaluating a possible collaboration on redesign of Harbourline's customer reporting dashboard"
},
{
"placeholder": "[TERM_YEARS]",
"description": "Length of the agreement term from the Effective Date (two (2) years)"
},
{
"placeholder": "[SURVIVAL_PERIOD_YEARS]",
"description": "Period after termination during which Section 4 obligations survive (three (3) years)"
},
{
"placeholder": "[RETURN_PERIOD_DAYS]",
"description": "Number of days to return or destroy materials after written request (fifteen (15) days)"
},
{
"placeholder": "[GOVERNING_LAW_STATE]",
"description": "State whose laws govern the agreement (State of New York)"
},
{
"placeholder": "[JURISDICTION_COUNTY]",
"description": "County whose state and federal courts have exclusive jurisdiction (New York County, New York)"
},
{
"placeholder": "[PARTY_1_SIGNATORY_NAME]",
"description": "Name of the person signing for Harbourline Analytics Ltd. (Imogen Castellane)"
},
{
"placeholder": "[PARTY_1_SIGNATORY_TITLE]",
"description": "Title of the person signing for Harbourline Analytics Ltd. (Chief Operating Officer)"
},
{
"placeholder": "[PARTY_1_SIGNATURE_DATE]",
"description": "Date Harbourline Analytics Ltd. signed the agreement (March 3, 2026)"
},
{
"placeholder": "[PARTY_2_SIGNATORY_NAME]",
"description": "Name of the person signing for Fennick & Oduya Design LLC (Tobias Oduya)"
},
{
"placeholder": "[PARTY_2_SIGNATORY_TITLE]",
"description": "Title of the person signing for Fennick & Oduya Design LLC (Managing Partner)"
},
{
"placeholder": "[PARTY_2_SIGNATURE_DATE]",
"description": "Date Fennick & Oduya Design LLC signed the agreement (March 4, 2026)"
}
],
"instructions": {
"usage": "Your document template is ready. All variable content has been replaced with [PLACEHOLDER] tags.",
"howToUse": [
"Download the PDF to see the complete template with all placeholders",
…More
Keys, files, errors and limits: API access.