n8n-nodes-pilot-status 2.6.0 → 2.7.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/CHANGELOG.md +18 -0
- package/README.md +2 -1
- package/dist/nodes/PilotStatus/PilotStatus.node.js +25 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `n8n-nodes-pilot-status`.
|
|
4
4
|
|
|
5
|
+
## 2.7.0 - 2026-10-19
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Message → Send → Additional Fields → Mark Read** (boolean). Sent as `markRead` only when
|
|
10
|
+
the option is added — `false` included — so leaving it out keeps the number's
|
|
11
|
+
`markReadOnSend` setting (default on). Off on a **Meta Cloud API** number: the message
|
|
12
|
+
goes out without the "typing" indicator and the contact's last inbound message is NOT
|
|
13
|
+
marked read (no blue ticks) — the Cloud API only allows typing as part of a read receipt,
|
|
14
|
+
so the two are inseparable. Use case: an AI agent replies and a human still finds the
|
|
15
|
+
conversation unread later. No effect on Evolution (unofficial) numbers: sending never
|
|
16
|
+
marks read there, and read-on-arrival is the number's **Read Messages** setting (turn it
|
|
17
|
+
off for this use case). ⚠️ **Send Typing Indicator** on a Meta number also marks read.
|
|
18
|
+
- **Number → Update Settings → Mark Read On Send** (boolean, default on) — sent as
|
|
19
|
+
`settings.markReadOnSend`. The per-number default for **Mark Read**, same semantics,
|
|
20
|
+
Meta-only effect. A plain boolean like **Ignore Newsletters**, not an Evolution GO
|
|
21
|
+
tri-state field.
|
|
22
|
+
|
|
5
23
|
## 2.6.0 - 2026-10-11
|
|
6
24
|
|
|
7
25
|
### Added
|
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ Webhook payload notes:
|
|
|
90
90
|
The **Pilot Status** node provides several resources and operations to manage your account and send messages.
|
|
91
91
|
|
|
92
92
|
### 1. Message
|
|
93
|
-
- **Send:** Send a template message (OTP, Utility, or Marketing). Choose **Phone Number** or **WhatsApp Group**; for groups use `groupId` (JID ending in `@g.us`) instead of `destinationNumber`. Optional dropdown loads groups from `GET /v1/groups` when the WhatsApp session is connected. Variables can be provided via JSON or the UI collection (including placeholders used in button labels).
|
|
93
|
+
- **Send:** Send a template message (OTP, Utility, or Marketing). Choose **Phone Number** or **WhatsApp Group**; for groups use `groupId` (JID ending in `@g.us`) instead of `destinationNumber`. Optional dropdown loads groups from `GET /v1/groups` when the WhatsApp session is connected. Variables can be provided via JSON or the UI collection (including placeholders used in button labels). Add **Mark Read** (switched off) under Additional Fields to reply without marking the conversation read — e.g. an AI agent answering while a human should still see it unread; leave it out to follow the number's **Mark Read On Send** setting. Meta Cloud API numbers only (no "typing" indicator either); on Evolution numbers turn off **Read Messages** instead. Note that **Send Typing Indicator** on a Meta number also marks read.
|
|
94
94
|
- **Get Status:** Retrieve the current status of a specific message using either its Pilot Status message id or WhatsApp provider id.
|
|
95
95
|
- **Get History:** Read the conversation history of the number, newest first — both directions, every provider, including messages imported from the device on connect. Filters by **Start Date** / **End Date** over the *provider* timestamp (when the message happened, not when it was ingested). This is how you fetch old messages: the webhook does not replay history by default. Requires a number-scoped API key.
|
|
96
96
|
- **Get Many:** The message **log** — sent and received, with delivery status, newest first. Different from Get History: this is the operational trail (`status`, `errorCode`, `origin`, whether the 24h window was open at send), not the chat thread. Filters: Direction, Status (comma-separated), Page, Page Size. For date/search/template filters use the HTTP Request node.
|
|
@@ -115,6 +115,7 @@ The **Pilot Status** node provides several resources and operations to manage yo
|
|
|
115
115
|
- **Check on WhatsApp:** Whether a phone exists on WhatsApp. **Non-official (Evolution) numbers only** — a Meta number answers `400 NOT_SUPPORTED_FOR_META`. For Brazilian mobiles the 9th-digit variant is probed too, and the returned `number` is the **registered** form to send to, which may differ from what you passed.
|
|
116
116
|
- **Update Settings:** Per-number settings. This is the only settings endpoint: there is no `POST /numbers/{id}/settings`, and Evolution's `syncFullHistory` does not exist here. Partial — only the fields you add to the collection change.
|
|
117
117
|
- **History Import Enabled** / **Webhook Historical Messages** apply to every provider. The second is off by default: each reconnect replays up to 30 days of conversation, and your integration cannot tell it apart from new traffic (on the FREE plan it also consumes inbound quota). To *read* history, use Message → Get History.
|
|
118
|
+
- **Ignore Newsletters** and **Mark Read On Send** are platform-level too (not Evolution GO fields). **Mark Read On Send** (on by default) is the default for **Mark Read** on Message → Send: switched off, a send from a **Meta Cloud API** number goes out without the "typing" indicator and does **not** mark the contact's last message as read (no blue ticks) — Meta only allows typing as part of a read receipt, so the two are inseparable. It has no effect on Evolution numbers: sending never marks read there, and read-on-arrival is **Read Messages**.
|
|
118
119
|
- **Always Online**, **Reject Call**, **Reject Call Message**, **Read Messages**, **Ignore Groups**, **Ignore Status** are the Evolution GO advanced settings, in the GO dialect (`ignoreGroups`, not the v2 `groupsIgnore`). They are tri-state: *Inherit From Provider* leaves the field untouched, *Reset to Provider Default* clears the stored value. On a Meta number they are stored but never applied.
|
|
119
120
|
|
|
120
121
|
### 3. API Key
|
|
@@ -650,6 +650,13 @@ class PilotStatus {
|
|
|
650
650
|
default: false,
|
|
651
651
|
description: 'Whether to enable AI rewriting for marketing messages',
|
|
652
652
|
},
|
|
653
|
+
{
|
|
654
|
+
displayName: 'Mark Read',
|
|
655
|
+
name: 'markRead',
|
|
656
|
+
type: 'boolean',
|
|
657
|
+
default: false,
|
|
658
|
+
description: 'Whether this send marks the conversation as read. Leave it out to use the number\'s Mark Read On Send setting (on by default); add it switched off to reply without marking read. Off on a Meta Cloud API number: no "typing" indicator and the contact\'s last message is NOT marked read (no blue ticks) — Meta only allows typing as part of a read receipt, so the two go together. No effect on Evolution numbers (sending never marks read there; use the Read Messages setting). Note: Send Typing Indicator on a Meta number also marks read.',
|
|
659
|
+
},
|
|
653
660
|
{
|
|
654
661
|
displayName: 'Media URL',
|
|
655
662
|
name: 'media',
|
|
@@ -840,6 +847,16 @@ class PilotStatus {
|
|
|
840
847
|
default: '={{ $parameter.additionalFields?.aiRewriteEnabled ? { aiRewriteEnabled: true } : undefined }}',
|
|
841
848
|
routing: { send: { type: 'body', property: 'marketingOptions' } },
|
|
842
849
|
},
|
|
850
|
+
{
|
|
851
|
+
displayName: 'Mark Read',
|
|
852
|
+
name: 'markReadNormalized',
|
|
853
|
+
type: 'hidden',
|
|
854
|
+
displayOptions: { show: { resource: ['message'], operation: ['send'] } },
|
|
855
|
+
// `false` is the value that matters, so test for presence, not truthiness:
|
|
856
|
+
// an omitted option must leave the number's markReadOnSend in charge.
|
|
857
|
+
default: '={{ typeof $parameter.additionalFields?.markRead === "boolean" ? $parameter.additionalFields.markRead : undefined }}',
|
|
858
|
+
routing: { send: { type: 'body', property: 'markRead' } },
|
|
859
|
+
},
|
|
843
860
|
{
|
|
844
861
|
displayName: 'Media URL',
|
|
845
862
|
name: 'mediaNormalized',
|
|
@@ -1274,6 +1291,13 @@ class PilotStatus {
|
|
|
1274
1291
|
default: false,
|
|
1275
1292
|
description: 'Whether to drop WhatsApp Channel (@newsletter) posts on ingestion: no conversation, no stored message and no webhook. Not an Evolution GO field — the provider has no channel gate, so the post always arrives and can only be refused on our side.',
|
|
1276
1293
|
},
|
|
1294
|
+
{
|
|
1295
|
+
displayName: 'Mark Read On Send',
|
|
1296
|
+
name: 'markReadOnSend',
|
|
1297
|
+
type: 'boolean',
|
|
1298
|
+
default: true,
|
|
1299
|
+
description: 'Whether sends from this number mark the conversation as read by default (Message → Send can override it with Mark Read). On by default. Off on a Meta Cloud API number: sends go out without the "typing" indicator and do NOT mark the contact\'s last message as read (no blue ticks) — Meta only allows typing as part of a read receipt. Accepted on every provider, but only a Meta number is affected: sending never marks read on Evolution, where read-on-arrival is Read Messages. Not an Evolution GO field.',
|
|
1300
|
+
},
|
|
1277
1301
|
{
|
|
1278
1302
|
displayName: 'Always Online',
|
|
1279
1303
|
name: 'alwaysOnline',
|
|
@@ -1338,7 +1362,7 @@ class PilotStatus {
|
|
|
1338
1362
|
displayOptions: { show: { resource: ['number'], operation: ['updateSettings'] } },
|
|
1339
1363
|
// `|| undefined` no fim: um `settings: {}` seria rejeitado com 400
|
|
1340
1364
|
// EMPTY_PATCH pelo servidor.
|
|
1341
|
-
default: '={{ (() => { const c = $parameter.numberSettings || {}; const out = {}; for (const k of ["historyImportEnabled","webhookHistoricalMessages","ignoreNewsletters"]) { if (c[k] !== undefined) out[k] = c[k]; } for (const k of ["alwaysOnline","rejectCall","readMessages","ignoreGroups","ignoreStatus"]) { const v = c[k]; if (v === "on") out[k] = true; else if (v === "off") out[k] = false; else if (v === "default") out[k] = null; } if (c.msgRejectCallReset === true) out.msgRejectCall = null; else if (c.msgRejectCall) out.msgRejectCall = c.msgRejectCall; return Object.keys(out).length ? out : undefined; })() }}',
|
|
1365
|
+
default: '={{ (() => { const c = $parameter.numberSettings || {}; const out = {}; for (const k of ["historyImportEnabled","webhookHistoricalMessages","ignoreNewsletters","markReadOnSend"]) { if (c[k] !== undefined) out[k] = c[k]; } for (const k of ["alwaysOnline","rejectCall","readMessages","ignoreGroups","ignoreStatus"]) { const v = c[k]; if (v === "on") out[k] = true; else if (v === "off") out[k] = false; else if (v === "default") out[k] = null; } if (c.msgRejectCallReset === true) out.msgRejectCall = null; else if (c.msgRejectCall) out.msgRejectCall = c.msgRejectCall; return Object.keys(out).length ? out : undefined; })() }}',
|
|
1342
1366
|
routing: { send: { type: 'body', property: 'settings' } },
|
|
1343
1367
|
},
|
|
1344
1368
|
// ----------------------------------
|