n8n-nodes-chatery-whatsapp 0.1.4 → 0.2.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 +79 -60
- package/dist/nodes/ChateryWhatsApp/ChateryWhatsApp.node.js +359 -18
- package/dist/nodes/ChateryWhatsApp/ChateryWhatsApp.node.js.map +1 -1
- package/dist/nodes/ChateryWhatsApp/ChateryWhatsAppTrigger.node.js +60 -20
- package/dist/nodes/ChateryWhatsApp/ChateryWhatsAppTrigger.node.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
This is an n8n community node for integrating with **Chatery WhatsApp API**. It allows you to automate WhatsApp messaging, manage sessions, retrieve chat history,
|
|
5
|
+
This is an n8n community node for integrating with **[Chatery WhatsApp API](https://github.com/farinchan/chatery_whatsapp)**. It allows you to automate WhatsApp messaging, manage sessions, retrieve chat history, handle groups, and send bulk messages directly from your n8n workflows.
|
|
6
6
|
|
|
7
7
|
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
|
|
8
8
|
|
|
@@ -16,6 +16,7 @@ This is an n8n community node for integrating with **Chatery WhatsApp API**. It
|
|
|
16
16
|
- [Resources & Operations](#resources--operations)
|
|
17
17
|
- [Compatibility](#compatibility)
|
|
18
18
|
- [Usage Examples](#usage-examples)
|
|
19
|
+
- [Links](#links)
|
|
19
20
|
- [License](#license)
|
|
20
21
|
|
|
21
22
|
## Installation
|
|
@@ -42,8 +43,8 @@ To use this node, you need to configure the **Chatery API** credentials:
|
|
|
42
43
|
|
|
43
44
|
| Field | Description |
|
|
44
45
|
|-------|-------------|
|
|
45
|
-
| **URL** | Your Chatery WhatsApp API host URL (e.g., `https://api.chatery.
|
|
46
|
-
| **API Key** | Your API key for authentication (
|
|
46
|
+
| **URL** | Your Chatery WhatsApp API host URL (e.g., `https://api.chatery.app`) |
|
|
47
|
+
| **API Key** | Your API key for authentication (X-Api-Key header) |
|
|
47
48
|
|
|
48
49
|
## Nodes
|
|
49
50
|
|
|
@@ -54,18 +55,27 @@ This package includes two nodes:
|
|
|
54
55
|
A webhook trigger node that listens for WhatsApp events from the Chatery API.
|
|
55
56
|
|
|
56
57
|
**Supported Events:**
|
|
58
|
+
|
|
57
59
|
| Event | Description |
|
|
58
60
|
|-------|-------------|
|
|
59
61
|
| `all` | Listen to all events |
|
|
60
|
-
| `message` | New incoming message |
|
|
61
|
-
| `message_ack` | Message acknowledgment (sent, delivered, read) |
|
|
62
|
-
| `message_revoke` | Message deleted/revoked |
|
|
63
|
-
| `presence` | Contact presence update (online, typing, etc.) |
|
|
64
62
|
| `qr` | QR code generated for authentication |
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `
|
|
63
|
+
| `connection.update` | Connection status changed (connected, disconnected) |
|
|
64
|
+
| `message` | New message received |
|
|
65
|
+
| `message.sent` | Message sent confirmation |
|
|
66
|
+
| `message.update` | Message status update (read, delivered) |
|
|
67
|
+
| `message.reaction` | Message reaction added |
|
|
68
|
+
| `message.revoke` | Message deleted/revoked |
|
|
69
|
+
| `presence.update` | Typing, online status |
|
|
70
|
+
| `group.participants` | Group members changed |
|
|
71
|
+
| `group.update` | Group info changed |
|
|
72
|
+
| `chat.update` | Chat updated |
|
|
73
|
+
| `chat.upsert` | New chat created |
|
|
74
|
+
| `chat.delete` | Chat deleted |
|
|
75
|
+
| `contact.update` | Contact updated |
|
|
76
|
+
| `call` | Incoming call |
|
|
77
|
+
| `labels` | Labels updated (business) |
|
|
78
|
+
| `logged.out` | Session logged out |
|
|
69
79
|
|
|
70
80
|
**Options:**
|
|
71
81
|
- **Session Filter**: Filter events by specific session ID
|
|
@@ -80,44 +90,58 @@ The main node for performing WhatsApp operations via HTTP requests.
|
|
|
80
90
|
|
|
81
91
|
## Resources & Operations
|
|
82
92
|
|
|
93
|
+
### Bulk Resource (NEW!)
|
|
94
|
+
|
|
95
|
+
Send messages to multiple recipients with background processing.
|
|
96
|
+
|
|
97
|
+
| Operation | Description |
|
|
98
|
+
|-----------|-------------|
|
|
99
|
+
| **Send Bulk Text** | Send a text message to multiple recipients |
|
|
100
|
+
| **Send Bulk Image** | Send an image to multiple recipients |
|
|
101
|
+
| **Send Bulk Document** | Send a document to multiple recipients |
|
|
102
|
+
| **Get Job Status** | Get status of a bulk messaging job |
|
|
103
|
+
| **Get All Jobs** | Get all bulk messaging jobs |
|
|
104
|
+
|
|
83
105
|
### Chat Resource
|
|
84
106
|
|
|
85
107
|
| Operation | Description |
|
|
86
108
|
|-----------|-------------|
|
|
87
|
-
| **Send Text** | Send a text message
|
|
88
|
-
| **Send Image** | Send an image with optional caption |
|
|
89
|
-
| **Send Document** | Send a document/file |
|
|
90
|
-
| **Send Location** | Send a location with coordinates |
|
|
91
|
-
| **Send Contact** | Send a contact card |
|
|
92
|
-
| **Send Button** | Send a message with buttons |
|
|
109
|
+
| **Send Text** | Send a text message (supports replyTo) |
|
|
110
|
+
| **Send Image** | Send an image with optional caption (supports replyTo) |
|
|
111
|
+
| **Send Document** | Send a document/file (supports replyTo) |
|
|
112
|
+
| **Send Location** | Send a location with coordinates (supports replyTo) |
|
|
113
|
+
| **Send Contact** | Send a contact card (supports replyTo) |
|
|
114
|
+
| **Send Button** | Send a message with buttons (supports replyTo) |
|
|
93
115
|
| **Send Presence Update** | Update your presence status |
|
|
94
116
|
| **Check Number** | Check if a number is registered on WhatsApp |
|
|
95
117
|
| **Profile Picture** | Get a contact's profile picture URL |
|
|
96
118
|
| **Contact Info** | Get detailed information about a contact |
|
|
97
119
|
|
|
120
|
+
> **NEW:** All send operations now support `replyTo` parameter to reply/quote specific messages!
|
|
121
|
+
|
|
98
122
|
### Session Resource
|
|
99
123
|
|
|
100
124
|
| Operation | Description |
|
|
101
125
|
|-----------|-------------|
|
|
102
126
|
| **List** | List all available sessions |
|
|
103
127
|
| **Connect** | Connect/start a new session |
|
|
104
|
-
| **Status** | Get the status of a session |
|
|
128
|
+
| **Get Status** | Get the status of a session |
|
|
105
129
|
| **Update Config** | Update session configuration |
|
|
106
130
|
| **Add Webhook** | Add a webhook URL to receive events |
|
|
107
131
|
| **Remove Webhook** | Remove a webhook from the session |
|
|
108
|
-
| **QR Code** | Get QR code as text for authentication |
|
|
109
|
-
| **QR Image** | Get QR code as image for authentication |
|
|
132
|
+
| **Get QR Code** | Get QR code as text for authentication |
|
|
133
|
+
| **Get QR Image** | Get QR code as image for authentication |
|
|
110
134
|
| **Delete** | Delete/terminate a session |
|
|
111
135
|
|
|
112
136
|
### History Resource
|
|
113
137
|
|
|
114
138
|
| Operation | Description |
|
|
115
139
|
|-----------|-------------|
|
|
116
|
-
| **Overview** | Get an overview of all chats |
|
|
117
|
-
| **Contacts** | Get list of all contacts |
|
|
118
|
-
| **Messages** | Get messages from a specific chat |
|
|
119
|
-
| **Info** | Get detailed information about a chat |
|
|
120
|
-
| **Mark Read** | Mark messages in a chat as read |
|
|
140
|
+
| **Get Overview** | Get an overview of all chats |
|
|
141
|
+
| **Get Contacts** | Get list of all contacts |
|
|
142
|
+
| **Get Messages** | Get messages from a specific chat |
|
|
143
|
+
| **Get Chat Info** | Get detailed information about a chat |
|
|
144
|
+
| **Mark as Read** | Mark messages in a chat as read |
|
|
121
145
|
|
|
122
146
|
### Group Resource
|
|
123
147
|
|
|
@@ -125,19 +149,19 @@ The main node for performing WhatsApp operations via HTTP requests.
|
|
|
125
149
|
|-----------|-------------|
|
|
126
150
|
| **List** | List all groups you're a member of |
|
|
127
151
|
| **Create** | Create a new group |
|
|
128
|
-
| **Metadata** | Get group metadata/information |
|
|
152
|
+
| **Get Metadata** | Get group metadata/information |
|
|
129
153
|
| **Add Participants** | Add participants to a group |
|
|
130
154
|
| **Remove Participants** | Remove participants from a group |
|
|
131
155
|
| **Promote Participants** | Promote participants to admin |
|
|
132
156
|
| **Demote Participants** | Demote admins to regular participants |
|
|
133
157
|
| **Update Subject** | Update group name/subject |
|
|
134
158
|
| **Update Description** | Update group description |
|
|
159
|
+
| **Update Settings** | Set who can send messages or edit group info |
|
|
160
|
+
| **Update Picture** | Update group picture |
|
|
135
161
|
| **Leave** | Leave a group |
|
|
136
|
-
| **Invite Code** | Get group invite code |
|
|
137
|
-
| **Revoke Invite
|
|
138
|
-
| **
|
|
139
|
-
| **Set Who Can Edit Group** | Set who can edit group info |
|
|
140
|
-
| **Accept Invite** | Join a group using invite code |
|
|
162
|
+
| **Get Invite Code** | Get group invite code |
|
|
163
|
+
| **Revoke Invite** | Revoke and generate new invite code |
|
|
164
|
+
| **Join** | Join a group using invite code |
|
|
141
165
|
|
|
142
166
|
## Compatibility
|
|
143
167
|
|
|
@@ -153,52 +177,47 @@ The main node for performing WhatsApp operations via HTTP requests.
|
|
|
153
177
|
3. Connect the trigger to the send node
|
|
154
178
|
4. Map the incoming chat ID to the recipient
|
|
155
179
|
|
|
156
|
-
### Example 2: Send
|
|
180
|
+
### Example 2: Send Bulk Notifications
|
|
157
181
|
|
|
158
182
|
1. Use any trigger (e.g., Webhook, Schedule)
|
|
159
183
|
2. Add **Chatery WhatsApp** node
|
|
160
|
-
3. Select **
|
|
161
|
-
4. Enter
|
|
184
|
+
3. Select **Bulk** resource and **Send Bulk Text** operation
|
|
185
|
+
4. Enter comma-separated phone numbers and your message
|
|
186
|
+
5. Track job status using **Get Job Status** operation
|
|
162
187
|
|
|
163
|
-
### Example 3:
|
|
188
|
+
### Example 3: Reply to Specific Message
|
|
189
|
+
|
|
190
|
+
1. Capture the message ID from incoming webhook
|
|
191
|
+
2. Use **Chat** resource with **Send Text** operation
|
|
192
|
+
3. Set the `replyTo` parameter with the message ID
|
|
193
|
+
|
|
194
|
+
### Example 4: Session Management
|
|
164
195
|
|
|
165
196
|
1. Use **Chatery WhatsApp** node
|
|
166
197
|
2. Select **Session** resource
|
|
167
198
|
3. Use **Connect** to start a new session
|
|
168
|
-
4. Use **QR Image** to get the QR code for scanning
|
|
169
|
-
5. Use **Status** to check connection status
|
|
170
|
-
|
|
171
|
-
## Development
|
|
199
|
+
4. Use **Get QR Image** to get the QR code for scanning
|
|
200
|
+
5. Use **Get Status** to check connection status
|
|
172
201
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
npm run build
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
### Lint
|
|
180
|
-
|
|
181
|
-
```bash
|
|
182
|
-
npm run lint
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### Run Tests
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
npm run test
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
## Resources
|
|
202
|
+
## Links
|
|
192
203
|
|
|
204
|
+
- [Chatery WhatsApp API](https://github.com/farinchan/chatery_whatsapp)
|
|
205
|
+
- [Chatery Documentation](https://docs.chatery.app)
|
|
193
206
|
- [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
|
|
194
|
-
- [Chatery WhatsApp API Documentation](https://github.com/AhmadShahid/chatery)
|
|
195
207
|
|
|
196
208
|
## Author
|
|
197
209
|
|
|
198
|
-
**
|
|
210
|
+
**Fajri Rinaldi Chan** (Farin Chan)
|
|
199
211
|
- Email: fajri@gariskode.com
|
|
200
212
|
- GitHub: [@farinchan](https://github.com/farinchan)
|
|
201
213
|
|
|
214
|
+
## Support
|
|
215
|
+
|
|
216
|
+
If you find this project helpful, consider supporting the development:
|
|
217
|
+
|
|
218
|
+
- [Saweria](https://saweria.co/fajrichan)
|
|
219
|
+
- [PayPal](https://paypal.me/farinchan)
|
|
220
|
+
|
|
202
221
|
## License
|
|
203
222
|
|
|
204
223
|
[MIT](LICENSE.md)
|