Skip to content

PandaDoc ​

Creates a PandaDoc quote or contract from a template or an attachment, sends it, follows its status and fetches the PDF.

The PandaDoc node turns a request received by email into a sales document: a quote, a proposal or a contract created from a PandaDoc template (with its variables) or from an attachment, sent to the client for signature, then brought back as a PDF.

It works with a PandaDoc connection created once in Connections. See PandaDoc.

At a glance ​

  • Type: pandadoc.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: PandaDoc
  • Inputs: main
  • Outputs: main
The ports of “PandaDoc”: 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 PandaDoc connection.PandaDocpandadoc.apimainmainerror · only with “Follow the Error output”Connection: PandaDoc
The ports of “PandaDoc”: what comes in on the left, what goes out on the right

Connection ​

This node needs a PandaDoc connection.

Parameters ​

connection ​

PandaDoc connection — The PandaDoc 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: createFromTemplate
  • Options:
    • createFromTemplate — Create a document from a template: A quote, a proposal or a contract, filled with variables.
    • createFromAttachment — Create a document from an attachment
    • send — Send a document: Only a draft can be sent; a freshly created document is waited for.
    • get — Get a document
    • list — List documents
    • download — Fetch the PDF: Adds it to the run’s attachments.
    • createContact — Create a contact

documentId ​

Document — The PandaDoc identifier, as returned by the create action, the list or the trigger.

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 100 characters at most
  • Example: {{ data.pandadoc.documentId }}
  • Shown when: action is one of send, get, download
  • Expressions: {{ }} accepted

template ​

Template

  • Type: Remote resource (resourceLocator)
  • Required: Yes
  • Ways to choose: pick from a list, type an ID (pandadoc.template)
  • Listed with the connection in: connection
  • Shown when: action is createFromTemplate

selection ​

Attachments to use

  • Type: One choice (options)
  • Required: Yes
  • Default: all
  • Options:
    • all — All attachments: Those of the triggering email, then the files added by earlier steps (a fetched deed, a signed PDF), in that order.
    • first — The first one only: The first attachment, when only one matters.
    • byMime — By file type: By MIME type: application/pdf, or a whole family with image/*.
    • byName — By file name: By name pattern: *.pdf, invoice-*.
  • Shown when: action is createFromAttachment

mime ​

File type — Exact MIME type (application/pdf) or a whole family (image/*). Left empty, no attachment is kept.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Example: application/pdf
  • Shown when: action is createFromAttachment and selection is byMime
  • Expressions: {{ }} accepted

namePattern ​

File name — Simple pattern: * matches anything, ? one character (*.pdf, invoice-*). Case is ignored.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Example: *.pdf
  • Shown when: action is createFromAttachment and selection is byName
  • Expressions: {{ }} accepted

documentName ​

Document name

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 255 characters at most
  • Example: Quote — {{ data.read.client }}
  • Shown when: action is one of createFromTemplate, createFromAttachment
  • Expressions: {{ }} accepted

recipientEmail ​

Recipient email

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.email }}
  • Shown when: action is one of createFromTemplate, createFromAttachment, createContact
  • Expressions: {{ }} accepted

recipientFirstName ​

First name

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is one of createFromTemplate, createFromAttachment, createContact
  • Expressions: {{ }} accepted

recipientLastName ​

Last name

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is one of createFromTemplate, createFromAttachment, createContact
  • Expressions: {{ }} accepted

recipientRole ​

Template role — The recipient’s role as named in the template (“Client”). Optional.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 100 characters at most
  • Shown when: action is createFromTemplate
  • Expressions: {{ }} accepted

tokens ​

Variables — The template variables (Client.Company, Price…) and their value.

  • Type: Key / value pairs (keyValue)
  • Required: No
  • Shown when: action is createFromTemplate
  • Expressions: {{ }} accepted

company ​

Company

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

subject ​

Email subject

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 255 characters at most
  • Shown when: action is send
  • Expressions: {{ }} accepted

message ​

Message

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 5000 characters at most
  • Shown when: action is send
  • Expressions: {{ }} accepted

silent ​

No PandaDoc email — The document moves to “sent” without notification: check it when you send the link yourself.

  • Type: Yes / no (boolean)
  • Required: No
  • Default: false
  • Shown when: action is send

Search

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

status ​

Status

  • Type: One choice (options)
  • Required: No
  • Default: any
  • Options:
    • any — Any
    • draft — Draft
    • sent — Sent
    • viewed — Viewed
    • completed — Completed
    • waiting_approval — Waiting approval
    • approved — Approved
    • rejected — Rejected
    • declined — Declined
    • voided — Voided
  • Shown when: action is list

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 20
  • Whole number, from 1 to 100
  • Shown when: action is list

Outputs ​

  • main — Taken once the PandaDoc call succeeds, whatever the action. An error response from PandaDoc 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 identifier of the document created, sent, read or downloaded.
  • {{ data.<step>.document }} — { id, name, status, createdAt, modifiedAt, completedAt, expiresAt }. The document. status is for example document.uploaded, document.draft, document.sent, document.completed.
  • {{ data.<step>.status }} — string. Get a document only: its status.
  • {{ data.<step>.recipients }} — array of object. Get a document only: the recipients as PandaDoc returns them.
  • {{ data.<step>.sharedLinks }} — array of { email, link }. Send only: each recipient’s link, to paste into a reply when sending silently.
  • {{ data.<step>.documents }} — array of document. List documents only, most recently modified first.
  • {{ data.<step>.attachmentPosition }} — number. Fetch the PDF only: the position of the added file.
  • {{ data.<step>.contactId }} — string. Create a contact only.
  • {{ 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 (with summaryKey and summaryParams).

Operations ​

The Action parameter (action) picks the operation.

  • Create a document from a template (createFromTemplate, the default): Template (template), Document name (documentName), the recipient (Recipient email recipientEmail, First name recipientFirstName, Last name recipientLastName, Template role recipientRole) and the Variables (tokens).
  • Create a document from an attachment (createFromAttachment): the first selected attachment (selection, mime, namePattern) becomes a document.
  • Send a document (send): Email subject (subject), Message (message), No PandaDoc email (silent). A freshly created document is still being processed for a few seconds: the step is then resumed later.
  • Get a document (get), List documents (list: Search search, Status status, Maximum count limit).
  • Fetch the PDF (download) and Create a contact (createContact, with Company company).

Example ​

A broker receives a quote request and drafts it from their template:

text
action          createFromTemplate
documentName    Quote — {{ data.read.client }}
recipientEmail  {{ email.from.email }}
tokens          Price = {{ data.read.premium }}

then a one-minute Wait and a second PandaDoc node (action = send, documentId = {{ data.<step>.documentId }}).

Tips ​

  • Draft. Only a draft can be sent; the node reads the status before sending.
  • Sandbox. With a sandbox key, sending is limited to addresses of the sender’s domain.

Loop & Roll — the workflow builder for email.