Power Automate and n8n
Both call Oomplo with one HTTP step. Oomplo must be reachable from where the flow runs: Power Automate cloud flows need Oomplo behind a gateway or a public reverse proxy with your own access control; Power Automate Desktop and a self-hosted n8n can call it inside your network.
Power Automate #
Custom connector (recommended). In Power Automate: Data → Custom
connectors → New → Import an OpenAPI file, choose
[power-automate/apiDefinition.swagger.json](power-automate/apiDefinition.swagger.json),
with [power-automate/apiProperties.json](power-automate/apiProperties.json)
(Power Platform CLI: paconn create --api-def apiDefinition.swagger.json
--api-prop apiProperties.json --icon icon.png; in the portal keep API
key on Security). Create a connection with the host name of your Oomplo
server (Server, without https://) and Bearer oomplo_…: every
connection calls its own server. The
actions: Create a document from a template (the file content in
file, ready for SharePoint or e-mail), Check data for a template, Get
the data a template needs, Start a series of documents, Get the state
and Get the result of a series. The connector needs Oomplo reachable over
HTTPS (a gateway or a reverse proxy).
Or one HTTP step:
Action HTTP (premium connector):
| Setting | Value |
|---|---|
| Method | POST |
| URI | https://oomplo.company.example/api/templates/<id>/render |
| Headers | Content-Type: application/json, Authorization: Bearer <API key> (keep it in a secure input or Azure Key Vault) |
| Body | { "data": @{body('Get_item')} } (any JSON with your fields) |
The body of the response is the PDF. Use it as the file content in the
next action, for example SharePoint – Create file with
File content = @{body('HTTP')} and a name ending in .pdf, or
Send an email (V2) with an attachment. Signature fields for an
e-signature connector: @{decodeUriComponent(outputs('HTTP')?['headers']?['X-Oomplo-Signature-Fields'])}
and json() around it.
For many documents, call POST /api/templates/<id>/jobs with the series
file in base64 (base64(body('Get_file_content'))), then a Do until
loop with GET /api/jobs/<id> until state is not running, then
GET /api/jobs/<id>/result.
n8n #
Workflow to import. Import [n8n/oomplo-render.workflow.json](n8n/oomplo-render.workflow.json)
(Workflows → Import from file), set the URL and a Header Auth credential
(Authorization: Bearer oomplo_…) on the Oomplo render node, and replace the
Data node with your source. Or build it yourself:
Node HTTP Request:
| Setting | Value |
|---|---|
| Method | POST |
| URL | http://oomplo:3001/api/templates/<id>/render |
| Authentication | Generic Credential Type → Header Auth: name Authorization, value Bearer <API key> |
| Send Body | JSON: { "data": {{ $json }} } |
| Options → Response → Response Format | File (binary property data) |
The PDF arrives as binary data; pass it to Write Binary File, an
e-mail node or a storage node. The response headers (Options → Response →
Include Response Headers and Status) carry x-oomplo-signature-fields for
an e-signature node.
Series in n8n: Read/Write Files from Disk (the spreadsheet) →
Extract from File (operation Move File to Base64 String, into
file) → HTTP Request POST …/jobs with {"series": {"name":
"recipient", "kind": "xlsx", "file": "{{ $json.file }}"}, "zip": true} →
Wait and
HTTP Request GET …/jobs/{{ $json.id }} in a loop until state is
done → HTTP Request GET …/result as a file.
Oomplo node (coming soon). The community node n8n-nodes-oomplo adds
an Oomplo node with an Oomplo API credential (server URL and API key):
Create (the PDF or DOCX as binary data data), Get Schema, Validate
Data, and for many documents Series → Start, Get and Download. It is
not on npm yet; until then use the workflow or the HTTP Request node above.
Tips #
- Keep the template id in one place (a flow variable); publish a new version in Oomplo instead of changing the flow.
- Use
"strict": truein production flows: a template with simplifications then fails loudly instead of producing a slightly different PDF. - Check
X-Oomplo-Licenseoccasionally:over-limitmeans the month's number of PDFs in your licence is exceeded (production goes on).