English
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
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 attachmentsend— Send a document: Only a draft can be sent; a freshly created document is waited for.get— Get a documentlist— List documentsdownload— 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:
actionis one ofsend,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:
actioniscreateFromTemplate
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 withimage/*.byName— By file name: By name pattern:*.pdf,invoice-*.
- Shown when:
actioniscreateFromAttachment
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:
actioniscreateFromAttachmentandselectionisbyMime - 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:
actioniscreateFromAttachmentandselectionisbyName - Expressions:
{{ }}accepted
documentName
Document name
- Type: Text (
string) - Required: No
- Default:
""(empty) - 255 characters at most
- Example:
Quote — {{ data.read.client }} - Shown when:
actionis one ofcreateFromTemplate,createFromAttachment - Expressions:
{{ }}accepted
recipientEmail
Recipient email
- Type: Text (
string) - Required: No
- Default:
""(empty) - 320 characters at most
- Example:
{{ email.from.email }} - Shown when:
actionis one ofcreateFromTemplate,createFromAttachment,createContact - Expressions:
{{ }}accepted
recipientFirstName
First name
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Shown when:
actionis one ofcreateFromTemplate,createFromAttachment,createContact - Expressions:
{{ }}accepted
recipientLastName
Last name
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Shown when:
actionis one ofcreateFromTemplate,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:
actioniscreateFromTemplate - Expressions:
{{ }}accepted
tokens
Variables — The template variables (Client.Company, Price…) and their value.
- Type: Key / value pairs (
keyValue) - Required: No
- Shown when:
actioniscreateFromTemplate - Expressions:
{{ }}accepted
company
Company
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Shown when:
actioniscreateContact - Expressions:
{{ }}accepted
subject
Email subject
- Type: Text (
string) - Required: No
- Default:
""(empty) - 255 characters at most
- Shown when:
actionissend - Expressions:
{{ }}accepted
message
Message
- Type: Long text (
text) - Required: No
- Default:
""(empty) - 5000 characters at most
- Shown when:
actionissend - 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:
actionissend
search
Search
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Shown when:
actionislist - Expressions:
{{ }}accepted
status
Status
- Type: One choice (
options) - Required: No
- Default:
any - Options:
any— Anydraft— Draftsent— Sentviewed— Viewedcompleted— Completedwaiting_approval— Waiting approvalapproved— Approvedrejected— Rejecteddeclined— Declinedvoided— Voided
- Shown when:
actionislist
limit
Maximum count
- Type: Number (
number) - Required: No
- Default:
20 - Whole number, from 1 to 100
- Shown when:
actionislist
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.statusis for exampledocument.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 (withsummaryKeyandsummaryParams).
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 emailrecipientEmail, First namerecipientFirstName, Last namerecipientLastName, Template rolerecipientRole) 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: Searchsearch, Statusstatus, Maximum countlimit). - Fetch the PDF (
download) and Create a contact (createContact, with Companycompany).
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.