n8n-nodes-formbase 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -9
- package/dist/nodes/Formbase/FormbaseTrigger.node.js +16 -10
- package/dist/nodes/Formbase/FormbaseTrigger.node.js.map +1 -1
- package/dist/nodes/Formbase/constants.d.ts +1 -0
- package/dist/nodes/Formbase/constants.js +1 -0
- package/dist/nodes/Formbase/constants.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Community nodes for [n8n](https://n8n.io) that create [formbase](https://formbas
|
|
|
6
6
|
|
|
7
7
|
- **formbase** node: create a request for a form and a recipient, with prefilled and read-only fields, context, reminders, expiry and delivery by email; get, cancel, remind, list requests; replay a request's callback.
|
|
8
8
|
- Pause a workflow until the recipient answers: **Wait for the Outcome** points the request's callback at n8n's Wait node, so the workflow resumes with the completed, expired or canceled request as its input.
|
|
9
|
-
- **formbase Trigger** node: start a workflow when a request is completed, expires or is canceled, or when a
|
|
9
|
+
- **formbase Trigger** node: start a workflow when a request is completed, expires or is canceled, or when a respondent submits a form through its public link. `data.request` carries the request ID and the caller's `externalId` and `metadata`, so the workflow that created the request can pick up where it left off.
|
|
10
10
|
- Trigger on abandoned submissions after a selected 12-hour, 1-day, 3-day, or 1-week idle window.
|
|
11
11
|
- Load forms dynamically from the workspace the credential is scoped to, across every page.
|
|
12
12
|
- Register and remove formbase webhook subscriptions with the n8n workflow lifecycle.
|
|
@@ -42,7 +42,7 @@ Add **formbase** to a workflow, select the **Request** resource and an operation
|
|
|
42
42
|
|
|
43
43
|
| Operation | formbase method | What it does |
|
|
44
44
|
| ------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
45
|
-
| **Create** | `requests.create` | Creates a request for a published form. Returns the request summary, including the
|
|
45
|
+
| **Create** | `requests.create` | Creates a request for a published form. Returns the request summary, including the request link in `url`. |
|
|
46
46
|
| **Get** | `requests.get` | Reads one request: status, outcome, recipient, `answers` and `display` once it is completed. |
|
|
47
47
|
| **Get Many** | `requests.list` | Lists the requests of a form or of the whole workspace, newest first, with status, outcome, external ID and test filters. **Return All** follows the cursor across every page; otherwise **Limit** caps it. |
|
|
48
48
|
| **Cancel** | `requests.cancel` | Cancels a pending request, with an optional reason the recipient sees. |
|
|
@@ -79,7 +79,7 @@ The Wait node cannot check the `X-formbase-Signature` header that the callback c
|
|
|
79
79
|
## Use the trigger
|
|
80
80
|
|
|
81
81
|
1. Add **formbase Trigger** to a workflow.
|
|
82
|
-
2. Select form and event: a request that is completed, expires or is canceled, or a submission that is created or abandoned. For an abandoned-submission event, select how long the response must remain unchanged.
|
|
82
|
+
2. Select form and event: a request that is completed, expires or is canceled, or a public-link submission that is created, updated or abandoned. For an abandoned-submission event, select how long the response must remain unchanged.
|
|
83
83
|
3. For a test execution, select **Listen for Test Event**, then submit the selected form.
|
|
84
84
|
4. Activate the workflow. n8n registers its production webhook with formbase and removes it when the workflow is deactivated or deleted.
|
|
85
85
|
|
|
@@ -89,7 +89,9 @@ n8n generates a separate 256-bit signing secret for each registration. Incoming
|
|
|
89
89
|
|
|
90
90
|
Abandoned-submission timing is enforced by formbase, not n8n. formbase checks incomplete responses hourly and calls the registered n8n webhook after the selected idle window, so delivery can occur up to about one hour after the threshold.
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
One channel, one event: **Public Link Submission Created** runs for public-link submissions only, and a completed request runs **Request Completed** alone, never Public Link Submission Created. A workflow that wants every answer, whichever channel produced it, uses one trigger node on each event.
|
|
93
|
+
|
|
94
|
+
**Public Link Submission Created** runs only when a respondent first submits (`submission.completed`). An edit after submit runs **Public Link Submission Updated** (`submission.updated`) instead, and needs the form to allow editing after submit. Requests never produce an update event.
|
|
93
95
|
|
|
94
96
|
## Example workflows
|
|
95
97
|
|
|
@@ -126,7 +128,7 @@ Read a value with `{{ $json.data.answers.recommend }}`; the field keys come from
|
|
|
126
128
|
|
|
127
129
|
The node passes the envelope through unchanged — it does not flatten answers into the top level of the item. Nothing is dropped, every key stays where the formbase contract puts it, and a field key can never collide with an envelope key such as `type` or `test`. Map the handful of values a workflow needs with a Set node, as the example workflow does.
|
|
128
130
|
|
|
129
|
-
A submission
|
|
131
|
+
A submission event never carries `data.request`: a submission that answered a request arrives as a `request.completed` event instead. A response saved to PDF carries `data.submission.pdfUrl`; it is `null` when no PDF is kept. `test` is `true` for a test delivery, so a workflow can branch on it.
|
|
130
132
|
|
|
131
133
|
A request event carries the request itself in `data.request`: `id`, `status`, `outcome` (`approve`, `changes` or `decline` when the form has a decision), `externalId`, `metadata`, `context`, `recipient`, `language`, `createdAt` and `completedAt`, `expiredAt` or `canceledAt` (with `cancelReason`). A `request.completed` event also carries `form`, `submission`, `answers` and `display` exactly like a submission event; an expired or canceled request has no answers.
|
|
132
134
|
|
|
@@ -163,11 +165,18 @@ Delivered events use these `type` values:
|
|
|
163
165
|
| `request.completed` | The recipient completed the request. `data.answers` holds the answers. |
|
|
164
166
|
| `request.expired` | The request reached its expiry before it was completed. |
|
|
165
167
|
| `request.canceled` | The caller canceled the request. |
|
|
166
|
-
| `submission.completed` | A respondent
|
|
167
|
-
| `submission.updated` |
|
|
168
|
-
| `submission.abandoned` | An incomplete response reached the configured idle window.
|
|
168
|
+
| `submission.completed` | A respondent submitted the form through its public link. |
|
|
169
|
+
| `submission.updated` | A respondent edited a public-link submission they already sent. |
|
|
170
|
+
| `submission.abandoned` | An incomplete public-link response reached the configured idle window. |
|
|
171
|
+
|
|
172
|
+
Webhook registration events select which deliveries trigger the workflow, and each one delivers a single event `type`:
|
|
173
|
+
|
|
174
|
+
- `submission_created` (**Public Link Submission Created**) delivers `submission.completed`.
|
|
175
|
+
- `submission_updated` (**Public Link Submission Updated**) delivers `submission.updated`.
|
|
176
|
+
- `submission_abandoned` (**Public Link Submission Abandoned**) delivers `submission.abandoned`, after the selected idle window.
|
|
177
|
+
- `request_completed`, `request_expired` and `request_canceled` deliver `request.completed`, `request.expired` and `request.canceled`.
|
|
169
178
|
|
|
170
|
-
|
|
179
|
+
Use `id` to deduplicate retries; the same values arrive as `X-formbase-Event-Id` and `X-formbase-Event-Type` headers.
|
|
171
180
|
|
|
172
181
|
Full contracts: [formbase API methods](https://docs.formbase.so/developers/rest-api) and [webhook reference](https://docs.formbase.so/developers/webhooks-reference).
|
|
173
182
|
|
|
@@ -47,8 +47,8 @@ class FormbaseTrigger {
|
|
|
47
47
|
icon: { light: 'file:formbase-logo.svg', dark: 'file:formbase-logo.dark.svg' },
|
|
48
48
|
group: ['trigger'],
|
|
49
49
|
version: 1,
|
|
50
|
-
subtitle: '={{ ({ submission_created: "On submission created", submission_abandoned: "On submission abandoned", request_completed: "On request completed", request_expired: "On request expired", request_canceled: "On request canceled" })[$parameter["event"]] }}',
|
|
51
|
-
description: 'Starts the workflow when a formbase request is completed, expires or is canceled, or when a
|
|
50
|
+
subtitle: '={{ ({ submission_created: "On public link submission created", submission_updated: "On public link submission updated", submission_abandoned: "On public link submission abandoned", request_completed: "On request completed", request_expired: "On request expired", request_canceled: "On request canceled" })[$parameter["event"]] }}',
|
|
51
|
+
description: 'Starts the workflow when a formbase request is completed, expires or is canceled, or when a respondent submits a form through its public link',
|
|
52
52
|
defaults: {
|
|
53
53
|
name: 'formbase Trigger',
|
|
54
54
|
},
|
|
@@ -94,16 +94,22 @@ class FormbaseTrigger {
|
|
|
94
94
|
type: 'options',
|
|
95
95
|
options: [
|
|
96
96
|
{
|
|
97
|
-
name: 'Submission Created',
|
|
97
|
+
name: 'Public Link Submission Created',
|
|
98
98
|
value: constants_1.FORMBASE_WEBHOOK_EVENTS.submissionCreated,
|
|
99
|
-
action: 'On submission created',
|
|
100
|
-
description: 'Runs when a respondent submits the selected form
|
|
99
|
+
action: 'On public link submission created',
|
|
100
|
+
description: 'Runs when a respondent submits the selected form through its public link (event type submission.completed). An edit after submit runs Public Link Submission Updated; a completed request runs Request Completed.',
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
name: 'Submission
|
|
103
|
+
name: 'Public Link Submission Updated',
|
|
104
|
+
value: constants_1.FORMBASE_WEBHOOK_EVENTS.submissionUpdated,
|
|
105
|
+
action: 'On public link submission updated',
|
|
106
|
+
description: 'Runs when a respondent edits a public-link submission they already sent (event type submission.updated). The form must allow editing after submit.',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'Public Link Submission Abandoned',
|
|
104
110
|
value: constants_1.FORMBASE_WEBHOOK_EVENTS.submissionAbandoned,
|
|
105
|
-
action: 'On submission abandoned',
|
|
106
|
-
description: 'Runs when a respondent leaves the selected form
|
|
111
|
+
action: 'On public link submission abandoned',
|
|
112
|
+
description: 'Runs when a respondent leaves the selected form, opened through its public link, without submitting it. Needs partial-submission tracking on the workspace.',
|
|
107
113
|
},
|
|
108
114
|
{
|
|
109
115
|
name: 'Request Completed',
|
|
@@ -125,7 +131,7 @@ class FormbaseTrigger {
|
|
|
125
131
|
},
|
|
126
132
|
],
|
|
127
133
|
default: 'submission_created',
|
|
128
|
-
description: 'Event to subscribe to.
|
|
134
|
+
description: 'Event to subscribe to. Public link submission events cover the public link only; a completed request runs Request Completed instead. Abandoned needs partial-submission tracking.',
|
|
129
135
|
},
|
|
130
136
|
{
|
|
131
137
|
displayName: 'Consider Abandoned After',
|
|
@@ -139,7 +145,7 @@ class FormbaseTrigger {
|
|
|
139
145
|
options: [...constants_1.FORMBASE_IDLE_WINDOW_OPTIONS],
|
|
140
146
|
default: '12h',
|
|
141
147
|
required: true,
|
|
142
|
-
description: 'Runs after the
|
|
148
|
+
description: 'Runs after the submission has no saved changes for this long. The hourly sweep can add up to one hour.',
|
|
143
149
|
},
|
|
144
150
|
],
|
|
145
151
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormbaseTrigger.node.js","sourceRoot":"","sources":["../../../nodes/Formbase/FormbaseTrigger.node.ts"],"names":[],"mappings":";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ACF;SACF,CAAA;IAcH,CAAC;IAXC,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,IAAA,yDAA8B,EAAC,IAAI,CAAC,EAAE,CAAC;YAC1C,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,EAAE,CAAA;YAC/D,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAA;QACpC,CAAC;QAED,MAAM,IAAI,GAAgB,IAAI,CAAC,WAAW,EAAE,CAAA;QAC5C,OAAO;YACL,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SACnD,CAAA;IACH,CAAC;CACF;AArND,0CAqNC"}
|
|
@@ -4,6 +4,7 @@ export declare const FORMBASE_API_RESOURCE_URL = "https://api.formbase.so/api/v1
|
|
|
4
4
|
export declare const FORMBASE_OAUTH2_CREDENTIAL_NAME = "formbaseOAuth2Api";
|
|
5
5
|
export declare const FORMBASE_WEBHOOK_EVENTS: {
|
|
6
6
|
readonly submissionCreated: "submission_created";
|
|
7
|
+
readonly submissionUpdated: "submission_updated";
|
|
7
8
|
readonly submissionAbandoned: "submission_abandoned";
|
|
8
9
|
readonly requestCompleted: "request_completed";
|
|
9
10
|
readonly requestExpired: "request_expired";
|
|
@@ -8,6 +8,7 @@ exports.FORMBASE_API_RESOURCE_URL = `${exports.DEFAULT_FORMBASE_API_URL}${export
|
|
|
8
8
|
exports.FORMBASE_OAUTH2_CREDENTIAL_NAME = 'formbaseOAuth2Api';
|
|
9
9
|
exports.FORMBASE_WEBHOOK_EVENTS = {
|
|
10
10
|
submissionCreated: 'submission_created',
|
|
11
|
+
submissionUpdated: 'submission_updated',
|
|
11
12
|
submissionAbandoned: 'submission_abandoned',
|
|
12
13
|
requestCompleted: 'request_completed',
|
|
13
14
|
requestExpired: 'request_expired',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../nodes/Formbase/constants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../nodes/Formbase/constants.ts"],"names":[],"mappings":";;;AAiCA,oDAEC;AAnCY,QAAA,wBAAwB,GAAG,yBAAyB,CAAA;AAEpD,QAAA,iBAAiB,GAAG,SAAS,CAAA;AAE7B,QAAA,yBAAyB,GAAG,GAAG,gCAAwB,GAAG,yBAAiB,EAAE,CAAA;AAE7E,QAAA,+BAA+B,GAAG,mBAAmB,CAAA;AAErD,QAAA,uBAAuB,GAAG;IACrC,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;IAC3C,gBAAgB,EAAE,mBAAmB;IACrC,cAAc,EAAE,iBAAiB;IACjC,eAAe,EAAE,kBAAkB;CAC3B,CAAA;AAKG,QAAA,4BAA4B,GAAG;IAC1C,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE;IAClC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE;IAC9B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;CACvB,CAAA;AAIV,MAAM,2BAA2B,GAAwB,IAAI,GAAG,CAC9D,oCAA4B,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAC3D,CAAA;AAED,SAAgB,oBAAoB,CAAC,KAAc;IACjD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,2BAA2B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;AAC5E,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-formbase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "n8n community nodes for formbase — create requests, pause a workflow until a customer completes one, and trigger on completed, expired or canceled requests and on form submissions. Collect and verify customer information for workflows and AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-formbase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "n8n community nodes for formbase — create requests, pause a workflow until a customer completes one, and trigger on completed, expired or canceled requests and on form submissions. Collect and verify customer information for workflows and AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|