@renatoascencio/n8n-nodes-chatwoot 0.8.2 → 0.9.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.
Files changed (478) hide show
  1. package/README.md +316 -44
  2. package/dist/credentials/ChatwootApi.credentials.d.ts +2 -1
  3. package/dist/credentials/ChatwootApi.credentials.js +84 -2
  4. package/dist/credentials/ChatwootApi.credentials.js.map +1 -1
  5. package/dist/credentials/ChatwootPlatformApi.credentials.d.ts +2 -1
  6. package/dist/credentials/ChatwootPlatformApi.credentials.js +2 -1
  7. package/dist/credentials/ChatwootPlatformApi.credentials.js.map +1 -1
  8. package/dist/credentials/ChatwootPublicApi.credentials.d.ts +2 -1
  9. package/dist/credentials/ChatwootPublicApi.credentials.js +14 -7
  10. package/dist/credentials/ChatwootPublicApi.credentials.js.map +1 -1
  11. package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +2 -0
  12. package/dist/nodes/Chatwoot/Chatwoot.node.js +1814 -765
  13. package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -1
  14. package/dist/nodes/Chatwoot/ChatwootTrigger.node.js +606 -73
  15. package/dist/nodes/Chatwoot/ChatwootTrigger.node.js.map +1 -1
  16. package/dist/nodes/Chatwoot/ChatwootTrigger.node.json +2 -2
  17. package/dist/nodes/Chatwoot/GenericFunctions.d.ts +103 -8
  18. package/dist/nodes/Chatwoot/GenericFunctions.js +804 -232
  19. package/dist/nodes/Chatwoot/GenericFunctions.js.map +1 -1
  20. package/dist/nodes/Chatwoot/outputCompatibility.d.ts +2 -0
  21. package/dist/nodes/Chatwoot/outputCompatibility.js +17 -0
  22. package/dist/nodes/Chatwoot/outputCompatibility.js.map +1 -0
  23. package/dist/nodes/Chatwoot/resources/account/brandedEmailLayout.operation.d.ts +2 -0
  24. package/dist/nodes/Chatwoot/resources/account/brandedEmailLayout.operation.js +23 -0
  25. package/dist/nodes/Chatwoot/resources/account/brandedEmailLayout.operation.js.map +1 -0
  26. package/dist/nodes/Chatwoot/resources/account/helpers.d.ts +2 -0
  27. package/dist/nodes/Chatwoot/resources/account/helpers.js +53 -0
  28. package/dist/nodes/Chatwoot/resources/account/helpers.js.map +1 -0
  29. package/dist/nodes/Chatwoot/resources/account/index.js +16 -2
  30. package/dist/nodes/Chatwoot/resources/account/index.js.map +1 -1
  31. package/dist/nodes/Chatwoot/resources/account/update.operation.js +133 -21
  32. package/dist/nodes/Chatwoot/resources/account/update.operation.js.map +1 -1
  33. package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js +9 -2
  34. package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js.map +1 -1
  35. package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js +6 -7
  36. package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js.map +1 -1
  37. package/dist/nodes/Chatwoot/resources/accountAgentBot/deleteAvatar.operation.d.ts +2 -0
  38. package/dist/nodes/Chatwoot/resources/accountAgentBot/deleteAvatar.operation.js +20 -0
  39. package/dist/nodes/Chatwoot/resources/accountAgentBot/deleteAvatar.operation.js.map +1 -0
  40. package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js +6 -7
  41. package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js.map +1 -1
  42. package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js +1 -2
  43. package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js.map +1 -1
  44. package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js +18 -10
  45. package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js.map +1 -1
  46. package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js +21 -8
  47. package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js.map +1 -1
  48. package/dist/nodes/Chatwoot/resources/accountUser/index.js +3 -3
  49. package/dist/nodes/Chatwoot/resources/accountUser/index.js.map +1 -1
  50. package/dist/nodes/Chatwoot/resources/agent/create.operation.js +26 -7
  51. package/dist/nodes/Chatwoot/resources/agent/create.operation.js.map +1 -1
  52. package/dist/nodes/Chatwoot/resources/agent/helpers.d.ts +2 -0
  53. package/dist/nodes/Chatwoot/resources/agent/helpers.js +32 -0
  54. package/dist/nodes/Chatwoot/resources/agent/helpers.js.map +1 -0
  55. package/dist/nodes/Chatwoot/resources/agent/index.js +4 -4
  56. package/dist/nodes/Chatwoot/resources/agent/index.js.map +1 -1
  57. package/dist/nodes/Chatwoot/resources/agent/update.operation.js +26 -7
  58. package/dist/nodes/Chatwoot/resources/agent/update.operation.js.map +1 -1
  59. package/dist/nodes/Chatwoot/resources/agentBot/index.js +67 -42
  60. package/dist/nodes/Chatwoot/resources/agentBot/index.js.map +1 -1
  61. package/dist/nodes/Chatwoot/resources/appliedSla/download.operation.js +4 -16
  62. package/dist/nodes/Chatwoot/resources/appliedSla/download.operation.js.map +1 -1
  63. package/dist/nodes/Chatwoot/resources/appliedSla/filters.d.ts +2 -0
  64. package/dist/nodes/Chatwoot/resources/appliedSla/filters.js +55 -0
  65. package/dist/nodes/Chatwoot/resources/appliedSla/filters.js.map +1 -0
  66. package/dist/nodes/Chatwoot/resources/appliedSla/getAll.operation.js +5 -45
  67. package/dist/nodes/Chatwoot/resources/appliedSla/getAll.operation.js.map +1 -1
  68. package/dist/nodes/Chatwoot/resources/appliedSla/index.js +18 -3
  69. package/dist/nodes/Chatwoot/resources/appliedSla/index.js.map +1 -1
  70. package/dist/nodes/Chatwoot/resources/appliedSla/metrics.operation.js +2 -16
  71. package/dist/nodes/Chatwoot/resources/appliedSla/metrics.operation.js.map +1 -1
  72. package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js +57 -12
  73. package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js.map +1 -1
  74. package/dist/nodes/Chatwoot/resources/auditLog/index.js +1 -1
  75. package/dist/nodes/Chatwoot/resources/auditLog/index.js.map +1 -1
  76. package/dist/nodes/Chatwoot/resources/automationRule/helpers.d.ts +10 -0
  77. package/dist/nodes/Chatwoot/resources/automationRule/helpers.js +59 -0
  78. package/dist/nodes/Chatwoot/resources/automationRule/helpers.js.map +1 -0
  79. package/dist/nodes/Chatwoot/resources/automationRule/index.js +102 -34
  80. package/dist/nodes/Chatwoot/resources/automationRule/index.js.map +1 -1
  81. package/dist/nodes/Chatwoot/resources/campaign/create.operation.js +25 -24
  82. package/dist/nodes/Chatwoot/resources/campaign/create.operation.js.map +1 -1
  83. package/dist/nodes/Chatwoot/resources/campaign/delete.operation.js +1 -1
  84. package/dist/nodes/Chatwoot/resources/campaign/delete.operation.js.map +1 -1
  85. package/dist/nodes/Chatwoot/resources/campaign/fields.d.ts +3 -0
  86. package/dist/nodes/Chatwoot/resources/campaign/fields.js +86 -0
  87. package/dist/nodes/Chatwoot/resources/campaign/fields.js.map +1 -0
  88. package/dist/nodes/Chatwoot/resources/campaign/get.operation.js +1 -1
  89. package/dist/nodes/Chatwoot/resources/campaign/get.operation.js.map +1 -1
  90. package/dist/nodes/Chatwoot/resources/campaign/getMetrics.operation.d.ts +2 -0
  91. package/dist/nodes/Chatwoot/resources/campaign/getMetrics.operation.js +15 -0
  92. package/dist/nodes/Chatwoot/resources/campaign/getMetrics.operation.js.map +1 -0
  93. package/dist/nodes/Chatwoot/resources/campaign/getRecipients.operation.d.ts +2 -0
  94. package/dist/nodes/Chatwoot/resources/campaign/getRecipients.operation.js +71 -0
  95. package/dist/nodes/Chatwoot/resources/campaign/getRecipients.operation.js.map +1 -0
  96. package/dist/nodes/Chatwoot/resources/campaign/helpers.d.ts +7 -0
  97. package/dist/nodes/Chatwoot/resources/campaign/helpers.js +112 -0
  98. package/dist/nodes/Chatwoot/resources/campaign/helpers.js.map +1 -0
  99. package/dist/nodes/Chatwoot/resources/campaign/index.d.ts +1 -0
  100. package/dist/nodes/Chatwoot/resources/campaign/index.js +49 -6
  101. package/dist/nodes/Chatwoot/resources/campaign/index.js.map +1 -1
  102. package/dist/nodes/Chatwoot/resources/campaign/loadOptions.d.ts +3 -0
  103. package/dist/nodes/Chatwoot/resources/campaign/loadOptions.js +33 -0
  104. package/dist/nodes/Chatwoot/resources/campaign/loadOptions.js.map +1 -0
  105. package/dist/nodes/Chatwoot/resources/campaign/update.operation.js +22 -24
  106. package/dist/nodes/Chatwoot/resources/campaign/update.operation.js.map +1 -1
  107. package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js +1 -1
  108. package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js.map +1 -1
  109. package/dist/nodes/Chatwoot/resources/cannedResponse/index.js +3 -3
  110. package/dist/nodes/Chatwoot/resources/cannedResponse/index.js.map +1 -1
  111. package/dist/nodes/Chatwoot/resources/company/contacts.operation.d.ts +2 -0
  112. package/dist/nodes/Chatwoot/resources/company/contacts.operation.js +81 -0
  113. package/dist/nodes/Chatwoot/resources/company/contacts.operation.js.map +1 -0
  114. package/dist/nodes/Chatwoot/resources/company/create.operation.js +14 -0
  115. package/dist/nodes/Chatwoot/resources/company/create.operation.js.map +1 -1
  116. package/dist/nodes/Chatwoot/resources/company/getAll.operation.js +13 -1
  117. package/dist/nodes/Chatwoot/resources/company/getAll.operation.js.map +1 -1
  118. package/dist/nodes/Chatwoot/resources/company/index.js +86 -6
  119. package/dist/nodes/Chatwoot/resources/company/index.js.map +1 -1
  120. package/dist/nodes/Chatwoot/resources/company/update.operation.js +14 -0
  121. package/dist/nodes/Chatwoot/resources/company/update.operation.js.map +1 -1
  122. package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js +36 -4
  123. package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js.map +1 -1
  124. package/dist/nodes/Chatwoot/resources/contact/create.operation.d.ts +1 -0
  125. package/dist/nodes/Chatwoot/resources/contact/create.operation.js +47 -11
  126. package/dist/nodes/Chatwoot/resources/contact/create.operation.js.map +1 -1
  127. package/dist/nodes/Chatwoot/resources/contact/deleteCustomAttributes.operation.d.ts +2 -0
  128. package/dist/nodes/Chatwoot/resources/contact/deleteCustomAttributes.operation.js +35 -0
  129. package/dist/nodes/Chatwoot/resources/contact/deleteCustomAttributes.operation.js.map +1 -0
  130. package/dist/nodes/Chatwoot/resources/contact/exportContacts.operation.js +14 -6
  131. package/dist/nodes/Chatwoot/resources/contact/exportContacts.operation.js.map +1 -1
  132. package/dist/nodes/Chatwoot/resources/contact/filter.operation.d.ts +1 -0
  133. package/dist/nodes/Chatwoot/resources/contact/filter.operation.js +39 -4
  134. package/dist/nodes/Chatwoot/resources/contact/filter.operation.js.map +1 -1
  135. package/dist/nodes/Chatwoot/resources/contact/findByWhatsApp.operation.d.ts +2 -0
  136. package/dist/nodes/Chatwoot/resources/contact/findByWhatsApp.operation.js +25 -0
  137. package/dist/nodes/Chatwoot/resources/contact/findByWhatsApp.operation.js.map +1 -0
  138. package/dist/nodes/Chatwoot/resources/contact/getAll.operation.js +21 -37
  139. package/dist/nodes/Chatwoot/resources/contact/getAll.operation.js.map +1 -1
  140. package/dist/nodes/Chatwoot/resources/contact/getAttachments.operation.d.ts +2 -0
  141. package/dist/nodes/Chatwoot/resources/contact/getAttachments.operation.js +50 -0
  142. package/dist/nodes/Chatwoot/resources/contact/getAttachments.operation.js.map +1 -0
  143. package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js +1 -1
  144. package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js.map +1 -1
  145. package/dist/nodes/Chatwoot/resources/contact/importContacts.operation.js +1 -1
  146. package/dist/nodes/Chatwoot/resources/contact/importContacts.operation.js.map +1 -1
  147. package/dist/nodes/Chatwoot/resources/contact/index.js +59 -9
  148. package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -1
  149. package/dist/nodes/Chatwoot/resources/contact/linkToInbox.operation.d.ts +2 -0
  150. package/dist/nodes/Chatwoot/resources/contact/linkToInbox.operation.js +66 -0
  151. package/dist/nodes/Chatwoot/resources/contact/linkToInbox.operation.js.map +1 -0
  152. package/dist/nodes/Chatwoot/resources/contact/search.operation.js +12 -38
  153. package/dist/nodes/Chatwoot/resources/contact/search.operation.js.map +1 -1
  154. package/dist/nodes/Chatwoot/resources/contact/update.operation.js +22 -7
  155. package/dist/nodes/Chatwoot/resources/contact/update.operation.js.map +1 -1
  156. package/dist/nodes/Chatwoot/resources/contact/utils.d.ts +30 -0
  157. package/dist/nodes/Chatwoot/resources/contact/utils.js +385 -0
  158. package/dist/nodes/Chatwoot/resources/contact/utils.js.map +1 -0
  159. package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js +3 -3
  160. package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js.map +1 -1
  161. package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js +49 -2
  162. package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js.map +1 -1
  163. package/dist/nodes/Chatwoot/resources/conversation/create.operation.js +47 -16
  164. package/dist/nodes/Chatwoot/resources/conversation/create.operation.js.map +1 -1
  165. package/dist/nodes/Chatwoot/resources/conversation/deleteCustomAttributes.operation.d.ts +2 -0
  166. package/dist/nodes/Chatwoot/resources/conversation/deleteCustomAttributes.operation.js +35 -0
  167. package/dist/nodes/Chatwoot/resources/conversation/deleteCustomAttributes.operation.js.map +1 -0
  168. package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js +38 -2
  169. package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js.map +1 -1
  170. package/dist/nodes/Chatwoot/resources/conversation/getAll.operation.js +70 -6
  171. package/dist/nodes/Chatwoot/resources/conversation/getAll.operation.js.map +1 -1
  172. package/dist/nodes/Chatwoot/resources/conversation/getAttachments.operation.d.ts +2 -0
  173. package/dist/nodes/Chatwoot/resources/conversation/getAttachments.operation.js +50 -0
  174. package/dist/nodes/Chatwoot/resources/conversation/getAttachments.operation.js.map +1 -0
  175. package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js +20 -12
  176. package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js.map +1 -1
  177. package/dist/nodes/Chatwoot/resources/conversation/helpers.d.ts +9 -0
  178. package/dist/nodes/Chatwoot/resources/conversation/helpers.js +205 -0
  179. package/dist/nodes/Chatwoot/resources/conversation/helpers.js.map +1 -0
  180. package/dist/nodes/Chatwoot/resources/conversation/index.js +61 -11
  181. package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -1
  182. package/dist/nodes/Chatwoot/resources/conversation/markAsRead.operation.d.ts +2 -0
  183. package/dist/nodes/Chatwoot/resources/conversation/markAsRead.operation.js +20 -0
  184. package/dist/nodes/Chatwoot/resources/conversation/markAsRead.operation.js.map +1 -0
  185. package/dist/nodes/Chatwoot/resources/conversation/markAsUnread.operation.d.ts +2 -0
  186. package/dist/nodes/Chatwoot/resources/conversation/markAsUnread.operation.js +20 -0
  187. package/dist/nodes/Chatwoot/resources/conversation/markAsUnread.operation.js.map +1 -0
  188. package/dist/nodes/Chatwoot/resources/conversation/search.operation.js +1 -1
  189. package/dist/nodes/Chatwoot/resources/conversation/search.operation.js.map +1 -1
  190. package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js +1 -1
  191. package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js.map +1 -1
  192. package/dist/nodes/Chatwoot/resources/conversation/toggleTyping.operation.js +14 -1
  193. package/dist/nodes/Chatwoot/resources/conversation/toggleTyping.operation.js.map +1 -1
  194. package/dist/nodes/Chatwoot/resources/conversation/transcript.operation.js +1 -1
  195. package/dist/nodes/Chatwoot/resources/conversation/transcript.operation.js.map +1 -1
  196. package/dist/nodes/Chatwoot/resources/conversation/update.operation.js +10 -2
  197. package/dist/nodes/Chatwoot/resources/conversation/update.operation.js.map +1 -1
  198. package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js +13 -0
  199. package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js.map +1 -1
  200. package/dist/nodes/Chatwoot/resources/conversation/updateStatus.operation.js +2 -2
  201. package/dist/nodes/Chatwoot/resources/conversation/updateStatus.operation.js.map +1 -1
  202. package/dist/nodes/Chatwoot/resources/conversationParticipant/add.operation.js +1 -1
  203. package/dist/nodes/Chatwoot/resources/conversationParticipant/add.operation.js.map +1 -1
  204. package/dist/nodes/Chatwoot/resources/conversationParticipant/index.js +9 -1
  205. package/dist/nodes/Chatwoot/resources/conversationParticipant/index.js.map +1 -1
  206. package/dist/nodes/Chatwoot/resources/conversationParticipant/remove.operation.js +1 -1
  207. package/dist/nodes/Chatwoot/resources/conversationParticipant/remove.operation.js.map +1 -1
  208. package/dist/nodes/Chatwoot/resources/conversationParticipant/replace.operation.d.ts +2 -0
  209. package/dist/nodes/Chatwoot/resources/conversationParticipant/replace.operation.js +23 -0
  210. package/dist/nodes/Chatwoot/resources/conversationParticipant/replace.operation.js.map +1 -0
  211. package/dist/nodes/Chatwoot/resources/csatSurvey/download.operation.js +17 -16
  212. package/dist/nodes/Chatwoot/resources/csatSurvey/download.operation.js.map +1 -1
  213. package/dist/nodes/Chatwoot/resources/csatSurvey/filters.d.ts +2 -0
  214. package/dist/nodes/Chatwoot/resources/csatSurvey/filters.js +55 -0
  215. package/dist/nodes/Chatwoot/resources/csatSurvey/filters.js.map +1 -0
  216. package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js +31 -1
  217. package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js.map +1 -1
  218. package/dist/nodes/Chatwoot/resources/csatSurvey/getAll.operation.d.ts +2 -0
  219. package/dist/nodes/Chatwoot/resources/csatSurvey/getAll.operation.js +48 -0
  220. package/dist/nodes/Chatwoot/resources/csatSurvey/getAll.operation.js.map +1 -0
  221. package/dist/nodes/Chatwoot/resources/csatSurvey/index.js +20 -4
  222. package/dist/nodes/Chatwoot/resources/csatSurvey/index.js.map +1 -1
  223. package/dist/nodes/Chatwoot/resources/csatSurvey/metrics.operation.js +2 -16
  224. package/dist/nodes/Chatwoot/resources/csatSurvey/metrics.operation.js.map +1 -1
  225. package/dist/nodes/Chatwoot/resources/csatSurvey/updateReviewNotes.operation.d.ts +2 -0
  226. package/dist/nodes/Chatwoot/resources/csatSurvey/updateReviewNotes.operation.js +24 -0
  227. package/dist/nodes/Chatwoot/resources/csatSurvey/updateReviewNotes.operation.js.map +1 -0
  228. package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js +21 -8
  229. package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js.map +1 -1
  230. package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js +5 -0
  231. package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js.map +1 -1
  232. package/dist/nodes/Chatwoot/resources/customAttribute/index.js +4 -4
  233. package/dist/nodes/Chatwoot/resources/customAttribute/index.js.map +1 -1
  234. package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js +15 -7
  235. package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js.map +1 -1
  236. package/dist/nodes/Chatwoot/resources/customFilter/index.js +6 -6
  237. package/dist/nodes/Chatwoot/resources/customFilter/index.js.map +1 -1
  238. package/dist/nodes/Chatwoot/resources/customFilter/utils.d.ts +2 -0
  239. package/dist/nodes/Chatwoot/resources/customFilter/utils.js +36 -0
  240. package/dist/nodes/Chatwoot/resources/customFilter/utils.js.map +1 -0
  241. package/dist/nodes/Chatwoot/resources/helpCenter/article.operation.d.ts +2 -0
  242. package/dist/nodes/Chatwoot/resources/helpCenter/article.operation.js +50 -0
  243. package/dist/nodes/Chatwoot/resources/helpCenter/article.operation.js.map +1 -0
  244. package/dist/nodes/Chatwoot/resources/helpCenter/bulk.operation.d.ts +2 -0
  245. package/dist/nodes/Chatwoot/resources/helpCenter/bulk.operation.js +59 -0
  246. package/dist/nodes/Chatwoot/resources/helpCenter/bulk.operation.js.map +1 -0
  247. package/dist/nodes/Chatwoot/resources/helpCenter/category.operation.d.ts +2 -0
  248. package/dist/nodes/Chatwoot/resources/helpCenter/category.operation.js +76 -0
  249. package/dist/nodes/Chatwoot/resources/helpCenter/category.operation.js.map +1 -0
  250. package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js +3 -53
  251. package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js.map +1 -1
  252. package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js +2 -16
  253. package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js.map +1 -1
  254. package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js +2 -37
  255. package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js.map +1 -1
  256. package/dist/nodes/Chatwoot/resources/helpCenter/index.js +74 -6
  257. package/dist/nodes/Chatwoot/resources/helpCenter/index.js.map +1 -1
  258. package/dist/nodes/Chatwoot/resources/helpCenter/listArticles.operation.js +19 -2
  259. package/dist/nodes/Chatwoot/resources/helpCenter/listArticles.operation.js.map +1 -1
  260. package/dist/nodes/Chatwoot/resources/helpCenter/listCategories.operation.js +3 -3
  261. package/dist/nodes/Chatwoot/resources/helpCenter/listCategories.operation.js.map +1 -1
  262. package/dist/nodes/Chatwoot/resources/helpCenter/portal.operation.d.ts +2 -0
  263. package/dist/nodes/Chatwoot/resources/helpCenter/portal.operation.js +20 -0
  264. package/dist/nodes/Chatwoot/resources/helpCenter/portal.operation.js.map +1 -0
  265. package/dist/nodes/Chatwoot/resources/helpCenter/shared.d.ts +4 -0
  266. package/dist/nodes/Chatwoot/resources/helpCenter/shared.js +281 -0
  267. package/dist/nodes/Chatwoot/resources/helpCenter/shared.js.map +1 -0
  268. package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js +6 -31
  269. package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js.map +1 -1
  270. package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js +2 -1
  271. package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js.map +1 -1
  272. package/dist/nodes/Chatwoot/resources/inbox/channelSettings.d.ts +3 -0
  273. package/dist/nodes/Chatwoot/resources/inbox/channelSettings.js +357 -0
  274. package/dist/nodes/Chatwoot/resources/inbox/channelSettings.js.map +1 -0
  275. package/dist/nodes/Chatwoot/resources/inbox/create.operation.js +300 -38
  276. package/dist/nodes/Chatwoot/resources/inbox/create.operation.js.map +1 -1
  277. package/dist/nodes/Chatwoot/resources/inbox/delete.operation.d.ts +2 -0
  278. package/dist/nodes/Chatwoot/resources/inbox/delete.operation.js +23 -0
  279. package/dist/nodes/Chatwoot/resources/inbox/delete.operation.js.map +1 -0
  280. package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js +2 -1
  281. package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js.map +1 -1
  282. package/dist/nodes/Chatwoot/resources/inbox/getMessageTemplates.operation.d.ts +2 -0
  283. package/dist/nodes/Chatwoot/resources/inbox/getMessageTemplates.operation.js +37 -0
  284. package/dist/nodes/Chatwoot/resources/inbox/getMessageTemplates.operation.js.map +1 -0
  285. package/dist/nodes/Chatwoot/resources/inbox/helpers.d.ts +24 -0
  286. package/dist/nodes/Chatwoot/resources/inbox/helpers.js +203 -0
  287. package/dist/nodes/Chatwoot/resources/inbox/helpers.js.map +1 -0
  288. package/dist/nodes/Chatwoot/resources/inbox/index.js +54 -6
  289. package/dist/nodes/Chatwoot/resources/inbox/index.js.map +1 -1
  290. package/dist/nodes/Chatwoot/resources/inbox/resetSecret.operation.d.ts +2 -0
  291. package/dist/nodes/Chatwoot/resources/inbox/resetSecret.operation.js +23 -0
  292. package/dist/nodes/Chatwoot/resources/inbox/resetSecret.operation.js.map +1 -0
  293. package/dist/nodes/Chatwoot/resources/inbox/rotateHmacToken.operation.d.ts +2 -0
  294. package/dist/nodes/Chatwoot/resources/inbox/rotateHmacToken.operation.js +23 -0
  295. package/dist/nodes/Chatwoot/resources/inbox/rotateHmacToken.operation.js.map +1 -0
  296. package/dist/nodes/Chatwoot/resources/inbox/syncTemplates.operation.d.ts +2 -0
  297. package/dist/nodes/Chatwoot/resources/inbox/syncTemplates.operation.js +23 -0
  298. package/dist/nodes/Chatwoot/resources/inbox/syncTemplates.operation.js.map +1 -0
  299. package/dist/nodes/Chatwoot/resources/inbox/update.operation.js +81 -8
  300. package/dist/nodes/Chatwoot/resources/inbox/update.operation.js.map +1 -1
  301. package/dist/nodes/Chatwoot/resources/inbox/updateAgents.operation.d.ts +2 -0
  302. package/dist/nodes/Chatwoot/resources/inbox/updateAgents.operation.js +35 -0
  303. package/dist/nodes/Chatwoot/resources/inbox/updateAgents.operation.js.map +1 -0
  304. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.d.ts +1 -0
  305. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js +6 -5
  306. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js.map +1 -1
  307. package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js +4 -2
  308. package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js.map +1 -1
  309. package/dist/nodes/Chatwoot/resources/integration/index.js +3 -3
  310. package/dist/nodes/Chatwoot/resources/integration/index.js.map +1 -1
  311. package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js +33 -4
  312. package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js.map +1 -1
  313. package/dist/nodes/Chatwoot/resources/label/create.operation.js +1 -1
  314. package/dist/nodes/Chatwoot/resources/label/create.operation.js.map +1 -1
  315. package/dist/nodes/Chatwoot/resources/label/delete.operation.js +1 -1
  316. package/dist/nodes/Chatwoot/resources/label/delete.operation.js.map +1 -1
  317. package/dist/nodes/Chatwoot/resources/label/index.js +3 -3
  318. package/dist/nodes/Chatwoot/resources/label/index.js.map +1 -1
  319. package/dist/nodes/Chatwoot/resources/label/update.operation.js +1 -1
  320. package/dist/nodes/Chatwoot/resources/label/update.operation.js.map +1 -1
  321. package/dist/nodes/Chatwoot/resources/label/utils.d.ts +2 -0
  322. package/dist/nodes/Chatwoot/resources/label/utils.js +26 -0
  323. package/dist/nodes/Chatwoot/resources/label/utils.js.map +1 -0
  324. package/dist/nodes/Chatwoot/resources/macro/create.operation.d.ts +2 -0
  325. package/dist/nodes/Chatwoot/resources/macro/create.operation.js +9 -3
  326. package/dist/nodes/Chatwoot/resources/macro/create.operation.js.map +1 -1
  327. package/dist/nodes/Chatwoot/resources/macro/execute.operation.js +24 -1
  328. package/dist/nodes/Chatwoot/resources/macro/execute.operation.js.map +1 -1
  329. package/dist/nodes/Chatwoot/resources/macro/index.js +6 -6
  330. package/dist/nodes/Chatwoot/resources/macro/index.js.map +1 -1
  331. package/dist/nodes/Chatwoot/resources/macro/update.operation.js +3 -2
  332. package/dist/nodes/Chatwoot/resources/macro/update.operation.js.map +1 -1
  333. package/dist/nodes/Chatwoot/resources/message/create.operation.js +89 -9
  334. package/dist/nodes/Chatwoot/resources/message/create.operation.js.map +1 -1
  335. package/dist/nodes/Chatwoot/resources/message/getAll.operation.js +37 -1
  336. package/dist/nodes/Chatwoot/resources/message/getAll.operation.js.map +1 -1
  337. package/dist/nodes/Chatwoot/resources/message/helpers.d.ts +9 -0
  338. package/dist/nodes/Chatwoot/resources/message/helpers.js +57 -0
  339. package/dist/nodes/Chatwoot/resources/message/helpers.js.map +1 -0
  340. package/dist/nodes/Chatwoot/resources/message/index.js +14 -6
  341. package/dist/nodes/Chatwoot/resources/message/index.js.map +1 -1
  342. package/dist/nodes/Chatwoot/resources/message/retry.operation.d.ts +2 -0
  343. package/dist/nodes/Chatwoot/resources/message/retry.operation.js +34 -0
  344. package/dist/nodes/Chatwoot/resources/message/retry.operation.js.map +1 -0
  345. package/dist/nodes/Chatwoot/resources/message/update.operation.js +35 -7
  346. package/dist/nodes/Chatwoot/resources/message/update.operation.js.map +1 -1
  347. package/dist/nodes/Chatwoot/resources/notification/deleteAll.operation.d.ts +2 -0
  348. package/dist/nodes/Chatwoot/resources/notification/deleteAll.operation.js +31 -0
  349. package/dist/nodes/Chatwoot/resources/notification/deleteAll.operation.js.map +1 -0
  350. package/dist/nodes/Chatwoot/resources/notification/getAll.operation.js +3 -3
  351. package/dist/nodes/Chatwoot/resources/notification/getAll.operation.js.map +1 -1
  352. package/dist/nodes/Chatwoot/resources/notification/getSettings.operation.d.ts +2 -0
  353. package/dist/nodes/Chatwoot/resources/notification/getSettings.operation.js +5 -0
  354. package/dist/nodes/Chatwoot/resources/notification/getSettings.operation.js.map +1 -0
  355. package/dist/nodes/Chatwoot/resources/notification/helpers.d.ts +1 -0
  356. package/dist/nodes/Chatwoot/resources/notification/helpers.js +24 -0
  357. package/dist/nodes/Chatwoot/resources/notification/helpers.js.map +1 -0
  358. package/dist/nodes/Chatwoot/resources/notification/index.js +29 -5
  359. package/dist/nodes/Chatwoot/resources/notification/index.js.map +1 -1
  360. package/dist/nodes/Chatwoot/resources/notification/snooze.operation.js +1 -1
  361. package/dist/nodes/Chatwoot/resources/notification/snooze.operation.js.map +1 -1
  362. package/dist/nodes/Chatwoot/resources/notification/updateSettings.operation.d.ts +2 -0
  363. package/dist/nodes/Chatwoot/resources/notification/updateSettings.operation.js +51 -0
  364. package/dist/nodes/Chatwoot/resources/notification/updateSettings.operation.js.map +1 -0
  365. package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js +6 -1
  366. package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js.map +1 -1
  367. package/dist/nodes/Chatwoot/resources/platformAccount/fields.d.ts +5 -0
  368. package/dist/nodes/Chatwoot/resources/platformAccount/fields.js +36 -0
  369. package/dist/nodes/Chatwoot/resources/platformAccount/fields.js.map +1 -0
  370. package/dist/nodes/Chatwoot/resources/platformAccount/getAll.operation.d.ts +2 -0
  371. package/dist/nodes/Chatwoot/resources/platformAccount/getAll.operation.js +5 -0
  372. package/dist/nodes/Chatwoot/resources/platformAccount/getAll.operation.js.map +1 -0
  373. package/dist/nodes/Chatwoot/resources/platformAccount/index.js +12 -4
  374. package/dist/nodes/Chatwoot/resources/platformAccount/index.js.map +1 -1
  375. package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js +6 -1
  376. package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js.map +1 -1
  377. package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js +9 -2
  378. package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js.map +1 -1
  379. package/dist/nodes/Chatwoot/resources/platformUser/getToken.operation.d.ts +2 -0
  380. package/dist/nodes/Chatwoot/resources/platformUser/getToken.operation.js +20 -0
  381. package/dist/nodes/Chatwoot/resources/platformUser/getToken.operation.js.map +1 -0
  382. package/dist/nodes/Chatwoot/resources/platformUser/index.js +13 -5
  383. package/dist/nodes/Chatwoot/resources/platformUser/index.js.map +1 -1
  384. package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js +10 -3
  385. package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js.map +1 -1
  386. package/dist/nodes/Chatwoot/resources/profile/availability.operation.js +1 -1
  387. package/dist/nodes/Chatwoot/resources/profile/availability.operation.js.map +1 -1
  388. package/dist/nodes/Chatwoot/resources/profile/index.js +3 -3
  389. package/dist/nodes/Chatwoot/resources/profile/index.js.map +1 -1
  390. package/dist/nodes/Chatwoot/resources/profile/update.operation.js +30 -4
  391. package/dist/nodes/Chatwoot/resources/profile/update.operation.js.map +1 -1
  392. package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js +19 -4
  393. package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js.map +1 -1
  394. package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js +31 -1
  395. package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js.map +1 -1
  396. package/dist/nodes/Chatwoot/resources/publicContact/identity.d.ts +5 -0
  397. package/dist/nodes/Chatwoot/resources/publicContact/identity.js +29 -0
  398. package/dist/nodes/Chatwoot/resources/publicContact/identity.js.map +1 -0
  399. package/dist/nodes/Chatwoot/resources/publicContact/index.js +3 -3
  400. package/dist/nodes/Chatwoot/resources/publicContact/index.js.map +1 -1
  401. package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js +20 -5
  402. package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js.map +1 -1
  403. package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js +1 -1
  404. package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js.map +1 -1
  405. package/dist/nodes/Chatwoot/resources/publicConversation/csatSurvey.operation.d.ts +2 -0
  406. package/dist/nodes/Chatwoot/resources/publicConversation/csatSurvey.operation.js +55 -0
  407. package/dist/nodes/Chatwoot/resources/publicConversation/csatSurvey.operation.js.map +1 -0
  408. package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js +1 -1
  409. package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js.map +1 -1
  410. package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js +1 -1
  411. package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js.map +1 -1
  412. package/dist/nodes/Chatwoot/resources/publicConversation/index.js +20 -6
  413. package/dist/nodes/Chatwoot/resources/publicConversation/index.js.map +1 -1
  414. package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js +2 -2
  415. package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js.map +1 -1
  416. package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js +1 -1
  417. package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js.map +1 -1
  418. package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js +1 -1
  419. package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js.map +1 -1
  420. package/dist/nodes/Chatwoot/resources/publicInbox/index.d.ts +3 -0
  421. package/dist/nodes/Chatwoot/resources/publicInbox/index.js +25 -0
  422. package/dist/nodes/Chatwoot/resources/publicInbox/index.js.map +1 -0
  423. package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js +11 -4
  424. package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js.map +1 -1
  425. package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js +53 -1
  426. package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js.map +1 -1
  427. package/dist/nodes/Chatwoot/resources/publicMessage/index.js +3 -3
  428. package/dist/nodes/Chatwoot/resources/publicMessage/index.js.map +1 -1
  429. package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js +133 -10
  430. package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js.map +1 -1
  431. package/dist/nodes/Chatwoot/resources/report/helpers.d.ts +24 -0
  432. package/dist/nodes/Chatwoot/resources/report/helpers.js +280 -0
  433. package/dist/nodes/Chatwoot/resources/report/helpers.js.map +1 -0
  434. package/dist/nodes/Chatwoot/resources/report/index.d.ts +5 -0
  435. package/dist/nodes/Chatwoot/resources/report/index.js +285 -86
  436. package/dist/nodes/Chatwoot/resources/report/index.js.map +1 -1
  437. package/dist/nodes/Chatwoot/resources/search/filters.d.ts +2 -0
  438. package/dist/nodes/Chatwoot/resources/search/filters.js +34 -0
  439. package/dist/nodes/Chatwoot/resources/search/filters.js.map +1 -0
  440. package/dist/nodes/Chatwoot/resources/search/index.js +11 -3
  441. package/dist/nodes/Chatwoot/resources/search/index.js.map +1 -1
  442. package/dist/nodes/Chatwoot/resources/search/searchArticles.operation.d.ts +2 -0
  443. package/dist/nodes/Chatwoot/resources/search/searchArticles.operation.js +36 -0
  444. package/dist/nodes/Chatwoot/resources/search/searchArticles.operation.js.map +1 -0
  445. package/dist/nodes/Chatwoot/resources/search/searchContacts.operation.js +3 -1
  446. package/dist/nodes/Chatwoot/resources/search/searchContacts.operation.js.map +1 -1
  447. package/dist/nodes/Chatwoot/resources/search/searchConversations.operation.js +3 -1
  448. package/dist/nodes/Chatwoot/resources/search/searchConversations.operation.js.map +1 -1
  449. package/dist/nodes/Chatwoot/resources/search/searchMessages.operation.js +19 -1
  450. package/dist/nodes/Chatwoot/resources/search/searchMessages.operation.js.map +1 -1
  451. package/dist/nodes/Chatwoot/resources/slaPolicy/index.js +30 -5
  452. package/dist/nodes/Chatwoot/resources/slaPolicy/index.js.map +1 -1
  453. package/dist/nodes/Chatwoot/resources/webhook/create.operation.js +37 -43
  454. package/dist/nodes/Chatwoot/resources/webhook/create.operation.js.map +1 -1
  455. package/dist/nodes/Chatwoot/resources/webhook/events.d.ts +2 -0
  456. package/dist/nodes/Chatwoot/resources/webhook/events.js +66 -0
  457. package/dist/nodes/Chatwoot/resources/webhook/events.js.map +1 -0
  458. package/dist/nodes/Chatwoot/resources/webhook/index.js +3 -3
  459. package/dist/nodes/Chatwoot/resources/webhook/index.js.map +1 -1
  460. package/dist/nodes/Chatwoot/resources/webhook/update.operation.js +24 -14
  461. package/dist/nodes/Chatwoot/resources/webhook/update.operation.js.map +1 -1
  462. package/dist/nodes/Chatwoot/trigger/filters.d.ts +26 -0
  463. package/dist/nodes/Chatwoot/trigger/filters.js +123 -0
  464. package/dist/nodes/Chatwoot/trigger/filters.js.map +1 -0
  465. package/dist/nodes/Chatwoot/trigger/lifecycle.d.ts +31 -0
  466. package/dist/nodes/Chatwoot/trigger/lifecycle.js +166 -0
  467. package/dist/nodes/Chatwoot/trigger/lifecycle.js.map +1 -0
  468. package/dist/nodes/Chatwoot/trigger/redact.d.ts +4 -0
  469. package/dist/nodes/Chatwoot/trigger/redact.js +42 -0
  470. package/dist/nodes/Chatwoot/trigger/redact.js.map +1 -0
  471. package/dist/nodes/Chatwoot/trigger/signature.d.ts +22 -0
  472. package/dist/nodes/Chatwoot/trigger/signature.js +61 -0
  473. package/dist/nodes/Chatwoot/trigger/signature.js.map +1 -0
  474. package/dist/nodes/Chatwoot/trigger/types.d.ts +106 -0
  475. package/dist/nodes/Chatwoot/trigger/types.js +18 -0
  476. package/dist/nodes/Chatwoot/trigger/types.js.map +1 -0
  477. package/package.json +15 -12
  478. package/dist/tsconfig.tsbuildinfo +0 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![n8n community node](https://img.shields.io/badge/n8n-community%20node-orange)](https://docs.n8n.io/integrations/community-nodes/)
7
7
 
8
8
  <p align="center">
9
- <img src="https://raw.githubusercontent.com/RenatoAscencio/n8n-nodes-chatwoot/main/nodes/Chatwoot/chatwoot.svg" alt="Chatwoot Logo" width="120">
9
+ <img src="https://raw.githubusercontent.com/serversmx/n8n-nodes-chatwoot/main/nodes/Chatwoot/chatwoot.svg" alt="Chatwoot Logo" width="120">
10
10
  </p>
11
11
 
12
12
  A comprehensive n8n community node for [Chatwoot](https://www.chatwoot.com/) - the open-source customer engagement platform. Automate your customer support workflows with full access to conversations, messages, contacts, agents, teams, and more.
@@ -17,30 +17,55 @@ A comprehensive n8n community node for [Chatwoot](https://www.chatwoot.com/) - t
17
17
 
18
18
  ## Highlights
19
19
 
20
- - **38 Resources** - Comprehensive coverage of Application, Platform, and Public APIs
21
- - **220+ Operations** - Complete CRUD operations for all resources
20
+ - **39 Resources** - Comprehensive coverage of Application, Platform, and Public APIs
21
+ - **260+ Operations** - Complete CRUD operations for all resources, verified against Chatwoot 4.13–4.18
22
22
  - **3 API Types** - Application API (v1 + v2), Platform API, and Public API support
23
- - **Trigger Node** - Real-time webhook events (10 event types) from Chatwoot
23
+ - **AI Agent Tool** - The Chatwoot node can be attached as a tool to n8n's AI Agent node
24
+ - **Trigger Node** - Account webhooks *or* a manually-configured Agent Bot/API Channel URL, with HMAC signature verification, 12 event types, and delivery filters
25
+ - **Automatic Retries** - Exponential backoff on `429`/`502`/`503`/`504`, honoring `Retry-After`
24
26
  - **Reports v2** - Full coverage of `/api/v2/reports`, `/live_reports`, `/summary_reports`
25
- - **WhatsApp Templates** - Native `template_params` support for template messages
27
+ - **WhatsApp Templates & Attachments** - `template_params` for template messages, binary attachments and voice notes for regular messages
26
28
  - **Dynamic Dropdowns** - Auto-populated lists for agents, teams, inboxes, and labels
27
29
  - **Smart Pagination** - Automatic handling with "Return All" option
28
30
  - **Reports & Analytics** - Access conversation and agent statistics
29
31
  - **Help Center** - Manage portals, categories, and articles
30
- - **Detailed Error Messages** - Clear feedback for troubleshooting
32
+ - **Detailed Error Messages** - Chatwoot's own error message and description, not a generic one
33
+
34
+ ## Screenshots
35
+
36
+ Taken in n8n 2.40.7 with the example workflows in [`examples/workflows`](examples/workflows) (sample data is fictional and pinned, so you can open them without a Chatwoot server).
37
+
38
+ **WhatsApp auto-triage** — the trigger filters incoming messages, then the node labels the conversation and replies:
39
+
40
+ ![WhatsApp auto-triage workflow](assets/screenshots/workflow-whatsapp-auto-triage.png)
41
+
42
+ | Chatwoot Trigger: events, filters and signature verification | Message › Create with the pinned output |
43
+ |---|---|
44
+ | ![Chatwoot Trigger parameters](assets/screenshots/trigger-signature-filters.png) | ![Message create](assets/screenshots/message-create.png) |
45
+
46
+ | AI Agent with Chatwoot tools (`$fromAI`) | Report › Account Summary |
47
+ |---|---|
48
+ | ![AI Agent using Chatwoot tools](assets/screenshots/workflow-ai-agent-tools.png) | ![Account summary report](assets/screenshots/report-account-summary.png) |
31
49
 
32
50
  ---
33
51
 
34
52
  ## Table of Contents
35
53
 
54
+ - [Screenshots](#screenshots)
36
55
  - [Installation](#installation)
37
56
  - [Configuration](#configuration)
38
57
  - [Nodes](#nodes)
39
58
  - [Chatwoot Node](#chatwoot-node)
40
59
  - [Chatwoot Trigger](#chatwoot-trigger)
41
60
  - [Resources & Operations](#resources--operations)
61
+ - [Trigger Reference](#trigger-reference)
62
+ - [Using the Chatwoot Node as an AI Agent Tool](#using-the-chatwoot-node-as-an-ai-agent-tool)
63
+ - [Using with Evolution API (WhatsApp)](#using-with-evolution-api-whatsapp)
64
+ - [Compatibility](#compatibility)
42
65
  - [Usage Examples](#usage-examples)
43
66
  - [Troubleshooting](#troubleshooting)
67
+ - [Development](#development)
68
+ - [Release Process](#release-process)
44
69
  - [Contributing](#contributing)
45
70
  - [License](#license)
46
71
 
@@ -48,6 +73,12 @@ A comprehensive n8n community node for [Chatwoot](https://www.chatwoot.com/) - t
48
73
 
49
74
  ## Installation
50
75
 
76
+ > **n8n 3.0 (October 2026)**: unverified community packages are disabled by default
77
+ > (`N8N_UNVERIFIED_PACKAGES_ENABLED` defaults to `false`, down from `true` on 2.x). Until this
78
+ > package is verified by n8n, set `N8N_UNVERIFIED_PACKAGES_ENABLED=true` on your n8n instance to
79
+ > keep installing or updating it — otherwise the install fails and n8n 3.0 also refuses to load an
80
+ > already-installed unverified package. This has no effect on n8n 2.x.
81
+
51
82
  ### Community Nodes (Recommended)
52
83
 
53
84
  1. Go to **Settings > Community Nodes** in your n8n instance
@@ -119,12 +150,21 @@ Used for platform-level operations - managing accounts, platform users, and acco
119
150
 
120
151
  ### 3. Chatwoot Public API
121
152
 
122
- Used for client-side/widget operations - creating contacts and conversations from external sources.
153
+ Used for client-side operations without an agent login: creating contacts, starting conversations,
154
+ and sending messages from an external system. **The Public API only works with API channel inboxes**
155
+ (`Channel::Api`) — this is the inbox type Evolution API and other WhatsApp bridges create, and the
156
+ one you get from Chatwoot's **Inboxes > Add Inbox > API**. Website (web widget), Email, Telegram and
157
+ other inbox types answer 404 for every Public API call.
123
158
 
124
159
  | Field | Description | Example |
125
160
  |-------|-------------|---------|
126
161
  | **Base URL** | Your Chatwoot instance URL | `https://app.chatwoot.com` |
127
- | **Inbox Identifier** | The unique identifier for your inbox | Found in inbox settings (e.g., `abc123xyz`) |
162
+ | **Inbox Identifier** | The API inbox's identifier (a random token, not the numeric inbox ID) | Settings → Inboxes → your inbox → Configuration |
163
+ | **HMAC Token** | Optional. The inbox's identity validation secret (Configuration → Identity Validation) | Only needed if the inbox enforces identity validation |
164
+
165
+ When **HMAC Token** is set, Public Contact operations compute `identifier_hash` automatically for
166
+ any contact created or updated with an **Identifier**, which an inbox enforcing identity validation
167
+ requires — otherwise Chatwoot rejects the request.
128
168
 
129
169
  > **Note**: Keep your API tokens secure. They provide access to your Chatwoot account.
130
170
 
@@ -141,19 +181,9 @@ The main node for interacting with Chatwoot APIs. Supports 38 resources across t
141
181
 
142
182
  ### Chatwoot Trigger
143
183
 
144
- Webhook-based trigger that starts workflows when events occur in Chatwoot. Automatically registers and manages webhooks in your Chatwoot account.
145
-
146
- **Supported Events (10 total):**
147
- - `contact_created` - New contact added
148
- - `contact_updated` - Contact information changed
149
- - `conversation_created` - New conversation started
150
- - `conversation_status_changed` - Status changed (open/resolved/pending/snoozed)
151
- - `conversation_typing_off` - Typing indicator stopped
152
- - `conversation_typing_on` - Typing indicator started
153
- - `conversation_updated` - Conversation modified
154
- - `message_created` - New message sent or received
155
- - `message_updated` - Message edited
156
- - `webwidget_triggered` - Web widget interaction
184
+ Webhook-based trigger that starts workflows when events occur in Chatwoot. See
185
+ [Trigger Reference](#trigger-reference) below for the full reference: sources, signature
186
+ verification, events and filters.
157
187
 
158
188
  ---
159
189
 
@@ -205,9 +235,11 @@ Full contact management with search and merge capabilities.
205
235
  | **Get Conversations** | List all conversations for a contact |
206
236
  | **Merge** | Merge two contacts into one |
207
237
  | **Filter** | Filter contacts with advanced criteria |
208
- | **Add Labels** | Add labels to a contact |
238
+ | **Add Labels** | Add labels to a contact, keeping its existing ones |
239
+ | **Remove Labels** | Remove labels from a contact, keeping the rest |
240
+ | **Set Labels** | Replace all of a contact's labels with the given list (an empty list clears them) — this is the original v0.8.3 "Add Labels" behavior, kept under its original parameter value for saved workflows |
209
241
  | **List Labels** | Get all labels for a contact |
210
- | **Import** | Import contacts from CSV file (binary upload) |
242
+ | **Import** | Import contacts from a CSV file (multipart binary upload) |
211
243
  | **Export** | Export contacts as CSV |
212
244
  | **Contactable Inboxes** | Get inboxes that can reach a contact |
213
245
 
@@ -222,12 +254,14 @@ Manage customer conversations with assignment and labeling.
222
254
  | **Create** | Create a new conversation |
223
255
  | **Update Status** | Change status to open, resolved, pending, or snoozed |
224
256
  | **Update** | Update conversation (custom attributes, team, etc.) |
225
- | **Assign** | Assign to an agent or team (with dynamic dropdowns) |
226
- | **Add Labels** | Set labels on a conversation |
257
+ | **Assign** | Assign to an agent, a team, an Agent Bot, or a Captain (AI) Assistant |
258
+ | **Add Labels** | Add labels to a conversation, keeping its existing ones |
259
+ | **Remove Labels** | Remove labels from a conversation, keeping the rest |
260
+ | **Set Labels** | Replace all of a conversation's labels with the given list — this is the original v0.8.3 "Add Labels" behavior, kept under its original parameter value for saved workflows |
227
261
  | **List Labels** | Get all labels for a conversation |
228
262
  | **Toggle Priority** | Set conversation priority (urgent, high, medium, low, none) |
229
263
  | **Filter** | Filter conversations with advanced criteria |
230
- | **Update Custom Attributes** | Set custom attributes on conversation |
264
+ | **Update Custom Attributes** | Set custom attributes on a conversation. **Merge With Existing** (off by default, matching v0.8.3) merges into the current attributes instead of replacing them (Chatwoot 4.17+) |
231
265
  | **Get Meta** | Get conversation metadata |
232
266
  | **Mute** | Mute a conversation |
233
267
  | **Unmute** | Unmute a conversation |
@@ -260,6 +294,7 @@ Manage communication channels.
260
294
  | **Update** | Modify inbox settings (name, greeting, auto-assignment, etc.) |
261
295
  | **Add Agent** | Add an agent to an inbox |
262
296
  | **Delete Agent** | Remove an agent from an inbox |
297
+ | **Update Agents** | Replace the inbox's whole agent list in one call |
263
298
  | **Get Members** | List inbox members |
264
299
  | **Get Agent Bot** | Get associated agent bot |
265
300
  | **Set Agent Bot** | Associate an agent bot with inbox |
@@ -281,12 +316,15 @@ Send and retrieve messages in conversations.
281
316
 
282
317
  | Operation | Description |
283
318
  |-----------|-------------|
284
- | **Create** | Send a message (supports private notes, WhatsApp template params, content_attributes) |
319
+ | **Create** | Send a message: text, private notes, WhatsApp template params, attachments (from binary properties, sent as `multipart/form-data`), an audio attachment as a voice message, or `content_attributes` |
285
320
  | **Get Many** | Retrieve message history with cursor-based pagination |
286
- | **Update** | Update an existing message |
321
+ | **Update Delivery Status** | Set a message's delivery status (Sent/Delivered/Read/Failed) — Chatwoot's inbox-API endpoint only updates status, not content |
322
+ | **Retry** | Resend a failed outgoing message |
287
323
  | **Delete** | Delete a message |
288
324
 
289
325
  > **WhatsApp template messages** (since v0.8.1): use the `template_params` JSON option with format `{"name": "template_name", "category": "MARKETING|UTILITY|AUTHENTICATION", "language": "en_US", "processed_params": {"1": "value1", "2": "value2"}}`.
326
+ >
327
+ > **Attachments** (since v0.9.0): add one or more binary properties from a previous node (e.g. an HTTP Request or Read Binary File output) to **Attachments (Binary Properties)** as a comma-separated list. Turn on **Send Audio as Voice Message** to send an audio attachment as a Chatwoot voice note.
290
328
 
291
329
  ### Team
292
330
 
@@ -353,7 +391,7 @@ Manage saved filters for conversations and contacts.
353
391
 
354
392
  ### Report
355
393
 
356
- Access analytics and reporting data via Chatwoot's `/api/v2/reports` endpoints. **Now correctly routed through v2** (was broken in v0.3.0–v0.7.x — see [v0.8.0 release notes](https://github.com/RenatoAscencio/n8n-nodes-chatwoot/releases/tag/v0.8.0)).
394
+ Access analytics and reporting data via Chatwoot's `/api/v2/reports` endpoints. **Now correctly routed through v2** (was broken in v0.3.0–v0.7.x — see [v0.8.0 release notes](https://github.com/serversmx/n8n-nodes-chatwoot/releases/tag/v0.8.0)).
357
395
 
358
396
  | Operation | Description |
359
397
  |-----------|-------------|
@@ -608,7 +646,8 @@ These resources require the **Chatwoot Public API** credential.
608
646
 
609
647
  ### Public Contact
610
648
 
611
- Manage contacts via the public API.
649
+ Manage contacts via the public API. When the credential's **HMAC Token** is set, Create and Update
650
+ compute `identifier_hash` automatically for a contact sent with an **Identifier**.
612
651
 
613
652
  | Operation | Description |
614
653
  |-----------|-------------|
@@ -625,6 +664,8 @@ Manage conversations via the public API.
625
664
  | **Create** | Create a conversation via public API |
626
665
  | **Get** | Retrieve a conversation |
627
666
  | **Get Many** | List all conversations for a contact |
667
+ | **Get CSAT Survey** | Get the CSAT survey for a conversation, by its UUID |
668
+ | **Submit CSAT Survey** | Submit a rating (and optional feedback) for a CSAT survey |
628
669
  | **Resolve** | Resolve/toggle conversation status |
629
670
  | **Toggle Typing** | Show typing indicator |
630
671
  | **Update Last Seen** | Mark messages as seen |
@@ -635,14 +676,182 @@ Manage messages via the public API.
635
676
 
636
677
  | Operation | Description |
637
678
  |-----------|-------------|
638
- | **Create** | Send a message via public API |
639
- | **Get Many** | List messages in a conversation |
640
- | **Update** | Update a message |
679
+ | **Create** | Send a message via public API, optionally with attachments |
680
+ | **Get Many** | List messages in a conversation, with cursor-based pagination (previously capped at the last 20 messages) |
681
+ | **Update** | Update a message's `submitted_values` (the answer to a form/input message) |
682
+
683
+ ### [Public] Inbox
684
+
685
+ Read the public settings of the credential's API inbox — no side effects.
686
+
687
+ | Operation | Description |
688
+ |-----------|-------------|
689
+ | **Get** | Get the inbox's name, timezone, working hours, and whether CSAT surveys, greetings and identity validation are enabled |
690
+
691
+ ---
692
+
693
+ ## Trigger Reference
694
+
695
+ The Chatwoot Trigger has two delivery **Source**s. Both verify Chatwoot's HMAC signature by default.
696
+
697
+ ### Account Webhook (Automatic) — the default
698
+
699
+ n8n creates a Chatwoot account webhook for this trigger's URL when the workflow is activated,
700
+ stores its signing secret, and deletes the webhook when the workflow is deactivated. This needs an
701
+ administrator API access token (on Chatwoot Cloud, a plan with API and webhooks). Reactivating the
702
+ workflow, or renaming it, reuses or re-adopts the existing webhook instead of creating a duplicate.
703
+
704
+ **Events:** Contact Created/Updated, Conversation Created/Updated/Status Changed, Conversation
705
+ Typing On/Off, Inbox Created/Updated (only sent when the Chatwoot server sets
706
+ `ENABLE_INBOX_EVENTS`), Message Created/Updated, Webwidget Triggered.
707
+
708
+ ### Agent Bot / API Channel (Manual URL)
709
+
710
+ Paste this trigger's Production URL (or the Test URL while testing) directly into an **Agent
711
+ Bot**'s Webhook URL (Settings > Bots), an **API Channel inbox**'s Webhook URL (Settings > Inboxes >
712
+ the inbox > Settings — this is the inbox type Evolution API creates), or a webhook you manage by
713
+ hand in Settings > Integrations > Webhooks. n8n registers nothing in Chatwoot for this source; you
714
+ provide the **Signing Secret** yourself (Chatwoot shows it as `secret` on the agent bot or inbox,
715
+ or when you create a webhook). Do not use this source's URL as an account webhook target, and don't
716
+ use the Account Webhook source's URL as an agent bot/API channel target — each signs with its own
717
+ secret and Chatwoot rejects the other with HTTP 401.
718
+
719
+ This source has its own, larger event list, since agent bots, API channels and account webhooks
720
+ each fire a different subset: it adds **Conversation Opened** and **Conversation Resolved**
721
+ (agent-bot handoff events, not available on the Account Webhook source), and leaves out events an
722
+ agent bot or API channel never sends (Contact Created/Updated, Inbox Created/Updated). An error
723
+ response from this workflow (inactive workflow, invalid signature) makes Chatwoot mark the delivery
724
+ as failed — for an agent bot, pending conversations move back to Open unless the account keeps them
725
+ pending on bot failure.
726
+
727
+ ### Signature verification and options
728
+
729
+ | Option | Default | Notes |
730
+ |--------|---------|-------|
731
+ | **Verify Signature** | On | Rejects deliveries whose `X-Chatwoot-Signature`/`X-Chatwoot-Timestamp` don't match the signing secret. Turn off only for a server that never signs its requests (no secret configured). |
732
+ | **Signature Tolerance (Seconds)** | 300 | How far a delivery's timestamp may drift before it's rejected as stale/replayed. |
733
+ | **Include Raw Body** | Off | Adds `rawBody` as the parsed JSON object — the v0.8.3 behavior, since that version always included it. |
734
+ | **Include Raw Body Text** | Off | Adds `rawBodyText`: the exact bytes Chatwoot signed, for verifying the signature yourself further downstream. |
735
+ | **Redact Channel Secrets** | On | Strips channel credentials from Inbox Created/Updated payloads before they reach the workflow. |
736
+ | **Include Delivery Info** | Off | Adds delivery metadata (source, whether the signature was verified, retry count). |
737
+
738
+ ### Filters
739
+
740
+ Filters apply after the event-type check and narrow which matching events actually start the
741
+ workflow (everything else is answered `200 OK` and ignored, so Chatwoot doesn't retry it):
742
+
743
+ - **Inbox IDs** — only these inboxes.
744
+ - **Sender Types** — Contact / Agent / Agent Bot.
745
+ - **Message Types** — Incoming / Outgoing / Template / Activity.
746
+ - **Private Notes** — include, exclude, or only private notes.
747
+ - **Ignore Messages From User IDs** — drop messages sent by specific agent/bot user IDs (for
748
+ example, to stop a workflow from reacting to its own replies).
749
+ - **Ignore Outgoing WhatsApp Echoes (Evolution API)** — Evolution API relays every outbound message
750
+ back to Chatwoot as its own `message_created` event; turn this on to drop those echoes so the
751
+ trigger only fires for messages that didn't originate from this same workflow.
752
+
753
+ ### SafeFetch (Chatwoot 4.14+)
754
+
755
+ Chatwoot 4.14 and later only deliver webhooks to publicly-routable addresses (its anti-SSRF
756
+ "SafeFetch" filter). If Chatwoot can only reach this n8n instance through a private address (a
757
+ Docker service name, `localhost`, `10.x`, `172.16–31.x`, `192.168.x`), every delivery is dropped
758
+ **silently** — Chatwoot logs "Invalid webhook URL" on its side and n8n never receives anything.
759
+ Set `SAFE_FETCH_ALLOW_PRIVATE_NETWORK=true` on the Chatwoot server (available since 4.14.1) to
760
+ allow it. The trigger node shows a notice about this when its computed webhook URL looks private.
761
+
762
+ ---
763
+
764
+ ## Using the Chatwoot Node as an AI Agent Tool
765
+
766
+ The Chatwoot node declares `usableAsTool: true`, so it can be connected to the **Tool** input of an
767
+ **AI Agent** node (or any other node that accepts sub-node tools) instead of only running as a
768
+ regular workflow step. Connect it like any other tool sub-node, then either:
769
+
770
+ - Pin **Resource** and **Operation** and let the agent fill in the remaining parameters (for
771
+ example, always **Message > Create** on a fixed conversation, letting the model write the
772
+ **Content**), or
773
+ - Set the node's parameters to expressions the model fills in through the tool's schema, for a more
774
+ general-purpose tool (e.g. "search contacts", "create a conversation", "add a label").
775
+
776
+ Every operation the node otherwise supports is available this way — there's no separate "AI tool"
777
+ mode. The usual guidance for tool-enabled community nodes applies: keep the exposed surface to the
778
+ handful of operations the agent actually needs (one Chatwoot node per operation is easier for a
779
+ model to use reliably than one node with 39 resources and 230+ operations all exposed at once).
780
+
781
+ ---
782
+
783
+ ## Using with Evolution API (WhatsApp)
784
+
785
+ [Evolution API](https://github.com/EvolutionAPI/evolution-api) is a common way to connect WhatsApp
786
+ to Chatwoot: it creates an **API channel inbox** (`Channel::Api`) in Chatwoot and relays messages
787
+ both ways. A few things behave differently for these inboxes compared to a native Chatwoot channel:
788
+
789
+ - **Contact identifier is the JID.** For a WhatsApp contact created through Evolution, the
790
+ contact's `identifier` is the WhatsApp JID (e.g. `5215512345678@s.whatsapp.net`), not an
791
+ arbitrary ID from your own CRM. Search and merge operations that match on `identifier` need the
792
+ JID, not a customer/CRM ID.
793
+ - **Typing indicators aren't relayed to WhatsApp.** Chatwoot's Conversation > Toggle Typing calls
794
+ the standard API-channel typing endpoint, but Evolution doesn't forward
795
+ `conversation_typing_on`/`off` to the WhatsApp client, so the contact never sees a "typing…"
796
+ indicator, even though the call itself succeeds.
797
+ - **Outbound-message echoes.** Evolution can relay a message n8n just sent back into Chatwoot as
798
+ its own incoming `message_created` webhook event, which would otherwise make an
799
+ "auto-reply" trigger workflow fire on its own replies. Turn on the Chatwoot Trigger's
800
+ **Ignore Outgoing WhatsApp Echoes (Evolution API)** filter to drop these.
801
+ - **Attachments.** Use Message > Create's **Attachments (Binary Properties)** field to send images,
802
+ documents or audio; turn on **Send Audio as Voice Message** for a WhatsApp voice note instead of
803
+ a regular audio attachment.
804
+ - **Use the Public API for contact-facing automations** (for example, a bot that creates
805
+ conversations or messages as the contact rather than as an agent): it only works with API channel
806
+ inboxes, which is exactly what Evolution creates — see [Chatwoot Public API](#3-chatwoot-public-api) above.
807
+ - Chatwoot 4.14+'s SafeFetch also applies to the webhook Evolution itself receives from
808
+ Chatwoot and to the Chatwoot Trigger's own URL — see [SafeFetch](#safefetch-chatwoot-414) above
809
+ if messages stop arriving after a Chatwoot upgrade.
810
+
811
+ This package does not include an Evolution API node; use n8n's **HTTP Request** node (or a
812
+ dedicated Evolution community node) for Evolution's own endpoints (sending messages directly,
813
+ managing instances, etc.) alongside this node for the Chatwoot side of the integration.
814
+
815
+ ---
816
+
817
+ ## Compatibility
818
+
819
+ | | Supported | Notes |
820
+ |---|---|---|
821
+ | **Chatwoot** | 4.13 – 4.18 | Verified against each version's documented API behavior. Some operations require an Enterprise license or a specific account feature flag (noted in their description) — Chatwoot answers 401/403 for those on Community Edition or when the feature is off. |
822
+ | **n8n** | 2.x | Works on current n8n 2.x releases. |
823
+ | **n8n 3.0** | Not verified yet | Unverified community packages are disabled by default in n8n 3.0 (planned October 2026) — set `N8N_UNVERIFIED_PACKAGES_ENABLED=true` until this package is verified. See [Installation](#installation). |
824
+ | **Node.js** | \>= 18 | Matches the `engines.node` requirement in `package.json`. |
825
+
826
+ Version-specific behavior worth knowing about:
827
+
828
+ - **Chatwoot 4.14+**: SafeFetch blocks webhook deliveries to private-network addresses (see
829
+ [SafeFetch](#safefetch-chatwoot-414)); Custom Attribute Create/Update/Delete require an
830
+ administrator token (an agent token used to work).
831
+ - **Chatwoot 4.17+**: Update Custom Attributes on a conversation supports merging instead of
832
+ replacing (**Merge With Existing** option).
833
+ - **Chatwoot 4.18**: Toggle Priority / Update's priority field rejects an explicit "none" value
834
+ with 422 (older versions 500'd); the node sends no `priority` at all to clear it.
835
+ - **Company, SLA Policy and Applied SLA** resources need Chatwoot Enterprise, and specifically the
836
+ account's `companies`/`sla` feature flags — a Community Edition or unlicensed account gets 403.
641
837
 
642
838
  ---
643
839
 
644
840
  ## Usage Examples
645
841
 
842
+ ### Ready-to-import workflows
843
+
844
+ Download a file from [`examples/workflows`](examples/workflows) and import it in n8n (**Workflows → Import from File**), then select your own credentials in each node.
845
+
846
+ | File | What it does |
847
+ |---|---|
848
+ | [`whatsapp-auto-triage.json`](examples/workflows/whatsapp-auto-triage.json) | Chatwoot Trigger (incoming messages only, signature verified) → IF the customer asks for prices → append the `ventas` label → reply with the price list |
849
+ | [`ai-agent-chatwoot-tool.json`](examples/workflows/ai-agent-chatwoot-tool.json) | AI Agent that uses the Chatwoot node as three tools (find conversations, add labels, reply) with `$fromAI()` parameters |
850
+ | [`daily-account-summary.json`](examples/workflows/daily-account-summary.json) | Every morning, fetch yesterday's Account Summary report and format a one-line summary |
851
+ | [`basic-conversation-workflow.json`](examples/workflows/basic-conversation-workflow.json) | List open conversations |
852
+ | [`contact-sync-workflow.json`](examples/workflows/contact-sync-workflow.json) | Search a contact by email, then update it or create it |
853
+ | [`send-message-workflow.json`](examples/workflows/send-message-workflow.json) | Send a message and set the conversation to pending |
854
+
646
855
  ### Auto-Reply to New Conversations
647
856
 
648
857
  ```
@@ -765,28 +974,91 @@ This node uses three Chatwoot APIs:
765
974
 
766
975
  ---
767
976
 
768
- ## Contributing
769
-
770
- Contributions are welcome! See [CLAUDE.md](./CLAUDE.md) for development guidelines.
977
+ ## Development
771
978
 
772
979
  ```bash
773
980
  # Clone and setup
774
- git clone https://github.com/RenatoAscencio/n8n-nodes-chatwoot.git
981
+ git clone https://github.com/serversmx/n8n-nodes-chatwoot.git
775
982
  cd n8n-nodes-chatwoot
776
983
  npm install
777
984
 
778
- # Development
779
- npm run build # Compile TypeScript
780
- npm run lint # Check code style
781
- npm run lint:fix # Auto-fix issues
782
- npm test # Run tests
783
- npm run format # Format with Prettier
985
+ npx tsc --noEmit # Type-check
986
+ npm run lint # ESLint 8, TypeScript style + n8n-nodes-base rules
987
+ npm run lint:n8n # n8n community-node verification lint (@n8n/eslint-plugin-community-nodes)
988
+ npm test # Jest unit tests
989
+ npm run build # Compile to dist/ and copy icons + codex files
784
990
 
785
991
  # Link for local testing
786
992
  npm link
787
993
  cd ~/.n8n/nodes && npm link @renatoascencio/n8n-nodes-chatwoot
788
994
  ```
789
995
 
996
+ ### Tests
997
+
998
+ The test suite (1007 tests, 12 suites) is entirely offline — it never calls a real Chatwoot
999
+ instance. `test/helpers/mockExecuteFunctions.ts` builds a mock `IExecuteFunctions`/
1000
+ `ILoadOptionsFunctions`/`IHookFunctions`/`IWebhookFunctions` context whose `httpRequest` helper
1001
+ returns pre-programmed responses (or throws a shaped HTTP error), so each test exercises the real
1002
+ `execute()` code path — parameter reading, request construction, response handling, pagination and
1003
+ error mapping — for one resource/operation at a time. `test/exec.*.test.ts` cover the Application/
1004
+ Platform/Public API resources by area, `test/exec.trigger.test.ts` covers the Chatwoot Trigger's
1005
+ webhook lifecycle and signature verification, `test/Resources.test.ts` validates every resource's
1006
+ operation/field definitions (naming, `displayOptions`, alphabetical ordering), and
1007
+ `test/review.*.test.ts` lock in the specific behaviors called out in the Changelog's "Changed"
1008
+ section (compatibility defaults, label semantics, etc.) so a future change can't silently regress
1009
+ them.
1010
+
1011
+ ### n8n verification lint
1012
+
1013
+ `npm run lint:n8n` runs `@n8n/eslint-plugin-community-nodes`'s `recommended` rule set (ESLint 9,
1014
+ flat config only — that's why it's a separate `eslint.n8n.config.mjs` and script from the ESLint 8
1015
+ `.eslintrc.js`/`npm run lint` pair) against `nodes/`, `credentials/` and `package.json`. It's the
1016
+ same static analysis n8n's own community-node verification checks for. See the CI workflow
1017
+ (`.github/workflows/ci.yml`) and the handful of documented, narrowly-scoped `eslint-disable`
1018
+ comments in the source for the small number of findings that don't apply to this codebase (for
1019
+ example, a rule that assumes every thrown error might be unwrapped, when this package's single
1020
+ request layer already guarantees every error reaching a resource is a `NodeApiError`).
1021
+
1022
+ ---
1023
+
1024
+ ## Release Process
1025
+
1026
+ Releases are tag-triggered and publish with npm provenance, per n8n's community-node verification
1027
+ requirement (mandatory since May 1, 2026: publish via a GitHub Action and include a
1028
+ [provenance statement](https://docs.npmjs.com/generating-provenance-statements)).
1029
+
1030
+ 1. Update `version` in `package.json` and add an entry to `CHANGELOG.md`.
1031
+ 2. Open a PR; `.github/workflows/ci.yml` runs type-checking, both lints, the test suite and the
1032
+ build on every push and PR.
1033
+ 3. Once merged to `main`, tag the release and push the tag:
1034
+
1035
+ ```bash
1036
+ git tag v0.9.0
1037
+ git push origin v0.9.0
1038
+ ```
1039
+
1040
+ 4. `.github/workflows/publish.yml` runs on the `v*` tag: `npm ci`, `npm test`, `npm run build`,
1041
+ then `npm publish --provenance --access public`.
1042
+
1043
+ **Authentication**: this repository publishes using npm's **Trusted Publishing (OIDC)** — the
1044
+ workflow requests an `id-token: write` permission and npm exchanges it for a short-lived publish
1045
+ token, so no `NPM_TOKEN` secret is stored in the repository. This needs a one-time setup on
1046
+ npmjs.com: on the package's page, **Settings → Trusted Publishers → Add a trusted publisher →
1047
+ GitHub Actions**, with this repository and `publish.yml` as the workflow filename. If you fork this
1048
+ repository and want to publish your own version, either configure Trusted Publishing for your fork
1049
+ the same way, or replace the last step of `publish.yml` with the classic
1050
+ `NPM_TOKEN`/`.npmrc` approach and add `NPM_TOKEN` as a repository secret.
1051
+
1052
+ ---
1053
+
1054
+ ## Contributing
1055
+
1056
+ Contributions are welcome. See [CLAUDE.md](./CLAUDE.md) for the architecture and conventions this
1057
+ package follows (resource/operation layout, the shared request layer, compatibility options, and
1058
+ how the test harness works), and the [Development](#development) section above to get set up.
1059
+ Please add or update tests for any behavior change, and run the full check list
1060
+ (`npx tsc --noEmit && npm run lint && npm run lint:n8n && npm test`) before opening a PR.
1061
+
790
1062
  ---
791
1063
 
792
1064
  ## Changelog
@@ -803,7 +1075,7 @@ See [CHANGELOG.md](./CHANGELOG.md) for release history.
803
1075
 
804
1076
  ## Support
805
1077
 
806
- - **Issues**: [GitHub Issues](https://github.com/RenatoAscencio/n8n-nodes-chatwoot/issues)
1078
+ - **Issues**: [GitHub Issues](https://github.com/serversmx/n8n-nodes-chatwoot/issues)
807
1079
  - **Chatwoot Docs**: [chatwoot.com/developers](https://www.chatwoot.com/developers/api/)
808
1080
  - **n8n Community**: [community.n8n.io](https://community.n8n.io/)
809
1081
 
@@ -1,7 +1,8 @@
1
- import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
2
2
  export declare class ChatwootApi implements ICredentialType {
3
3
  name: string;
4
4
  displayName: string;
5
+ icon: Icon;
5
6
  documentationUrl: string;
6
7
  properties: INodeProperties[];
7
8
  authenticate: IAuthenticateGeneric;
@@ -5,6 +5,7 @@ class ChatwootApi {
5
5
  constructor() {
6
6
  this.name = 'chatwootApi';
7
7
  this.displayName = 'Chatwoot API';
8
+ this.icon = { light: 'file:../nodes/Chatwoot/chatwoot.svg', dark: 'file:../nodes/Chatwoot/chatwoot.svg' };
8
9
  this.documentationUrl = 'https://www.chatwoot.com/developers/api/';
9
10
  this.properties = [
10
11
  {
@@ -35,9 +36,39 @@ class ChatwootApi {
35
36
  password: true,
36
37
  },
37
38
  default: '',
38
- description: 'Your API Access Token from Chatwoot. Go to Profile Settings → Access Token to generate or copy your token',
39
+ description: 'User token: Chatwoot → Profile Settings → Access Token. Agent bot token: Settings → Bots → the bot access token (visible to administrators), or the access_token returned by the Platform API.',
39
40
  required: true,
40
41
  },
42
+ {
43
+ displayName: 'Token Type',
44
+ name: 'tokenType',
45
+ type: 'options',
46
+ options: [
47
+ {
48
+ name: 'Agent Bot Access Token',
49
+ value: 'agentBot',
50
+ description: 'Token of an agent bot: Chatwoot lets bots call only a few conversation endpoints',
51
+ },
52
+ {
53
+ name: 'User Access Token',
54
+ value: 'user',
55
+ description: 'Token of an agent or administrator: every operation the user is allowed to perform',
56
+ },
57
+ ],
58
+ default: 'user',
59
+ description: 'Kind of access token. It only changes how the connection is tested: requests are sent the same way.',
60
+ },
61
+ {
62
+ displayName: 'Agent bot tokens only work with: Conversation > Create, Update, Update Status, Toggle Priority, Toggle Typing, Update Custom Attributes and Assign; Conversation > Get, List Labels and Add Labels (Chatwoot 4.17+); Message > Create. Any other operation answers 401 "Access to this endpoint is not authorized for bots". The bot must belong to this account or be connected to one of its inboxes.',
63
+ name: 'agentBotNotice',
64
+ type: 'notice',
65
+ default: '',
66
+ displayOptions: {
67
+ show: {
68
+ tokenType: ['agentBot'],
69
+ },
70
+ },
71
+ },
41
72
  ];
42
73
  this.authenticate = {
43
74
  type: 'generic',
@@ -50,12 +81,63 @@ class ChatwootApi {
50
81
  this.test = {
51
82
  request: {
52
83
  baseURL: '={{$credentials.baseUrl.replace(/\\/$/, "")}}',
53
- url: '=/api/v1/accounts/{{$credentials.accountId}}/conversations',
84
+ url: '=/api/v1/accounts/{{$credentials.accountId}}/conversations{{$credentials.tokenType === "agentBot" ? "/0" : ""}}',
54
85
  method: 'GET',
55
86
  qs: {
56
87
  page: 1,
57
88
  },
89
+ ignoreHttpStatusErrors: '={{$credentials.tokenType === "agentBot"}}',
58
90
  },
91
+ rules: [
92
+ {
93
+ type: 'responseSuccessBody',
94
+ properties: {
95
+ key: 'error',
96
+ value: 'Invalid Access Token',
97
+ message: 'Invalid access token: Chatwoot does not know this token',
98
+ },
99
+ },
100
+ {
101
+ type: 'responseSuccessBody',
102
+ properties: {
103
+ key: 'error',
104
+ value: 'Bot is not authorized to access this account',
105
+ message: 'The agent bot does not belong to this account and is not connected to any of its inboxes: check the Account ID',
106
+ },
107
+ },
108
+ {
109
+ type: 'responseSuccessBody',
110
+ properties: {
111
+ key: 'error',
112
+ value: 'Access to this endpoint is not authorized for bots',
113
+ message: 'The agent bot token is valid, but this Chatwoot version does not let bots read conversations (4.17 and later do), so the connection cannot be tested. The credential still works for the operations bots may use (e.g. Message > Create).',
114
+ },
115
+ },
116
+ {
117
+ type: 'responseSuccessBody',
118
+ properties: {
119
+ key: 'error',
120
+ value: 'You are not authorized to access this account',
121
+ message: 'This token cannot access the account: check the Account ID',
122
+ },
123
+ },
124
+ {
125
+ type: 'responseSuccessBody',
126
+ properties: {
127
+ key: 'error',
128
+ value: 'Account is suspended',
129
+ message: 'The Chatwoot account is suspended',
130
+ },
131
+ },
132
+ {
133
+ type: 'responseSuccessBody',
134
+ properties: {
135
+ key: 'error',
136
+ value: 'API access is not enabled for this account',
137
+ message: 'API access is not enabled for this account (Chatwoot Cloud plan setting)',
138
+ },
139
+ },
140
+ ],
59
141
  };
60
142
  }
61
143
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ChatwootApi.credentials.js","sourceRoot":"","sources":["../../credentials/ChatwootApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACE,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,0CAA0C,CAAC;QAC9D,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,0BAA0B;gBACnC,WAAW,EAAE,0BAA0B;gBACvC,WAAW,EACT,mKAAmK;gBACrK,QAAQ,EAAE,IAAI;aACf;YACD;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EACT,qJAAqJ;gBACvJ,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE;oBACX,QAAQ,EAAE,CAAC;iBACZ;aACF;YACD;gBACE,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACX,QAAQ,EAAE,IAAI;iBACf;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EACT,2GAA2G;gBAC7G,QAAQ,EAAE,IAAI;aACf;SACF,CAAC;QAEF,iBAAY,GAAyB;YACnC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,gBAAgB,EAAE,kCAAkC;iBACrD;aACF;SACF,CAAC;QAEF,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,+CAA+C;gBACxD,GAAG,EAAE,4DAA4D;gBACjE,MAAM,EAAE,KAAK;gBACb,EAAE,EAAE;oBACF,IAAI,EAAE,CAAC;iBACR;aACF;SACF,CAAC;IACJ,CAAC;CAAA;AA5DD,kCA4DC"}
1
+ {"version":3,"file":"ChatwootApi.credentials.js","sourceRoot":"","sources":["../../credentials/ChatwootApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,WAAW;IAAxB;QACE,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,SAAI,GAAS,EAAE,KAAK,EAAE,qCAAqC,EAAE,IAAI,EAAE,qCAAqC,EAAE,CAAC;QAC3G,qBAAgB,GAAG,0CAA0C,CAAC;QAC9D,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,0BAA0B;gBACnC,WAAW,EAAE,0BAA0B;gBACvC,WAAW,EACT,mKAAmK;gBACrK,QAAQ,EAAE,IAAI;aACf;YACD;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EACT,qJAAqJ;gBACvJ,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE;oBACX,QAAQ,EAAE,CAAC;iBACZ;aACF;YACD;gBACE,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACX,QAAQ,EAAE,IAAI;iBACf;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EACT,gMAAgM;gBAClM,QAAQ,EAAE,IAAI;aACf;YAID;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,wBAAwB;wBAC9B,KAAK,EAAE,UAAU;wBACjB,WAAW,EACT,kFAAkF;qBACrF;oBACD;wBACE,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,MAAM;wBACb,WAAW,EACT,oFAAoF;qBACvF;iBACF;gBACD,OAAO,EAAE,MAAM;gBACf,WAAW,EACT,qGAAqG;aACxG;YACD;gBACE,WAAW,EACT,yYAAyY;gBAC3Y,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,cAAc,EAAE;oBACd,IAAI,EAAE;wBACJ,SAAS,EAAE,CAAC,UAAU,CAAC;qBACxB;iBACF;aACF;SACF,CAAC;QAEF,iBAAY,GAAyB;YACnC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,gBAAgB,EAAE,kCAAkC;iBACrD;aACF;SACF,CAAC;QAQF,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,+CAA+C;gBACxD,GAAG,EAAE,iHAAiH;gBACtH,MAAM,EAAE,KAAK;gBACb,EAAE,EAAE;oBACF,IAAI,EAAE,CAAC;iBACR;gBAED,sBAAsB,EAAE,4CAAkE;aAC3F;YACD,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACV,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,sBAAsB;wBAC7B,OAAO,EAAE,yDAAyD;qBACnE;iBACF;gBACD;oBACE,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACV,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,8CAA8C;wBACrD,OAAO,EACL,gHAAgH;qBACnH;iBACF;gBACD;oBACE,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACV,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,oDAAoD;wBAC3D,OAAO,EACL,2OAA2O;qBAC9O;iBACF;gBACD;oBACE,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACV,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,+CAA+C;wBACtD,OAAO,EAAE,4DAA4D;qBACtE;iBACF;gBACD;oBACE,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACV,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,sBAAsB;wBAC7B,OAAO,EAAE,mCAAmC;qBAC7C;iBACF;gBACD;oBACE,IAAI,EAAE,qBAAqB;oBAC3B,UAAU,EAAE;wBACV,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,4CAA4C;wBACnD,OAAO,EAAE,0EAA0E;qBACpF;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CAAA;AA9JD,kCA8JC"}