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:
- In n8n, open Settings > Community Nodes.
- Select Install.
- Enter
n8n-nodes-pritsetas the npm package name. - Confirm the installation.
For alternative installation methods, see the n8n community node installation guide.
Operationsโ
The Pritset node provides two processing modes:
| Mode | Behavior | Output |
|---|---|---|
| Direct | Waits for Pritset to generate the PDF. | Returns the PDF in the data binary field. |
| Webhook | Starts 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:
| Field | API header | Description |
|---|---|---|
| Access Token | Authorization | Your Pritset access token. |
| Secret Key | X-Secret | Your 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.
-
Add the Pritset node to a workflow.
-
Select an existing Pritset API credential or create one.
-
Enter the Pritset template ID. By default, the field reads
templateIdfrom the incoming item:{{$json.templateId}} -
Choose Direct or Webhook mode.
-
Provide the template data as a JSON object. By default, the node uses
datafrom the incoming item, or the entire item whendatais absent:{{$json.data ?? $json}} -
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.errorfield and the workflow continues.
Compatibilityโ
The community node is tested with n8n 2.30.7 and Node.js 22.
Resourcesโ
- n8n-nodes-pritset source repository
- n8n community nodes documentation
- Pritset template processing API
The n8n-nodes-pritset package is available under the MIT License.