Skip to main content

Pritset integration for n8n

Use the Pritset community node to generate PDFs from Pritset templates in an n8n workflow. The node can return a generated PDF directly as binary data or request asynchronous delivery to a webhook.

Installationโ€‹

You can search Priset in your GUI search or...

Install n8n-nodes-pritset in a self-hosted n8n instance:

  1. In n8n, open Settings > Community Nodes.
  2. Select Install.
  3. Enter n8n-nodes-pritset as the npm package name.
  4. Confirm the installation.

For alternative installation methods, see the n8n community node installation guide.

Operationsโ€‹

The Pritset node provides two processing modes:

ModeBehaviorOutput
DirectWaits for Pritset to generate the PDF.Returns the PDF in the data binary field.
WebhookStarts PDF generation and asks Pritset to deliver the result to a public webhook URL.Returns the Pritset API response immediately.

Credentialsโ€‹

Create a Pritset API credential in n8n with these values:

FieldAPI headerDescription
Access TokenAuthorizationYour Pritset access token.
Secret KeyX-SecretYour Pritset user secret.

Both values are stored as password fields by n8n. You can copy them from the security section of your Pritset profile.

Usageโ€‹

Before building the workflow, upload a DOCX template to Pritset and copy its template ID.

  1. Add the Pritset node to a workflow.

  2. Select an existing Pritset API credential or create one.

  3. Enter the Pritset template ID. By default, the field reads templateId from the incoming item:

    {{$json.templateId}}
  4. Choose Direct or Webhook mode.

  5. Provide the template data as a JSON object. By default, the node uses data from the incoming item, or the entire item when data is absent:

    {{$json.data ?? $json}}
  6. When using webhook mode, provide a publicly reachable webhook URL.

Example inputโ€‹

The default field expressions accept an incoming item in this format:

{
"templateId": "your-template-id",
"data": {
"customerName": "Ada Lovelace",
"invoiceNumber": "INV-1001"
}
}

The keys in data must match the placeholders used in your Pritset template. See template syntax for details.

Outputโ€‹

Direct modeโ€‹

Direct mode returns metadata in json and the generated PDF in binary.data:

{
"json": {
"templateId": "your-template-id",
"mode": "direct",
"fileName": "pritset-your-template-id.pdf"
},
"binary": {
"data": "<generated PDF>"
}
}

Connect the node to another n8n node that accepts binary data to save, upload, email, or otherwise process the PDF.

Webhook modeโ€‹

Webhook mode returns the Pritset API response with id. Pritset sends the generated PDF separately to the public webhook URL.

{
"id": "57056f7462084dde8902421e9287ea2d"
}

The callback is a POST request whose body contains the generated PDF. Its id query parameter matches the job ID returned when processing started. See template processing for the full webhook contract.

Validation and errorsโ€‹

  • Template ID cannot be empty.
  • Template Data must be a valid JSON object, not an array or primitive value.
  • Webhook URL is required in webhook mode and must be publicly reachable.
  • If Continue On Fail is enabled in n8n, a failed item returns its error message in the json.error field and the workflow continues.

Compatibilityโ€‹

The community node is tested with n8n 2.30.7 and Node.js 22.

Resourcesโ€‹

The n8n-nodes-pritset package is available under the MIT License.