n8n-nodes-hamkar 3.1.0 → 3.1.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.
Files changed (2) hide show
  1. package/README.md +164 -19
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,24 @@
1
1
  # n8n-nodes-hamkar
2
2
 
3
- This is an n8n community node for integrating with the Hamkar.co API. It allows you to manage contacts and records (create, update, delete, and list) through n8n workflows.
3
+ This is an n8n community node for integrating with the Hamkar.co API. It allows you to manage contacts and records (create, update, delete, and list) through n8n workflows, plus automatic workflow triggers.
4
4
 
5
5
  [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
6
6
 
7
- [Installation](#installation)
8
- [Operations](#operations)
9
- [Credentials](#credentials)
10
- [Compatibility](#compatibility)
11
- [Usage](#usage)
12
- [Resources](#resources)
7
+ ## 📚 Documentation
8
+
9
+ - **[Complete Documentation](DOCUMENTATION.md)** - Full guide with examples and best practices
10
+ - **[Quick Reference](QUICK_REFERENCE.md)** - Cheat sheet for common operations
11
+ - **[Troubleshooting Guide](TROUBLESHOOTING_GUIDE.md)** - Solutions to common issues
12
+
13
+ ## 📑 Quick Links
14
+
15
+ - [Installation](#installation)
16
+ - [Operations](#operations)
17
+ - [Credentials](#credentials)
18
+ - [Trigger Node](#trigger-node)
19
+ - [Example Workflows](#example-workflows)
20
+ - [Compatibility](#compatibility)
21
+ - [Resources](#resources)
13
22
 
14
23
  ## Installation
15
24
 
@@ -29,20 +38,38 @@ After installing the node, you can use it like any other node. n8n displays the
29
38
 
30
39
  ## Operations
31
40
 
32
- The Hamkar node supports the following operations:
41
+ The Hamkar package includes two nodes:
33
42
 
34
- ### Contact
43
+ ### 1. Hamkar Node (Regular Operations)
44
+
45
+ #### Contact Operations
35
46
  - **Create**: Create a new contact with name, phone numbers, address, and type (legal/natural)
36
47
  - **Update**: Update an existing contact by ID
37
48
  - **Delete**: Delete a contact by ID (or archive using update)
38
49
  - **Get Many**: Retrieve multiple contacts with optional search filtering
39
50
 
40
- ### Record
51
+ #### Record Operations
41
52
  - **Create**: Create a new record with contact information, products, and custom field answers
42
53
  - **Update**: Update an existing record by ID
43
54
  - **Delete**: Delete a record by ID
44
55
  - **Get Many**: Retrieve multiple records with optional search filtering
45
56
 
57
+ ### 2. Hamkar Trigger Node (Automatic Workflow Starts)
58
+
59
+ Automatically triggers workflows when events occur in Hamkar:
60
+
61
+ #### Contact Triggers
62
+ - **Contact Created**: Triggers when a new contact is created
63
+ - **Contact Updated**: Triggers when a contact is modified
64
+ - **Contact Deleted**: Triggers when a contact is deleted
65
+
66
+ #### Record Triggers
67
+ - **Record Created**: Triggers when a new record is created
68
+ - **Record Updated**: Triggers when a record is modified
69
+ - **Record Deleted**: Triggers when a record is deleted
70
+
71
+ **Note**: Trigger functionality requires webhook support from Hamkar.co. If webhooks are not available, use scheduled polling with "Get Many" operations instead.
72
+
46
73
  ## Credentials
47
74
 
48
75
  To use this node, you need a Hamkar API key:
@@ -99,16 +126,101 @@ You can:
99
126
  - Return all records or limit the number
100
127
  - Use a search query to filter results
101
128
 
102
- ## Example Workflow
129
+ ## Trigger Node
130
+
131
+ ### Setup Webhook Triggers
132
+
133
+ 1. **In n8n:**
134
+ - Add "Hamkar Trigger" node to your workflow
135
+ - Select the event you want to listen for
136
+ - Copy the webhook URL provided
137
+
138
+ 2. **In Hamkar.co:**
139
+ - Navigate to Settings → Webhooks (if available)
140
+ - Add the webhook URL from n8n
141
+ - Select which events to send
142
+ - Save configuration
143
+
144
+ 3. **Activate Workflow:**
145
+ - Toggle your workflow to "Active"
146
+ - Test by creating/updating a contact or record in Hamkar
147
+
148
+ ### Alternative: Polling Method
149
+
150
+ If Hamkar.co doesn't support webhooks yet, use scheduled polling:
151
+
152
+ ```
153
+ [Schedule Trigger] (every 5 minutes)
154
+
155
+ [Hamkar - Get Many Contacts]
156
+
157
+ [Function Node] (compare with previous results)
158
+
159
+ [Process new/changed items]
160
+ ```
161
+
162
+ ## Example Workflows
163
+
164
+ ### 1. Create Contact from Form Submission
165
+
166
+ ```
167
+ [Webhook Trigger] (Form submission)
168
+
169
+ [Hamkar - Create Contact]
170
+ Name: {{$json.name}}
171
+ Phone: {{$json.phone}}
172
+
173
+ [Send Email] (Confirmation)
174
+ ```
175
+
176
+ ### 2. Auto-Email New Contacts
103
177
 
104
- Here's a simple example workflow:
178
+ ```
179
+ [Hamkar Trigger] (Contact Created)
180
+
181
+ [Send Email]
182
+ To: sales@company.com
183
+ Subject: New Contact: {{$json.name}}
184
+ Body: Phone: {{$json.phone_number}}
185
+ ```
186
+
187
+ ### 3. Daily Contact Report
188
+
189
+ ```
190
+ [Schedule Trigger] (Daily at 9 AM)
191
+
192
+ [Hamkar - Get Many Contacts]
193
+ Return All: true
194
+
195
+ [Function Node] (Calculate statistics)
196
+
197
+ [Send Email] (Report to manager)
198
+ ```
199
+
200
+ ### 4. Import Contacts from CSV
201
+
202
+ ```
203
+ [Read CSV File]
204
+
205
+ [Split In Batches] (10 contacts per batch)
206
+
207
+ [Hamkar - Create Contact]
208
+ Name: {{$json.name}}
209
+ Phone: {{$json.phone}}
210
+
211
+ [Wait] (1 second between batches)
212
+ ```
213
+
214
+ ### 5. Sync to Google Sheets
215
+
216
+ ```
217
+ [Hamkar Trigger] (Contact Created/Updated)
218
+
219
+ [Google Sheets - Append/Update Row]
220
+ Values: {{$json.name}}, {{$json.phone_number}}
221
+ ```
105
222
 
106
- 1. **Trigger**: Webhook or Schedule
107
- 2. **Hamkar Node**: Create a new record
108
- - Set credentials
109
- - Configure record details
110
- - Add products and answers
111
- 3. **Process**: Use the returned data in subsequent nodes
223
+ For more examples and detailed guides, see [DOCUMENTATION.md](DOCUMENTATION.md).
112
224
 
113
225
  ## Resources
114
226
 
@@ -140,5 +252,38 @@ npm run dev
140
252
 
141
253
  ## Support
142
254
 
143
- For issues, questions, or contributions, please open an issue on [GitHub](https://github.com/yourusername/n8n-nodes-hamkar/issues).
255
+ ### Documentation
256
+
257
+ Before asking for help, check these resources:
258
+
259
+ 1. **[Complete Documentation](DOCUMENTATION.md)** - Comprehensive guide with all features
260
+ 2. **[Quick Reference](QUICK_REFERENCE.md)** - Quick lookup for common tasks
261
+ 3. **[Troubleshooting Guide](TROUBLESHOOTING_GUIDE.md)** - Solutions to common problems
262
+
263
+ ### Getting Help
264
+
265
+ - **Issues & Bugs**: [GitHub Issues](https://github.com/yourusername/n8n-nodes-hamkar/issues)
266
+ - **Questions**: [n8n Community Forum](https://community.n8n.io/)
267
+ - **Feature Requests**: [GitHub Issues](https://github.com/yourusername/n8n-nodes-hamkar/issues) with "enhancement" label
268
+
269
+ ### Reporting Bugs
270
+
271
+ When reporting an issue, please include:
272
+ - n8n version
273
+ - Node package version
274
+ - Error message (full text)
275
+ - Steps to reproduce
276
+ - Expected vs actual behavior
277
+
278
+ ## Version History
279
+
280
+ See [CHANGELOG.md](CHANGELOG.md) for version history and updates.
281
+
282
+ **Current Version**: 3.0.12
283
+
284
+ ### Recent Updates
285
+ - ✅ Added Hamkar Trigger node for automatic workflows
286
+ - ✅ Support for Contact and Record events
287
+ - ✅ Improved icon and UI elements
288
+ - ✅ Comprehensive documentation and guides
144
289
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-hamkar",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "n8n node for Hamkar.co API - Contact and Record management operations",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",