n8n-nodes-pilot-status 1.0.0 → 1.0.1
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 +100 -0
- package/package.json +7 -5
package/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Pilot Status - n8n Integration
|
|
2
|
+
|
|
3
|
+
This is the official [n8n](https://n8n.io/) node for [Pilot Status](https://pilotstatus.online) — a WhatsApp transactional, marketing, and bulk messaging platform.
|
|
4
|
+
|
|
5
|
+
With this integration, you can seamlessly connect your n8n workflows to Pilot Status to send messages, manage projects, connect WhatsApp numbers, and react to incoming messages or status changes in real time.
|
|
6
|
+
|
|
7
|
+
## 📦 Installation
|
|
8
|
+
|
|
9
|
+
To install this node in your n8n instance, follow these steps:
|
|
10
|
+
|
|
11
|
+
### For n8n UI (Community Nodes)
|
|
12
|
+
1. Go to **Settings > Community Nodes**.
|
|
13
|
+
2. Click on **Install**.
|
|
14
|
+
3. Enter `n8n-nodes-pilot-status`.
|
|
15
|
+
4. Click **Install**.
|
|
16
|
+
|
|
17
|
+
### For Docker / Self-hosted
|
|
18
|
+
If you are hosting n8n yourself, you can install it via npm:
|
|
19
|
+
```bash
|
|
20
|
+
npm install n8n-nodes-pilot-status
|
|
21
|
+
```
|
|
22
|
+
*Make sure to restart your n8n instance after installation.*
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 🔑 Authentication
|
|
27
|
+
|
|
28
|
+
To use the Pilot Status node, you need an **API Key**.
|
|
29
|
+
|
|
30
|
+
1. Go to your [Pilot Status Dashboard](https://pilotstatus.online/api-keys).
|
|
31
|
+
2. Create a new API Key (you can choose between a `TEST` key or a `LIVE` key).
|
|
32
|
+
3. In n8n, add a new **Pilot Status API** credential and paste your API Key.
|
|
33
|
+
|
|
34
|
+
*Note: TEST keys will only send messages to the WhatsApp number registered in your Pilot Status Profile.*
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## ⚡ Triggers (Webhooks)
|
|
39
|
+
|
|
40
|
+
The **Pilot Status Trigger** node allows your workflows to react to real-time events.
|
|
41
|
+
|
|
42
|
+
To use it:
|
|
43
|
+
1. Add the **Pilot Status Trigger** node to your workflow.
|
|
44
|
+
2. Select the event you want to listen to (or select "All Events").
|
|
45
|
+
3. **Copy the Webhook URL** provided by the node.
|
|
46
|
+
4. Go to the **Webhooks** section in your Pilot Status Dashboard and paste the URL.
|
|
47
|
+
|
|
48
|
+
### Available Events:
|
|
49
|
+
- **Message Sent:** Triggered when the message is sent to the provider.
|
|
50
|
+
- **Message Delivered:** Triggered when the message is successfully delivered to the device.
|
|
51
|
+
- **Message Read:** Triggered when the user reads the message.
|
|
52
|
+
- **Message Failed:** Triggered if the message fails to send (includes error details).
|
|
53
|
+
- **Message Reply:** Triggered when a user replies specifically to an automated message.
|
|
54
|
+
- **Message Received:** Triggered when a general inbound message is received on your connected WhatsApp number.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🛠 Actions (Operations)
|
|
59
|
+
|
|
60
|
+
The **Pilot Status** node provides several resources and operations to manage your account and send messages.
|
|
61
|
+
|
|
62
|
+
### 1. Message
|
|
63
|
+
- **Send:** Send a template message (OTP, Utility, or Marketing). You can provide variables dynamically via JSON and even schedule the message (`deliverAt`).
|
|
64
|
+
- **Get Status:** Retrieve the current status of a specific message using its `messageId`.
|
|
65
|
+
- **Check Opt-In:** Check if a specific destination number has opted in to receive messages from your project (required for LIVE environments when using the Pilot Status shared number).
|
|
66
|
+
|
|
67
|
+
### 2. Number
|
|
68
|
+
- **Create:** Provision a new WhatsApp number instance. It returns a base64 QR Code that you can scan to connect the device. By default, the number is linked to the API Key used in the request.
|
|
69
|
+
- **Get Status:** Check the connection status of a WhatsApp instance (e.g., `CONNECTING`, `OPEN`).
|
|
70
|
+
|
|
71
|
+
### 3. Project
|
|
72
|
+
- **Create:** Programmatically create a new project in your workspace.
|
|
73
|
+
- **Get Many:** List all projects associated with your account.
|
|
74
|
+
|
|
75
|
+
### 4. API Key
|
|
76
|
+
- **Create:** Generate new API Keys. This is highly useful for SaaS platforms that want to generate a specific API Key for each of their clients dynamically.
|
|
77
|
+
- **Get Many:** List existing API Keys.
|
|
78
|
+
|
|
79
|
+
### 5. Analytics
|
|
80
|
+
- **Get Dashboard:** Retrieve your messaging statistics (Total Sent, Total Failed, Failure Rate, and Daily charts) based on your timezone.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 💡 Use Case Examples
|
|
85
|
+
|
|
86
|
+
Here are some ideas of what you can build with this integration:
|
|
87
|
+
|
|
88
|
+
1. **Abandoned Cart Recovery:** Trigger a workflow from your e-commerce platform (like Shopify or WooCommerce) to send a Pilot Status message with a discount code 1 hour after cart abandonment.
|
|
89
|
+
2. **Customer Support Routing:** Use the Trigger node to listen for `Message Received`. If the customer asks for help, create a ticket in Jira or Zendesk automatically.
|
|
90
|
+
3. **SaaS Onboarding:** When a new client signs up on your app, automatically create a new Project, generate an API Key, and provision a WhatsApp Number for them using n8n.
|
|
91
|
+
4. **Appointment Reminders:** Connect Google Calendar to n8n and use the `deliverAt` field in the Send Message operation to schedule a reminder 24 hours before the event.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 📚 Documentation & Support
|
|
96
|
+
|
|
97
|
+
- **API Documentation:** [https://pilotstatus.online/docs](https://pilotstatus.online/docs)
|
|
98
|
+
- **Official Website:** [https://pilotstatus.online](https://pilotstatus.online)
|
|
99
|
+
|
|
100
|
+
If you have any questions or need help, feel free to reach out to our support via the dashboard!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-pilot-status",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "n8n node for Pilot Status API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8ncommunity",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"build": "rimraf dist && tsc && npm run build:icons",
|
|
14
14
|
"build:icons": "mkdir -p dist/nodes/PilotStatus dist/nodes/PilotStatusTrigger && cp nodes/PilotStatus/*.svg dist/nodes/PilotStatus/ && cp nodes/PilotStatusTrigger/*.svg dist/nodes/PilotStatusTrigger/",
|
|
15
15
|
"dev": "tsc --watch",
|
|
16
|
+
"test": "jest",
|
|
16
17
|
"prepublishOnly": "npm run build"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
@@ -28,13 +29,14 @@
|
|
|
28
29
|
"dist/nodes/PilotStatusTrigger/PilotStatusTrigger.node.js"
|
|
29
30
|
]
|
|
30
31
|
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"n8n-workflow": "^1.0.0"
|
|
33
|
-
},
|
|
34
32
|
"devDependencies": {
|
|
33
|
+
"@types/jest": "^30.0.0",
|
|
35
34
|
"@types/node": "^18.0.0",
|
|
36
|
-
"
|
|
35
|
+
"jest": "^30.3.0",
|
|
36
|
+
"n8n-core": "^1.122.17",
|
|
37
|
+
"n8n-workflow": "^2.13.0",
|
|
37
38
|
"rimraf": "^5.0.0",
|
|
39
|
+
"ts-jest": "^29.4.6",
|
|
38
40
|
"typescript": "^5.0.0"
|
|
39
41
|
}
|
|
40
42
|
}
|