Workflow nodes reference
The nodes field of a workflow is a list of JSON objects: one trigger and the steps after it. This page lists what each one takes. For what a setting does in practice, follow the link to the node’s page in the manual: the keys here match the fields there.
A node
Section titled “A node”{ "id": "check_amount", "type": "condition", "position": { "x": 360, "y": 120 }, "config": { "expression": "amount > 1000" }, "trueNextId": "notify_partner", "falseNextId": "send_invoice"}| Field | Type | Meaning |
|---|---|---|
id |
string | Your name for the node, unique in the workflow. 1 to 64 characters: letters, digits, - and _. Other nodes connect to it by this name, and it appears in a run’s record. |
type |
string | trigger, condition, switch, transformation or action. |
actionType |
string | For action nodes only: which step it is. |
position |
object | Where the node sits on the designer’s canvas: x and y, both numbers. Default 0 and 0. It doesn’t affect how the workflow runs. |
config |
object | The node’s settings, described below. |
defaultNextId |
string or null | The next node, for a node with one way on. null ends the run there. On a switch, this is the path taken when no case matches. |
trueNextId, falseNextId |
string or null | The two ways on, for a node that branches. |
caseNextIds |
object | On a switch: where each case leads, as case id to node id. |
Nodes that branch
Section titled “Nodes that branch”A branching node goes on through trueNextId or falseNextId, and it may not have a defaultNextId. A node that doesn’t branch may not have either of those two.
| Node | Branches | trueNextId |
falseNextId |
|---|---|---|---|
condition |
Always | The expression is true | It is false |
storage_download |
With whenMissing: "branch" |
The file was found | It wasn’t |
spreadsheet_read |
With whenNotFound: "branch", the default, unless mode is count |
Found | Not found |
spreadsheet_write |
When a lookup can leave the sheet unchanged, and whenFound or whenNotFound is branch |
The step wrote | It left the sheet as it was |
ai_agent |
With whenMissing: "branch" |
An answer came | No answer came |
find_contract |
Always | A contract was found | None was |
A branching node with its second way left null ends the run there. The run counts as completed, with an outcome that says why.
Graph rules
Section titled “Graph rules”Saving is refused with 422 if the workflow breaks any of these. The violation is on nodes, and its message names each node at fault.
- There is at least one node, and exactly one trigger.
- Every node has a known
type. Everyactionhas a knownactionType. - Node ids are valid and unique.
- Every connection leads to a node that exists.
- There are no cycles: a run can’t come back to a node it has passed.
- Connections match the node, as under Nodes that branch.
caseNextIdsis for a switch only. - Every node’s own required settings are there. Each section below lists them.
- A step that picks files picks them from a node that runs before it and produces files, of a type the step accepts.
- No two nodes store their results in the same variable, or one inside the other, such as
courseandcourse.result. - At most one
create_documentsstep hasinlineDeliveryon, and only under a trigger that leaves someone waiting. See Create documents. - A setting that takes one of a list of values, such as
status,targetorwhenNoFiles, gets one of them. Empty ornullcounts as not given. Any other value is refused, naming the node, the setting and its values:Node "deal" cannot be read: "wn" is not an option of the "status" setting; choose one of: open, won, lost. Every such value is reported, and the rest of the workflow is checked once they are fixed.
Most text settings can hold variables such as {{ email }}, filled in when the workflow runs, with any function of the expression language: {{ client.name | upper }}, {{ nickname ?? firstName }}. Data and variables explains them. Every text setting of an action node is read when you save, a JSON body string by string, and one that can’t be read is refused with 422 naming the node and saying what is wrong and where: A text of node "mail" cannot be read: …. The old forms {{ x | first:4 }} and {x} are refused this way.
Triggers
Section titled “Triggers”A trigger has "type": "trigger", and its config always names a triggerType. It connects with defaultNextId. The designer asks what a trigger starts on, then when; the API stores the event alone, as triggerType, grouped here by what it starts on.
| Starts on | triggerType |
When | entityId |
Other settings |
|---|---|---|---|---|
| Form | formSubmission |
A form is sent or edited | The form’s id. Required. | runOn |
| Interactive document | interactiveDocumentSubmission |
An interactive document is sent or edited | The document’s id. Required. | runOn |
| Template | documentGenerated |
A template produces a document | The template’s id. Required. | |
| Document package | packagePartyTurnStarted |
A party’s turn begins | The document type’s id. Required. | partyIndicator |
packagePartyViewed |
A party opens the documents | The document type’s id. Required. | partyIndicator |
|
packageApproved |
An approver approves the package | The document type’s id. Required. | partyIndicator |
|
packageApprovalRejected |
An approver rejects the package | The document type’s id. Required. | partyIndicator |
|
packagePartySigned |
A party signs | The document type’s id. Required. | partyIndicator |
|
packagePartyPaid |
A party pays | The document type’s id. Required. | partyIndicator |
|
packagePartyPaymentFailed |
A party’s payment fails | The document type’s id. Required. | partyIndicator |
|
packageDeclined |
A party declines to sign | The document type’s id. Required. | partyIndicator |
|
packageFullySigned |
The package is fully signed | The document type’s id. Required. | ||
packageExpired |
The package expires | The document type’s id. Required. | ||
packageVoided |
The package is voided | The document type’s id. Required. | ||
packageContractChanged |
A contract changes | The document type’s id. Required. | ||
packageContractEndingSoon |
A contract is ending soon | The document type’s id. Required. | ||
packageContractEnded |
A contract ends | The document type’s id. Required. | ||
| Contact | contactSaved |
A contact is created or changed | A type’s id, none for contacts of no type, or nothing for any. |
runOn |
| CRM | crmOpportunityStageChanged |
A CRM deal changes stage or status | The CRM integration’s id. Required. It must be one of your organization’s CRM integrations. | pipelineId, stageId, status |
crmPersonSaved |
A CRM person is saved | The CRM integration’s id. Required, as above. | runOn |
|
| Payment | paymentSucceeded |
A payment succeeds | A form’s id, or nothing for the payments of every form. | |
paymentFailed |
A payment fails | A form’s id, or nothing for the payments of every form. | ||
paymentRefunded |
A payment is refunded | A form’s id, or nothing for the payments of every form. | ||
| Quiz | quizAttemptStarted |
A quiz attempt is started | The quiz’s id. Required. | |
quizAttemptNeedsGrading |
A quiz attempt needs grading | The quiz’s id. Required. | ||
quizAttemptFinished |
A quiz attempt is finished | The quiz’s id. Required. | outcome, grades |
|
quizResultsReleased |
A quiz result is released | The quiz’s id. Required. | ||
quizClosed |
A quiz closes | The quiz’s id. Required. | ||
quizRecipientDidNotRespond |
A quiz recipient does not respond | The quiz’s id. Required. | ||
quizAttemptRegraded |
A quiz attempt is regraded | The quiz’s id. Required. | ||
| Survey | surveyResponseStarted |
A survey response is started | The survey’s id. Required. | |
surveyResponseSubmitted |
A survey response is submitted | The survey’s id. Required. | ||
surveyRecipientDidNotRespond |
A survey recipient does not respond | The survey’s id. Required. | ||
surveyClosed |
A survey closes | The survey’s id. Required. | ||
surveyQuotaFull |
A survey quota is full | The survey’s id. Required. | ||
| Webhook | webhookRequest |
A webhook receives a request | The webhook’s id. Required. It must be your organization’s and switched on. | |
| Recurring | schedule |
The clock, at a recurring time | Not used | cronExpression, required |
| Setting | Type | Meaning |
|---|---|---|
runOn |
string | For a submission: submitted (the default), edited, or submitted_or_edited. For a contact, or a person in the CRM: created, updated, or created_or_updated (the default). |
cronExpression |
string | The frequency: five parts separated by spaces (minute, hour, day of the month, month, day of the week), read in your organization’s time zone, written as the Frequency field takes it. For example 0 9 * * 1. |
partyIndicator |
string | Optional, on packagePartyTurnStarted, packagePartyViewed, packageApproved, packageApprovalRejected, packagePartySigned, packagePartyPaid, packagePartyPaymentFailed and packageDeclined. Only this party’s turn, opening, answer, signature, payment or refusal starts the workflow; without it any party’s does. Capital letters, digits and _, starting with a letter. |
pipelineId |
string | Optional, on crmOpportunityStageChanged: only deals in this pipeline, by Pipedrive’s ID of it. Up to 64 letters, digits, _ or -. |
stageId |
string | Optional, on crmOpportunityStageChanged: only deals that stand in this stage after the change, moved into it or won or lost while in it. Pipedrive’s ID of the stage, written as pipelineId is. |
status |
string | Optional, on crmOpportunityStageChanged: only deals that have this status after the change, open, won or lost. |
outcome |
string | Optional, on quizAttemptFinished: only attempts that passed, or that failed. Any other value answers 422: Quiz trigger node "…" can only wait for an attempt that passed or failed. |
grades |
array of strings | Optional, on quizAttemptFinished: the ids of grades of the quiz’s grading scale; an attempt with any of them starts the run. Empty takes every grade. |
{ "id": "trg_weekly", "type": "trigger", "position": { "x": 80, "y": 120 }, "config": { "triggerType": "schedule", "cronExpression": "0 9 * * 1" }, "defaultNextId": "send_report"}CRM and payment triggers
Section titled “CRM and payment triggers”A CRM trigger listens to one CRM integration, named in entityId. Saving answers 422 when it names none, CRM trigger node "…" does not say which CRM integration to listen to, or one that isn’t your organization’s CRM integration. pipelineId, stageId and status left out or empty take every value; a status other than those three, or a pipelineId or stageId written any other way, answers 422 too. Doxtly doesn’t ask Pipedrive whether the pipeline or stage exists: one that doesn’t never matches.
{ "id": "trg_contract_sent", "type": "trigger", "position": { "x": 80, "y": 120 }, "config": { "triggerType": "crmOpportunityStageChanged", "entityId": "01a1c3f2-7b1e-7d4a-9c55-3e8f20a6b9d1", "pipelineId": "1", "stageId": "12", "status": "open" }, "defaultNextId": "generate_agreement"}A payment trigger with no entityId starts on the payments of every form.
These triggers hand the run the record the event is about, as it is when the event is delivered. A payment’s run doesn’t get the form’s answers. The trigger pages of the manual say what each value holds.
triggerType |
Variables |
|---|---|
crmOpportunityStageChanged |
_crm (integrationId, integrationName, provider) and _opportunity: id, title, pipelineId, pipelineName, stageId, stageName, previousStageId, previousStageName, status, previousStatus, value, currency, personId, organizationId, customFields, packageId, contactId, companyId. See A CRM deal changes stage or status. |
crmPersonSaved |
_crm, _person: id, name, firstName, lastName, email, emails, phone, phones, jobTitle, organizationId, customFields, contactId, companyId, and _personChange: event (created or updated) and changedFields. |
paymentSucceeded, paymentFailed |
_payment: id, amount, amountMinor, currency, status, provider, testMode, description, payerEmail, refundedAmount, refundedAmountMinor, paidAt, endedAt, createdAt, integrationId, integrationName, and subject with type, id, title, formId and formTitle. See the payment trigger. |
paymentRefunded |
_payment, and _refund: id, amount, amountMinor, reason (manual or late_payment), note, requestedAt, refundedAt. |
Quiz triggers
Section titled “Quiz triggers”A quiz trigger listens to the attempts at one quiz, named in entityId. Saving answers 422 when it names none: Quiz trigger node "…" does not say which quiz it listens to, and when it names a survey: Quiz trigger node "…" listens to a survey. Choose a quiz, or use a survey trigger.
The run gets each question’s answer at the top of its data, by the question’s data key, with the quiz link’s parameters and the quiz’s metadata. Besides them:
triggerType |
Variables |
|---|---|
quizAttemptStarted |
_quiz: id and title, and _attempt: id, number, startedAt, language. |
quizAttemptFinished |
_quiz, _attempt with also status, finishedAt, endedBy (submitted, time_up or focus_lost), timedOut, durationSeconds, focusLosses, score, maxScore, percent, passed, passPercent, and _results, one entry per question: questionId, number, position, key, label, answer, verdict, correct, points, maxPoints, timeSeconds, hiddenSeconds, visits, returns, answerChanges. See the quiz trigger. |
quizAttemptNeedsGrading |
As quizAttemptFinished, with the score the rest earned so far and the waiting answers’ verdict pending. |
quizResultsReleased |
As quizAttemptFinished, and _attempt.resultUrl, the person’s result page, valid for 30 days. |
quizClosed |
No answers, _attempt or _results. _quiz, and _closure: reason (date or limit), closedAt, attempts, finished. |
quizAttemptRegraded |
As quizAttemptFinished, the new outcome included, and _attempt.previous: score, percent, passed, grade, the outcome before the change. |
quizRecipientDidNotRespond |
No answers, _attempt or _results. _quiz, and _person: kind (list or contact), name, email, group, invitedAt, openedAt, startedAt, remindersSent, deadline; for a contact also _contact and _company, as for a personal link. See A quiz recipient does not respond. |
Survey triggers
Section titled “Survey triggers”A survey trigger listens to the responses to one survey, named in entityId. Saving answers 422 when it names none: Survey trigger node "…" does not say which survey it listens to, and when it names a quiz: Survey trigger node "…" listens to a quiz. Choose a survey, or use a quiz trigger.
Once a response is submitted, the run gets each question’s answer at the top of its data, by the question’s data key, with the survey link’s parameters and the survey’s metadata. Besides them:
triggerType |
Variables |
|---|---|
surveyResponseStarted |
_survey: id and title, and _response: id, number, startedAt, language, personName, personEmail, personGroup, sequence, sheetNumber. |
surveyResponseSubmitted |
_survey, _response with also submittedAt and durationSeconds, and _answers, one entry per question: questionId, number, position, key, label, answer, otherText. The response sheet is the trigger’s file answerSheet (the handle trg_feedback:answerSheet for a trigger of that id), except for an anonymous survey. See the survey trigger. |
surveyRecipientDidNotRespond |
No answers, _response or _answers. _survey, and _person as for quizRecipientDidNotRespond; for a contact also _contact and _company. |
surveyClosed |
_survey, and _closure: reason (date or limit), closedAt, responses, submitted. |
surveyQuotaFull |
No answers, _response or _answers. _survey, and _quota: id, label, limit, filledAt. |
For an anonymous survey personName, personEmail and personGroup are always empty, and a run never gets _contact, _company or link parameters from a response.
Control nodes
Section titled “Control nodes”Condition
Section titled “Condition”"type": "condition". Splits the run in two. See Condition.
| Setting | Type | Required | Meaning |
|---|---|---|---|
expression |
string | Yes | An expression that must parse, or saving answers 422: The expression of condition node "…" cannot be evaluated: …. It uses bare paths, without braces: amount > 1000. Expressions and functions lists what it can do. |
A name the run doesn’t have reads as null and never fails the step: amount > 1000 is then false.
Switch
Section titled “Switch”"type": "switch". Sends the run down the first case whose value equals the expression’s. See Switch.
| Setting | Type | Required | Meaning |
|---|---|---|---|
expression |
string | Yes | The expression whose value is compared. It must parse, as a condition’s must. |
cases |
array | Yes | At least one case, tried in order. |
cases[].id |
string | Yes | Unique in the node. A letter, then up to 63 letters, digits, - or _. |
cases[].value |
string | Yes | The value to compare. A number or a boolean is saved as text. Must not be blank or repeat an earlier case. |
cases[].label |
string | No | A name for the path. |
ignoreCase |
boolean | No | Compare ignoring letter case. Default false. |
Every case must lead somewhere through caseNextIds. defaultNextId may stay null: a value no case expects then ends the run with the outcome no_case_matched.
A name the run doesn’t have, or anything inside it such as address.city, reads as empty. The run then takes the default path and doesn’t fail.
{ "id": "route_country", "type": "switch", "position": { "x": 360, "y": 120 }, "config": { "expression": "client.country", "cases": [ { "id": "case_pl", "value": "PL", "label": "Poland" }, { "id": "case_de", "value": "DE", "label": "Germany" } ], "ignoreCase": true }, "caseNextIds": { "case_pl": "send_pl", "case_de": "send_de" }, "defaultNextId": "send_other"}Data transformation
Section titled “Data transformation”"type": "transformation". Reshapes the run’s data with a short piece of JavaScript. What the code returns replaces the run’s variables, so start an object with ...data to keep the rest, or is stored whole under outputKey. See Data transformation.
| Setting | Type | Required | Meaning |
|---|---|---|---|
definition |
string | Yes | The code: one expression, without return and without a semicolon at the end. Must not be blank. |
output |
string | No | replace (the default) makes the result the run’s variables. key stores it under outputKey and leaves the rest. |
outputKey |
string | With key |
The variable the result is stored in, such as summary. A dot path outside the read-only branches, unique among the workflow’s output keys. |
A step has "type": "action" and an actionType.
actionType |
Step |
|---|---|
send_email |
Send email |
send_sms, send_whatsapp |
Send SMS or WhatsApp |
send_chat_message |
Send to a messenger |
generate_document |
Generate document |
create_documents |
Create documents |
webhook |
Webhook |
storage_upload |
Upload to the cloud |
storage_download |
Download from the cloud |
spreadsheet_read |
Read from a sheet |
spreadsheet_write |
Write to a sheet |
ai_agent |
AI agent |
save_contact |
Save contact |
delete_contact |
Delete contact |
update_contact |
Update contact |
find_contract |
Find a contract |
quiz_send |
Send a quiz |
survey_send |
Send a survey |
quiz_summary |
Quiz summary |
quiz_grade |
Grade quiz attempt |
crm_sync_contact |
Sync a contact with the CRM |
crm_update_opportunity |
Update a deal |
crm_attach_file |
Attach files in the CRM |
crm_add_note |
Add a note in the CRM |
The older kinds upload_google_drive and upload_onedrive are still accepted, and are saved as storage_upload with the matching storageType. Use storage_upload in anything new.
Picking files
Section titled “Picking files”Steps that work with files pick them with an object of two keys:
{ "all": false, "handles": ["trg_onboarding:id_scan", "generate_nda"] }| Key | Type | Meaning |
|---|---|---|
all |
boolean | true picks every file the run holds at that step. If you leave it out, it is true only when handles is empty. |
handles |
array of strings | The files to pick, when all is false. |
A handle is a node id, optionally followed by a path in the data:
| Handle | Picks |
|---|---|
generate_nda |
The file a step produced |
trg_onboarding |
All files the trigger brought |
trg_onboarding:id_scan |
The file of one form field |
trg_onboarding:attachments[].file |
Every file of a repeating group |
trg_onboarding:attachments[2].file |
One file of a repeating group |
Send email
Section titled “Send email”send_email. See Send email.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
emailTemplateId |
string | Yes | The email template. | |
recipientExpression |
string | Yes | Who receives it: one address, written out or from a variable such as {{ email }}. |
|
attachments |
files | No | All files | What to attach. |
integrationId |
string or null | No | null |
The email integration to send through. null uses your only active one, or else your default. |
replyToExpression |
string or null | No | null |
The reply-to address. |
ccExpression |
string or null | No | null |
The copy recipients, separated by commas. |
language |
object or null | No | null |
Which language version of the template is sent: {"mode": "organization"}, {"mode": "fixed", "code": "pl"} or {"mode": "expression", "expression": "{{ lang }}", "fallback": "en"}, the language a variable names when the step runs or the fallback when it names none Doxtly writes. null means your organization’s language. Any other value is refused. |
A variable the run doesn’t have fails the step in any of the three address settings, before anything is sent. One that exists and is empty is fine in replyToExpression and ccExpression: nobody is copied in.
Send SMS or WhatsApp
Section titled “Send SMS or WhatsApp”send_sms and send_whatsapp take the same settings. See Send SMS and Send WhatsApp.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
recipientExpression |
string | Yes | The phone number. A number written out must be in the international format, such as +48600100200. A variable is checked when the step runs. |
|
message |
string | Without a template | The text written here. | |
messageSource |
string | No | written |
written sends message; template sends the template textTemplateId. |
textTemplateId |
string or null | With template |
null |
One of your SMS and WhatsApp templates. Kept only with messageSource template. |
language |
object or null | No | null |
With a template, which language version is sent: {"mode": "organization"}, {"mode": "fixed", "code": "pl"} or {"mode": "expression", "expression": "{{ lang }}", "fallback": "en"}. null means your organization’s language. Any other value is refused. |
integrationId |
string or null | No | null |
The integration. null uses your organization’s default for that channel. |
Send to a messenger
Section titled “Send to a messenger”send_chat_message. Posts to a Slack or Microsoft Teams channel, or to one person. See Send to a messenger.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
integrationId |
string | Yes | One of your organization’s Slack or Microsoft Teams integrations. | |
target |
string | No | channel |
channel or person. Any other value is refused. |
channelId |
string | With channel |
The channel’s ID in the messenger: on Slack such as C0123ABCD, on Teams the team’s ID and the channel’s, joined by /. |
|
channelName |
string | No | The ID | The name the designer and the run’s page show, such as #sales. |
channelKind |
string | No | channel |
channel, or private_channel for a private one. Any other value is refused. |
recipientExpression |
string | With person |
The person’s email address, written out or from a variable. One written out must be a valid address; one from a variable is checked when the step runs. | |
message |
string | Without a template | The text written here. | |
messageSource, textTemplateId, language |
A text message template in place of message, as for SMS. |
Saving answers 422 for a step with no messenger integration of your organization, no channel or address for its target, or no text. Doxtly checks the channel only when the step runs: a channel that doesn’t exist, or a private one the app wasn’t invited to, fails the run. The step keeps only the keys of its target, so a step to a person comes back without the channel’s keys, and one to a channel without recipientExpression. The easiest way to get a channel’s ID is to choose the channel in the designer and read the workflow.
{ "id": "tell_sales", "type": "action", "actionType": "send_chat_message", "position": { "x": 600, "y": 120 }, "config": { "integrationId": "01a1c3f0-5d2a-7b8e-8f41-2c9d7e6a1b30", "target": "channel", "channelId": "C0123ABCD", "channelName": "#sales", "channelKind": "channel", "message": "{{ _package.title }} ({{ _package.number }}) is signed by everyone." }, "defaultNextId": null}Generate document
Section titled “Generate document”generate_document. See Generate document.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
templateId |
string | Yes | The template to fill. A PDF template with fields people fill in or sign fails the step: use it in Create documents. | |
filename |
string | Yes | The file’s name. .pdf is added if it isn’t there, and a name that comes out empty on a run becomes document.pdf. |
|
isPersist |
boolean | No | false |
Keep the file in the app after the run. |
isPasswordEnabled |
boolean | No | false |
Protect the PDF with a password. |
password |
string or null | With isPasswordEnabled |
null |
The password. Must not be blank when protection is on. |
The password is stored encrypted, and anyone who may read the workflow gets it back in GET responses.
Create documents
Section titled “Create documents”create_documents. Creates a signing package. Doxtly asks each party that has a delivery to sign when their turn begins, by that channel and message. A party without one is asked by nobody: send the link yourself, for example with a Send email step after this one that uses {{ _recipients.CLIENT.signingUrl }}. Viewers get their link by email. See Create documents.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
packageTypeId |
string | No | The document type the package is filed under. Left out, the organization’s General type. Its rules can fix the deadline, the reminders, the seal and the parties’ signing settings. | |
title |
string or null | With 2 or more documents | null |
The package’s title. With one document, that document’s title is used. |
description |
string or null | No | null |
The package’s description. |
documents |
array | Yes, except for a change of a contract | At least one document. | |
recipients |
array | Yes, except for a change of a contract | At least one party. | |
approvers |
array | No | [] |
People who approve the package before the parties of later steps are asked. |
viewers |
array | No | [] |
People who may read the package and sign nothing: see Approvers and viewers. |
visibilityMode |
string | No | all_documents |
all_documents or own_documents_only. |
signatureLevel |
string | No | PADES_B |
PADES_B, PADES_T, PADES_LT or PADES_LTA. Any other value is refused. |
sealKind |
string | No | standard |
standard, Doxtly’s own advanced electronic seal, or qualified, a qualified electronic seal, where one is available (Doxtly’s cloud offers none). The seal put on the documents once every party has signed. |
signingAuthMethod |
string or null | No | null |
An older setting for every party at once. A party whose signingPolicy names no authMethod takes it, and it is not stored. Set each party’s own instead. |
expirationDays |
integer or null | No | null |
Days until the package expires. Zero or less counts as null. |
reminders |
array | No | [] |
Up to five reminders for those still to act. |
responsiblePerson |
string or null | No | null |
Who answers for the packages: a user’s id, or an expression that gives an id or an email address. Told of refusals, non-approval, completion, expiry and undelivered requests, named as the sender of the emails, and replies go to them. |
standardMessages |
boolean | No | true |
Whether Doxtly sends its standard messages for these packages; turn off when the workflow writes its own. |
sendSignedCopies |
boolean or null | No | null |
Whether each party’s sealed PDFs go with the completion message. null takes what the package’s document type presets when the step runs. |
allowRecipientDownload |
boolean | No | true |
Parties may download a copy of a document as it stands, marked as not signed. |
collectLocation |
boolean | No | false |
Ask signers for their location. |
inlineDelivery |
boolean | No | false |
Hand the person who submitted straight to the signing page. Works only with a formSubmission or interactiveDocumentSubmission trigger, and on one step of the workflow at most. |
mainRecipientIndicator |
string or null | With inlineDelivery |
null |
Which party that person is, written as in recipients. That party needs an email. |
contractTerm |
object or null | No | null |
For a document type that tracks contracts: the term of the contract the step makes. null: in force from the signing, for an indefinite period. |
annex |
object or null | No | null |
Makes the package a change of a contract instead. |
Contract term and changes
Section titled “Contract term and changes”contractTerm takes startsOn and endsOn, each an expression that gives a day, such as {{ start_date }} (2027-12-31, 31.12.2027 or a date and time); empty, from the signing and for an indefinite period. renewal and notice are periods {amount, unit}, 1 to 999 days, weeks, months or years, and noticeEndsAtMonthEnd is a boolean, as in Change a contract’s term. A type that tracks no contracts ignores it.
annex makes the package a change of a signed contract, as Create an annex does:
| Setting | Type | Required | Meaning |
|---|---|---|---|
contractId |
string | Yes | An expression that gives the contract’s id: {{ _package.id }} under a contract’s trigger, or the id a Find a contract step stored, such as {{ contract.id }}. |
kind |
string | No | amends_terms (the default), extends, ends_by_agreement, ends_by_notice or related. |
effectiveOn |
string | No | For amends_terms: an expression giving the day the new terms apply. |
newEndsOn |
string | With extends, unless indefinite |
An expression giving the new last day. |
indefinite |
boolean | No | With extends: the contract runs on for an indefinite period. |
lastDay |
string | With ends_by_agreement or ends_by_notice |
An expression giving the contract’s last day. |
Saving answers 422 when annex names no contract, Create documents node "…" makes an annex but names no contract, or lacks the day its kind needs, Create documents node "…" makes an annex that needs a date. When the run comes, a contract that isn’t signed or isn’t yours fails the step, and so does a day that renders as no date: The step gave "1 January 2027" for "Changes apply from", which is not a date. Write it as 2027-12-31 or 31.12.2027. A change takes no number from its document type’s numbering: an annex is numbered within its contract.
A change made of the type’s template
Section titled “A change made of the type’s template”A step with annex and no documents makes the change of its document type’s template for that kind of change, the one chosen under Documents for changes, filled with what the contract was filled with where the run gives no value, as Create an annex does. Its parties are the contract’s, and the step’s recipients aren’t needed: the contract’s parties that the template names sign it, asked as for the contract (a party who had an access password gets your organization’s default verification instead), and the others with an email address get it to read, as viewers beside the step’s own. When the type has no such template, saving answers 422, and a run fails the step the same way when the template was removed since: The document type "Client contracts" has no template for this change (Annex extending the contract). Add the documents to the step, or choose the template under Documents for changes in the document type. The parties of a contract signed outside Doxtly have no roles, and a run can’t choose them, so such a step fails for that contract: "Advisory services agreement – Fenwick Analytics Ltd" was signed outside Doxtly, so its parties have no roles: create this change in the app.
Documents of a package
Section titled “Documents of a package”| Key | Type | Required | Default | Meaning |
|---|---|---|---|---|
title |
string | Yes | The name signers see. | |
description |
string or null | No | null |
A line about the document. |
segments |
array | Yes | 1 to 20 fragments, joined into one PDF in this order. | |
appendCertificate |
boolean | No | true |
Add the completion certificate to the sealed PDF. |
multilingualAuditTrail |
boolean | No | false |
Add a full certificate in each party’s language after the one in your organization’s language. Needs appendCertificate. |
initialsOnEveryPage |
array of strings | No | [] |
The indicators of the parties who initial every page of the finished document. |
A step saved before 3.2.0 names one file or one PDF templateId instead of segments. It is read as that one fragment and saved as a fragment the next time the workflow is saved.
Fragments of a document
Section titled “Fragments of a document”A fragment is a file of the run or a template:
{"kind": "file", "source": {"workflowFile": {"all": false, "handles": ["generate_nda"]}}, "password": "..."}: exactly one file, by one handle;allisn’t allowed.passwordis optional and opens an encrypted file; it may hold variables, and the joined document has no password.{"kind": "template", "templateId": "...", "bindings": [...]}: a template rendered on the run’s data.bindingsis optional and works as in a package: a value the run doesn’t give is taken from the contact whose email address the party has.
A file that was already signed can’t be joined to other fragments. Each fragment may carry an id; one is generated when it is left out.
Parties of a package
Section titled “Parties of a package”| Key | Type | Required | Meaning |
|---|---|---|---|
indicator |
string | Yes | The party’s label, such as CLIENT. Unique in the step, ignoring letter case. Once variables are filled in: capitals, digits and _. |
fullName |
string | Yes | The party’s name. |
email |
string or null | No | Their address, needed when the way of signing, the request’s channel or inlineDelivery calls for one. |
phone |
string or null | No | Their number, needed for a code or a request by SMS or WhatsApp. |
userId |
string or null | No | A person in your organization. They must be able to read documents of this type. |
departmentId |
string or null | No | Anybody of a department instead of a named person. They sign in the application with their own account, so such a party has no verification, language, delivery or signing on paper. |
signingOrder |
integer | No | The party’s step, from 1, the default. Parties with the same number sign at the same time. |
language |
string or null | No | The party’s language, such as pl. Left out, the organization’s. |
delivery |
object or null | No | How Doxtly asks the party to sign: {channel, templateId, language}, with channel email, sms, whatsapp or doxtly_email, templateId a message of your own written for a signature request (null for the default message) and language null for the party’s. Left out or null, nobody asks the party and you deliver the link yourself. |
signingPolicy |
object | No | The party’s signing settings, each optional: authMethod (none, email_otp, sms_otp, whatsapp_otp, access_code or id_document), accessCode (with access_code; may hold variables), jobTitle ({mode, value}, as in a package), assurance (simple, advanced or qualified), qualifiedRoutes (provider, local_card, upload) and signatureSources (drawn, typed, stored, uploaded; uploaded only for a party with userId or departmentId). What is left out is what the document type and the organization set. |
allowPaperSigning |
boolean | No | Let the party print and sign. |
signsInPerson |
boolean | No | The party signs in person on your device, with no link, message or reminder. |
attachmentRequests |
array | No | Files the party must add, each as in a package. |
returnUrl |
string or null | No | Where to send the party after signing, from your list of allowed sites. May hold variables. |
isMain |
boolean | No | An older way to name the main party. It is read, moved into mainRecipientIndicator and not stored. Only one party may have it, and it must agree with mainRecipientIndicator if you send both. |
Parties who sign with a certificate of their own (assurance advanced or qualified) come after every party with a simple signature, each in a step of their own. Otherwise saving is refused with the indicator of the first party out of place.
Approvers and viewers
Section titled “Approvers and viewers”An approver has the keys of a party that aren’t about signing: indicator (such as APPROVER_1), fullName, email, phone, userId, departmentId, signingOrder, language, delivery (the approval request) and, in signingPolicy, authMethod and accessCode, which are checked before they see the documents. An approver must come before a step with a party that still signs, or the run stops.
A viewer has fullName and email, both required, an optional userId under the same condition as a party’s, and an optional language of their message: {"mode": "recipient"} (the viewer’s own, or the one their page was last in), {"mode": "organization"}, {"mode": "fixed", "code": "pl"}, or {"mode": "expression", "expression": "{{ lang }}", "fallback": "en"} (the language a variable names when the step runs, or the fallback when it names none Doxtly writes). An address written out must be valid and appear once.
Reminders of a package
Section titled “Reminders of a package”Each reminder is {anchor, offsetDays, repeatEveryDays, maxRepeats, delivery}, as in Change the reminders: anchor after_sent or before_expiry, offsetDays 1 to 90, repeatEveryDays 1 to 90 or null, maxRepeats 1 to 10 or null, and delivery {channel, templateId, language} or null. A reminder before_expiry needs expirationDays. A document type that locks its deadline or reminders refuses others when the workflow is saved.
Webhook
Section titled “Webhook”webhook. Calls another system. See Webhook. To have other systems call Doxtly and start a workflow, see Incoming webhooks.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
url |
string | Yes | An http:// or https:// address, or one starting with a variable. |
|
method |
string | No | POST |
GET, POST, PUT, PATCH or DELETE. Any other value is refused. |
headers |
array | No | [] |
The headers to send. |
headers[].name |
string | Yes | A valid header name with at least one letter. Each name once. Host, Content-Length, Transfer-Encoding, Connection and Doxtly-Workflow-Chain can’t be set, nor webhook-id, webhook-timestamp and webhook-signature while signing is on. |
|
headers[].value |
string | With secure |
Empty | The value. |
headers[].secure |
boolean | No | false |
Keep the value secret. |
body.source |
string | No | content |
content for text written here, field to send a variable. |
body.format |
string | No | json |
json or text. A body from a variable is always JSON. |
body.content |
string | No | Empty | The body. With json, it must be valid JSON. |
body.field |
string | With source: "field" |
Empty | The variable to send, such as order.details. |
response.mode |
string | No | ignore |
ignore, or store to keep the response body. |
response.field |
string | With mode: "store" |
Empty | The variable to store it in. |
signing.enabled |
boolean | No | false |
Sign requests the Standard Webhooks way. |
signing.value |
string | With enabled |
The signing key: base64 of 24 to 64 bytes, usually written with whsec_ in front. See secret values. |
GET and DELETE requests send no body, whatever body holds, and what it holds isn’t checked.
Upload to the cloud
Section titled “Upload to the cloud”storage_upload. See Upload to the cloud.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
storageType |
string or null | Yes, or integrationId |
null |
google_drive, one_drive, sharepoint, dropbox or box. Uses your only or default storage of that kind. |
integrationId |
string or null | Yes, or storageType |
null |
One named storage. |
targetDirectory |
string | No | Root folder | The folder to upload into. |
files |
files | No | All files | What to upload. {"all": false, "handles": []} is refused. |
fileName |
string | No | Each file’s own | A name, with no folder in it. |
conflict |
string | No | keep_both |
keep_both, overwrite, skip or fail. |
whenNoFiles |
string | No | fail |
fail or skip. |
convertToNative |
boolean | No | false |
Google Drive only: save office files as Google’s own documents. |
legacyPathRules |
boolean | No | false |
Set on steps carried over from upload_google_drive and upload_onedrive: a slash in a variable creates a folder. Leave it out in new steps. |
Download from the cloud
Section titled “Download from the cloud”storage_download. Its node id is also the handle of the file it brings. See Download from the cloud.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
storageType, integrationId |
One of them | null |
As for upload. | |
path |
string | Yes | The file, from the storage’s root folder. | |
whenMissing |
string | No | fail |
fail, continue or branch. |
exportFormat |
string | No | auto |
For Google documents: auto, pdf, xlsx, csv, docx or ods. |
outputKey |
string | No | Empty | A variable for the file’s details. |
Read from a sheet
Section titled “Read from a sheet”spreadsheet_read. See Read from a sheet.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
sourceKind |
string | No | workflow_file |
workflow_file or storage. |
file |
files | With workflow_file |
None | Exactly one file, by one handle that names no list, and not a whole trigger that brings several files. It must be XLSX, XLS, ODS or delimited text. |
storageType, integrationId, path |
With storage |
As for download. | ||
sheet |
string | No | First visible sheet | The sheet’s name. |
headerRow |
integer | No | 1 | The row with the headers. 0 if the sheet has none. |
filters |
array | No | [] |
The conditions a row must meet. |
filtersMatch |
string | No | all |
all or any. |
mode |
string | No | one |
one, all or count. |
multipleMatches |
string | No | first |
With one: first, last or fail. |
limit |
integer | No | 1000 | With all: at most this many rows, from 1 to 5000. A number outside that range is brought to the nearest end of it. |
whenNotFound |
string | No | branch |
branch, continue or fail. |
columns |
array | No | All columns | The columns to output. |
columns[].column |
string | Yes | A header’s text or a column letter. | |
columns[].key |
string | No | The column’s own | The name in the output: a letter or _, then letters, digits or _. Unique. |
columns[].type |
string | No | auto |
auto, text, number, integer, date, datetime or boolean. |
columns[].zeroPadTo |
integer or null | No | null |
Pad the text with zeros to this length. |
columns[].displayFormat |
string | No | Empty | How to format the value: a date or number pattern, or decimals:2 for a fixed number of decimals. |
outputKey |
string | With all or count |
Empty | The variable for the result. |
schemaSnapshot |
object or null | No | null |
The sheet’s structure as the designer saw it. It helps the designer offer variables, and you can leave it out. |
Sheet conditions
Section titled “Sheet conditions”| Key | Type | Default | Meaning |
|---|---|---|---|
column |
string | A header’s text or a column letter. Required. | |
operator |
string | equals |
equals, not_equals, contains, not_contains, starts_with, ends_with, is_empty, is_not_empty, gt, gte, lt or lte. |
value |
string | What to compare with. Required, except for is_empty and is_not_empty. |
|
compareAs |
string | auto |
auto, text, text_case_sensitive, digits, number or date. |
Write to a sheet
Section titled “Write to a sheet”spreadsheet_write. See Write to a sheet.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
targetKind |
string | No | workflow_file |
workflow_file, storage or new_file. |
file |
files | With workflow_file |
None | Exactly one XLSX, XLS, ODS or CSV file, by one handle that names no list. |
storageType, integrationId, path |
With storage |
As for download. | ||
fileName |
string | With new_file |
Empty | The new file’s name. |
format |
string | No | xlsx |
The new file’s format: xlsx or csv. |
sheet |
string | No | First visible sheet | The sheet’s name. |
headerRow |
integer | No | 1 | The row with the headers. A new file always has them in row 1. |
lookup |
string | No | none |
none, key or conditions. |
whenFound |
string | No | update |
With key: update, continue, branch or fail. |
whenNotFound |
string | No | add |
add, continue, branch or fail. With conditions, add is refused, so that lookup needs one of the others sent. |
columns |
array | Yes | At least one column. | |
columns[].column |
string | Yes | A header’s text or a column letter. | |
columns[].value |
string | No | Empty | What to write. A key column needs one. |
columns[].type |
string | No | auto |
As for reading. |
columns[].key |
boolean | With lookup: "key" |
false |
This column identifies the row. At least one must. |
columns[].operation |
string | No | set |
set, increment or decrement. |
where |
array | With conditions |
[] |
The conditions choosing the row. |
whereMatch |
string | No | all |
all or any. |
multipleMatches |
string | No | first |
When found rows are updated: first, all or fail. |
rowsSource |
string | No | single |
single, or list for one row per item. |
listPath |
string | With list |
Empty | The variable holding the list. |
skipEmptyValues |
boolean | No | false |
An empty value leaves the cell alone. |
createIfMissing |
boolean | No | true |
Create a missing cloud file. |
createAs |
string | No | auto |
What a missing cloud file becomes: auto makes a native sheet where the storage has them, and file always makes a file of the type in the path. |
addMissingColumns |
boolean | No | true |
Add columns the header lacks. |
outputKey |
string | No | Empty | A variable for the result. |
schemaSnapshot |
object or null | No | null |
As for reading. |
A key lookup that neither updates a found row nor adds a missing one would never write, so it is refused. So is a lookup in a new file that doesn’t add the rows it misses. With lookup: "none", every row is added and whenFound and whenNotFound are ignored.
AI agent
Section titled “AI agent”ai_agent. Runs one of your AI agents. See AI agent.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
agentId |
string | Yes | An active agent of your organization. | |
prompt |
string | One of prompt, inputs or files |
Empty | The instruction. |
inputs |
array | [] |
Named values, each name and value. A name is a letter or _, then letters, digits or _, unique in the step. |
|
files |
files | None | Files for the agent, if its model reads them. | |
outputFormat |
string | No | text |
text, json or image. The agent and its model must allow it. |
outputKey |
string | With text or json |
Empty | The variable for the answer. |
jsonSchema |
string | With json |
Empty | The schema the answer must follow. |
fileName |
string | With image |
Empty | The image’s file name. |
whenMissing |
string | No | fail |
fail, continue or branch. |
Save contact
Section titled “Save contact”save_contact. See Save contact. Every text setting takes variables.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
email |
string | Yes | The address that identifies the contact. | |
mode |
string | No | create_or_update |
create_or_update, create_only or update_only. |
firstName, lastName |
string | To create | Empty | Empty leaves an existing contact’s value. |
phone, jobTitle, companyName, language |
string | No | Empty | Likewise. language is ar, de, en, es, fr, hi, it, ja, pl, pt, th, tr, uk or zh. |
contactType |
string | No | Empty | Empty for no change, none for no type, or a type’s id. |
photo |
object | No | Picks a file: a PNG, JPEG or WebP of up to 2 MB. | |
note |
string | No | Empty | Added to the contact’s notes when non-empty. |
outputKey |
string | No | Empty | A variable for the result. |
Delete contact
Section titled “Delete contact”delete_contact. See Delete contact. The one setting, email, is required. An address without a contact is a success.
Find a contract
Section titled “Find a contract”find_contract. Finds one of your organization’s contracts and goes on through trueNextId when it found one, falseNextId when it didn’t. See Find a contract. It looks for everything it is set to at once; what it is set to look for and what renders empty finds nothing, never every contract.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
packageTypeId |
string | No | Empty | A document type that tracks contracts, by id. |
number |
string | No | Empty | The contract’s number. Takes variables. |
contact |
string | No | Empty | A party: a contact’s id, or an email address. Takes variables. |
companyId |
string | No | Empty | A company one of whose contacts is a party, by id. |
titleContains |
string | No | Empty | A part of the contract’s title. Takes variables. |
states |
array | No | ["in_force", "ending_soon"] |
The contract states to look among. At least one. |
pick |
string | No | ends_latest |
Of several found: ends_latest, ends_earliest or newest. A contract for an indefinite period ends latest of all. |
outputKey |
string | No | contract |
The variable the result goes under. |
The result has id, title, number, state, startsOn, endsOn, noticeDeadline, renews, typeId, parties (the people who signed it, approvers left out, each indicator, fullName, email, contactId; indicator is null for a contract signed outside Doxtly) and matches, how many contracts matched. When none did, the same keys are there, empty. Saving answers 422 for a type that is gone or tracks no contracts, a company that is gone, or no states.
{ "id": "find_retainer", "type": "action", "actionType": "find_contract", "position": { "x": 360, "y": 120 }, "config": { "packageTypeId": "01a1d5cd-bb88-73bd-abc7-2d7c38f0a0e7", "contact": "{{ email }}", "states": ["in_force", "ending_soon"], "pick": "ends_latest", "outputKey": "contract" }, "trueNextId": "create_annex", "falseNextId": "notify_sales"}Update contact
Section titled “Update contact”update_contact. See Update contact. It changes one contact found by its ID, so it can change the address too. Every setting takes variables, and a value that is empty, or renders empty, leaves the contact’s value as it is.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
contact |
string | Yes | {{ _contact.id }} |
The contact’s ID. The default is the contact a personal link was sent to. |
firstName, lastName, email, phone, jobTitle, companyName, language |
string | No | Empty | The new values of the built-in fields. language is one of the codes of save_contact. |
customFields |
object | No | {} |
A custom field’s key mapped to its new value, such as { "client_number": "{{ client_number }}" }. Only your organization’s fields of contacts, and never a sensitive one. |
A contact left empty, or a key that is no field of contacts or a sensitive one, answers 422 naming the node.
Send a quiz
Section titled “Send a quiz”quiz_send. See Send a quiz. It sends a quiz to a contact’s personal link or to an address added to the quiz’s people, or only creates the link. contact, email and name take variables.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
quizId |
string | Yes | The quiz’s id. It must be your organization’s, and a quiz, not a survey. | |
recipient |
string | No | contact |
contact sends the contact their personal link; list adds email to the quiz’s people and sends their key. |
contact |
string | With contact |
{{ _contact.id }} |
The contact’s ID. The default is the run’s contact. |
email, name |
string | email with list |
Empty | The address, and the name it is listed under. |
onlyCreateLink |
boolean | No | false |
true creates the link and sends nothing. |
delivery |
object | No | E-mail, default message | channel (email, sms or whatsapp; an address is always sent an e-mail), templateId (one of your templates for quiz links, null for the default message) and language (null for the contact’s language, or the organization’s for an address). |
expiresInDays |
integer | No | 30 |
For a contact: how long the link works, from 1 to 365 days. |
outputKey |
string | No | invitation |
The variable the result goes under. |
The result has link, entryId (the id of the personal link or of the person on the list) and kind (contact or list). Saving answers 422 for no quiz, a quiz that is gone, or no contact or email.
{ "id": "send_quiz", "type": "action", "actionType": "quiz_send", "position": { "x": 360, "y": 120 }, "config": { "quizId": "01a1d5cd-bb88-73bd-abc7-2d7c38f0a0e7", "recipient": "contact", "contact": "{{ _contact.id }}", "email": "", "name": "", "onlyCreateLink": false, "delivery": { "channel": "email", "templateId": null, "language": null }, "expiresInDays": 30, "outputKey": "invitation" }, "defaultNextId": null}Send a survey
Section titled “Send a survey”survey_send. See Send a survey. It sends a survey as quiz_send sends a quiz, with the same settings, defaults and result: quizId is the survey’s id, and the address of list joins the survey’s people. A quiz’s id is refused here. Saving answers 422 for no survey (Node "…" sends no survey. Open the step and choose one.), a survey that is gone or is a quiz, or no contact or email.
{ "id": "send_survey", "type": "action", "actionType": "survey_send", "position": { "x": 360, "y": 120 }, "config": { "quizId": "01a1d5cd-bb88-73bd-abc7-2d7c38f0a0e7", "recipient": "contact", "contact": "{{ _contact.id }}", "email": "", "name": "", "onlyCreateLink": false, "delivery": { "channel": "email", "templateId": null, "language": null }, "expiresInDays": 30, "outputKey": "invitation" }, "defaultNextId": null}Quiz summary
Section titled “Quiz summary”quiz_summary. See Quiz summary. It reads a quiz’s summary, the rows of its Summary tab, by the column headings in the quiz’s language, for a spreadsheet step or a message after it.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
quizId |
string | Yes | The quiz’s id. It must be your organization’s, and a quiz, not a survey. | |
rows |
string | No | people |
people: each person once, the attempt that counts for them. attempts: every attempt, retakes as rows of their own. |
finishedWithinDays |
integer or null | No | null |
Only the attempts finished in the last so many days, today included, in your organization’s time zone; 1 to 3,660. null or 0 takes all of them. |
group |
string | No | Empty | Only the people of this group. It takes variables, such as {{ group }}. |
status |
string or null | No | null |
Only the attempts that stand so: in_progress, awaiting_grading, graded or released. null takes them all. The designer doesn’t show this setting. |
file |
string or null | No | null |
xlsx or csv also adds the same rows as a file, the one the Summary tab exports, for the steps after it to pick under the step’s id. |
outputKey |
string | No | summary |
The variable the result goes under. |
The result has rows (at most 5,000, in sheet-number order, each by the column headings), count, and stats with attempts, people, meanPercent, medianPercent and passRate. Saving answers 422 for no quiz (Node "…" reads no quiz. Open the step and choose one.), or a quiz that is gone or is a survey.
{ "id": "weekly_results", "type": "action", "actionType": "quiz_summary", "position": { "x": 360, "y": 120 }, "config": { "quizId": "01a1d5cd-bb88-73bd-abc7-2d7c38f0a0e7", "rows": "people", "finishedWithinDays": 7, "group": "", "status": null, "file": "xlsx", "outputKey": "summary" }, "defaultNextId": "write_sheet"}Grade quiz attempt
Section titled “Grade quiz attempt”quiz_grade. See Grading in a workflow. It grades an attempt’s questions with grades an earlier step made, such as your own AI agent’s answer, through the same rules as Grade an attempt. The attempt’s grading history names the workflow.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
attempt |
string | Yes | {{ _attempt.id }} |
The attempt’s ID. The default is the attempt of a quiz trigger. |
grades |
string | Yes | The grades, usually a variable such as {{ agent.answer }}: a list, an object whose grades is the list, or text holding either as JSON. Each entry has questionId, and points or rubricItemIds or both; comment (or feedback) is optional, up to 2,000 characters. |
|
mode |
string | No | final |
final: the grades stand, as an examiner’s would. suggestion: they wait for an examiner to accept or change, as the AI’s suggestions do. |
All of a run’s grades are written together, or none: when one is refused, the step fails with No grade was written: … and the attempt stays with the examiners. An attempt of another organization is never found. Saving answers 422 for no attempt (Node "…" grades no attempt. …) or no grades (Node "…" gives no grades. …).
{ "id": "grade_essays", "type": "action", "actionType": "quiz_grade", "position": { "x": 600, "y": 120 }, "config": { "attempt": "{{ _attempt.id }}", "grades": "{{ grader.answer }}", "mode": "suggestion" }, "defaultNextId": null}Sync a contact with the CRM
Section titled “Sync a contact with the CRM”crm_sync_contact. Sends a contact and its company to their person and organization in Pipedrive, or brings them into the contact. See Sync a contact with the CRM.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
integrationId |
string | Yes | One of your organization’s CRM integrations. It must keep people’s IDs in a field of contacts, its Person ID. | |
direction |
string | No | to_crm |
to_crm or from_crm. Any other value is refused. |
contact |
string | Yes | {{ _contact.id }} |
A contact’s ID or email address, written out or from a variable. Left out, it is the default, the contact a personal link was sent to. |
withOrganization |
boolean | No | true |
Sync the contact’s company with the person’s organization too. |
contactType |
string | No | Empty | With from_crm: the type a contact created from Pipedrive gets. Empty or none for no type, or a type’s id. |
outputKey |
string | No | crmContact |
The variable the result goes under. Empty stores nothing. |
The result has personId, organizationId (empty without one), contactId and created, true when the step created what it wrote to. Saving answers 422 for an integration that keeps people’s IDs in no field, CRM node "…" synchronizes contacts, but the integration "…" keeps the IDs of people in no custom field. Choose the field in the integration's settings, for an empty contact, for a type your organization doesn’t have and for an outputKey that can’t be written.
A record in the CRM
Section titled “A record in the CRM”The other three CRM steps work on one record in Pipedrive, named by three keys:
| Key | Type | Meaning |
|---|---|---|
integrationId |
string | One of your organization’s CRM integrations. Required. |
object |
string | person, organization or opportunity, a deal. Required. Any other value is refused, except in crm_update_opportunity, which always takes opportunity, whatever is sent. |
record |
string | The record’s ID in Pipedrive, written out or from a variable. Required. Doxtly keeps these IDs in custom fields, so a run usually has them: {{ _package.fields.pipedriveDealId }} on a package’s trigger, {{ _opportunity.id }} on the CRM’s, {{ crmContact.personId }} after a sync. A variable that gives nothing fails the step. |
Saving answers 422 naming the node when one of them is missing: CRM node "…" has no CRM integration chosen, … does not say what kind of record to work on: a person, an organization or a deal or … does not say which record to work on. An integration of another organization counts as none.
Update a deal
Section titled “Update a deal”crm_update_opportunity. Changes a deal that exists; it never creates one, and a deal Pipedrive doesn’t have fails the step. See Update a deal.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
integrationId, record |
string | Yes | The deal, as in A record in the CRM. object can be left out. |
|
stageId |
string or null | No | null |
The stage to move the deal to, by Pipedrive’s ID. The deal moves into that stage’s pipeline. |
pipelineId |
string or null | No | null |
The pipeline the stage was chosen from, for the designer. It moves nothing. |
status |
string or null | No | null |
open, won or lost. null leaves the status. Any other value is refused. |
value |
string | No | Empty | The deal’s value, a number, written out or from a variable. A comma works as the decimal mark, so 1500,50 is 1500.50. |
currency |
string | No | Empty | A three-letter code, such as EUR, in capitals or not. |
fields |
object | No | {} |
Pipedrive’s code of a deal field mapped to its value, such as { "c3d4e5f6…": "{{ _package.number }}" }. An entry with an empty value is dropped. |
A value that fills in to nothing leaves that part of the deal as it is. The step must change something: without stageId, status, value, currency or a field, saving answers 422, CRM node "…" changes nothing in the deal. Choose a stage or a status, or give a value or a field. Doxtly doesn’t ask Pipedrive about the stage or the fields when you save: one deleted there fails the run.
{ "id": "deal_won", "type": "action", "actionType": "crm_update_opportunity", "position": { "x": 600, "y": 120 }, "config": { "integrationId": "01a1c3f2-7b1e-7d4a-9c55-3e8f20a6b9d1", "object": "opportunity", "record": "{{ _package.fields.pipedriveDealId }}", "pipelineId": null, "stageId": null, "status": "won", "value": "", "currency": "", "fields": { "c3d4e5f60718293a4b5c6d7e8f90123456789012": "{{ _package.number }}" } }, "defaultNextId": "attach_signed"}Attach files in the CRM
Section titled “Attach files in the CRM”crm_attach_file. Attaches files of the run to a deal, a person or an organization. See Attach files in the CRM.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
integrationId, object, record |
string | Yes | The record, as in A record in the CRM. | |
files |
files | No | All files | What to attach. {"all": false, "handles": []} is refused: CRM node "…" attaches no file. Choose the files to attach. |
whenNoFiles |
string | No | fail |
When the run has none of the files: fail, or skip to go on. Any other value is refused. |
Add a note in the CRM
Section titled “Add a note in the CRM”crm_add_note. Writes a note on a deal, a person or an organization. See Add a note in the CRM.
| Setting | Type | Required | Default | Meaning |
|---|---|---|---|---|
integrationId, object, record |
string | Yes | The record, as in A record in the CRM. | |
message |
string | Without a template | The note. Line breaks are kept, and a value that looks like markup is shown as typed. | |
messageSource, textTemplateId, language |
A text message template in place of message, as for SMS. |
Variable names
Section titled “Variable names”Settings like outputKey, response.field, body.field and listPath take a variable path: a letter or _, then letters, digits or _, with further parts after dots, such as course.result.
A step can’t write under the names Doxtly keeps for itself: _metadata, _params, _execution, _recipients and _nodes.
Secret values
Section titled “Secret values”A secure header of a webhook step and its signing key are secrets. You send them once, and no response ever shows them again.
To set one, send value:
{ "name": "Authorization", "value": "Bearer 8f3k2m", "secure": true }{ "enabled": true, "value": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw" }The response replaces it with a reference:
{ "name": "Authorization", "secure": true, "secretRef": "<reference>" }To keep a secret, send secretRef back unchanged. To replace it, send a new value, which wins if both are present.
Two refusals protect secrets, both 422 on nodes:
- A
secretRefthis workflow doesn’t hold, for example one copied from another workflow. - A kept secret on a node that now sends to another server. Changing the path of the address is fine. Changing the scheme, host or port means you enter the value again.
The address of a step with secrets must also name its server itself, not take that part from a variable.
Steps that need more than workflow permissions
Section titled “Steps that need more than workflow permissions”A workflow runs in your organization’s name, so a step that reaches a drive, an AI agent, your contacts, your contracts, your quizzes or your surveys needs more than building workflows does, and so does a trigger that hands contacts or payments to the steps. A person’s role decides this in the app. A key holds a permission when one of its operations needs that permission.
| Step | The key also needs | Operations that give it |
|---|---|---|
storage_download, and spreadsheet_read from a drive |
View cloud files | get_cloud_files or download_cloud_file |
storage_upload, and spreadsheet_write to a drive |
View and manage cloud files | One operation above, plus upload_cloud_file or manage_cloud_files |
ai_agent |
Use AI agents | None: a key can’t add an AI agent step, or change the settings of one |
save_contact, delete_contact, update_contact, crm_sync_contact |
View and manage contacts | get_contacts or another operation reading contacts, plus create_contact, update_contact, delete_contact or another operation changing them |
A contactSaved, crmOpportunityStageChanged or crmPersonSaved trigger |
View contacts | get_contacts or another operation reading contacts |
A paymentSucceeded, paymentFailed or paymentRefunded trigger |
View payments | get_payments or read_payment |
find_contract |
View documents | get_document_packages or another operation reading documents |
quiz_send |
Manage quizzes and view contacts | update_quiz, manage_quiz_access_list, send_quiz_invitations or another operation managing quizzes, plus get_contacts or another operation reading contacts |
survey_send |
Manage surveys and view contacts | update_survey, manage_survey_access_list, send_survey_invitations or another operation managing surveys, plus get_contacts or another operation reading contacts |
quiz_summary |
View quizzes, attempts and results | get_quizzes, read_quiz, get_quiz_summary or another operation reading quizzes |
quiz_grade |
Grade attempts | read_quiz_attempt, grade_quiz_attempt, get_quiz_grading_queue or another operation grading quizzes |
Without them, the request answers 403, naming the node and what is missing. This applies when a step is added or its settings change. A key can still remove such a step, connect it differently or move it on the canvas, and it can change everything around it. A spreadsheet step working on a file of the run reaches no drive and needs nothing more. send_chat_message, crm_update_opportunity, crm_attach_file and crm_add_note need nothing beyond building workflows.
Some nodes also need a feature of your plan: every CRM step and CRM trigger needs CRM integrations, and a payment trigger needs payments. On a plan without it, adding such a node or changing its settings answers 403: The "CRM integrations" feature is not available in your current subscription plan. A CRM step saved before the plan changed fails when it runs.