Skip to content

PDFMonkey ​

Generates a PDF from a PDFMonkey template and an email’s data, and attaches it to the run to send it.

The PDFMonkey node generates a PDF from a template and JSON data, and drops it into the run’s attachments: a following “Compose” node sends it.

It works with a PDFMonkey connection. See PDFMonkey.

At a glance ​

  • Type: pdfmonkey.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: Writes outside (external_write) — writes outside Loop & Roll; described instead of performed during a test run
  • Needs a carrier email: No
  • Connection: PDFMonkey
  • Inputs: main
  • Outputs: main
The ports of “PDFMonkey”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a PDFMonkey connection.PDFMonkeypdfmonkey.apimainmainerror · only with “Follow the Error output”Connection: PDFMonkey
The ports of “PDFMonkey”: what comes in on the left, what goes out on the right

Connection ​

This node needs a PDFMonkey connection.

Parameters ​

connection ​

PDFMonkey connection — The PDFMonkey connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

action ​

Action

  • Type: One choice (options)
  • Required: Yes
  • Default: generate
  • Options:
    • generate — Generate a PDF
    • getDocument — Get and bring back a document

templateId ​

Template (identifier) — The template identifier, in PDFMonkey (template page → “Template ID”).

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 80 characters at most
  • Shown when: action is generate
  • Expressions: {{ }} accepted

payload ​

Data (JSON) — A JSON object, read by the template. Accepts {{ }} expressions.

  • Type: Long text (text)
  • Required: Yes
  • Default: {}
  • 500000 characters at most
  • Example: { "customer": "{{ email.from.name }}", "subject": "{{ email.subject }}" }
  • Shown when: action is generate
  • Expressions: {{ }} accepted

filename ​

File name — Empty: the template’s.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Example: quote.pdf
  • Shown when: action is generate
  • Expressions: {{ }} accepted

documentId ​

Document

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 80 characters at most
  • Example: {{ data.<step>.documentId }}
  • Shown when: action is getDocument
  • Expressions: {{ }} accepted

attach ​

Attach the PDF to the run — So that a following “Compose” node can send it.

  • Type: Yes / no (boolean)
  • Required: No
  • Default: true

Outputs ​

  • main — Taken once the call to PDFMonkey succeeds. An error response from PDFMonkey fails the step instead.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.<step>.documentId }} — string. The document identifier.
  • {{ data.<step>.status }} — string. success, pending, generating or failure.
  • {{ data.<step>.attachmentPosition }} — number. The attachment to cite in an email (once the PDF is ready).
  • {{ data.<step>.simulated }} — boolean. true when the write was described instead of performed (test run).
  • {{ data.<step>.summary }} — string. The one-line summary in the member’s language.

Loop & Roll — the workflow builder for email.