@renatoascencio/n8n-nodes-chatwoot 0.8.3 → 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.
- package/README.md +316 -44
- package/dist/credentials/ChatwootApi.credentials.d.ts +2 -1
- package/dist/credentials/ChatwootApi.credentials.js +84 -2
- package/dist/credentials/ChatwootApi.credentials.js.map +1 -1
- package/dist/credentials/ChatwootPlatformApi.credentials.d.ts +2 -1
- package/dist/credentials/ChatwootPlatformApi.credentials.js +2 -1
- package/dist/credentials/ChatwootPlatformApi.credentials.js.map +1 -1
- package/dist/credentials/ChatwootPublicApi.credentials.d.ts +2 -1
- package/dist/credentials/ChatwootPublicApi.credentials.js +14 -7
- package/dist/credentials/ChatwootPublicApi.credentials.js.map +1 -1
- package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +2 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.js +1814 -767
- package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -1
- package/dist/nodes/Chatwoot/ChatwootTrigger.node.js +606 -73
- package/dist/nodes/Chatwoot/ChatwootTrigger.node.js.map +1 -1
- package/dist/nodes/Chatwoot/ChatwootTrigger.node.json +2 -2
- package/dist/nodes/Chatwoot/GenericFunctions.d.ts +103 -8
- package/dist/nodes/Chatwoot/GenericFunctions.js +804 -232
- package/dist/nodes/Chatwoot/GenericFunctions.js.map +1 -1
- package/dist/nodes/Chatwoot/outputCompatibility.d.ts +2 -0
- package/dist/nodes/Chatwoot/outputCompatibility.js +17 -0
- package/dist/nodes/Chatwoot/outputCompatibility.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/account/brandedEmailLayout.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/account/brandedEmailLayout.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/account/brandedEmailLayout.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/account/helpers.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/account/helpers.js +53 -0
- package/dist/nodes/Chatwoot/resources/account/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/account/index.js +16 -2
- package/dist/nodes/Chatwoot/resources/account/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/account/update.operation.js +133 -21
- package/dist/nodes/Chatwoot/resources/account/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js +9 -2
- package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js +6 -7
- package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/accountAgentBot/deleteAvatar.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/deleteAvatar.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/deleteAvatar.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js +6 -7
- package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js +1 -2
- package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js +18 -10
- package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js +21 -8
- package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/accountUser/index.js +3 -3
- package/dist/nodes/Chatwoot/resources/accountUser/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/agent/create.operation.js +26 -7
- package/dist/nodes/Chatwoot/resources/agent/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/agent/helpers.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/agent/helpers.js +32 -0
- package/dist/nodes/Chatwoot/resources/agent/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agent/index.js +4 -4
- package/dist/nodes/Chatwoot/resources/agent/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/agent/update.operation.js +26 -7
- package/dist/nodes/Chatwoot/resources/agent/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/agentBot/index.js +67 -42
- package/dist/nodes/Chatwoot/resources/agentBot/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/appliedSla/download.operation.js +4 -16
- package/dist/nodes/Chatwoot/resources/appliedSla/download.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/appliedSla/filters.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/appliedSla/filters.js +55 -0
- package/dist/nodes/Chatwoot/resources/appliedSla/filters.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/appliedSla/getAll.operation.js +5 -45
- package/dist/nodes/Chatwoot/resources/appliedSla/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/appliedSla/index.js +18 -3
- package/dist/nodes/Chatwoot/resources/appliedSla/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/appliedSla/metrics.operation.js +2 -16
- package/dist/nodes/Chatwoot/resources/appliedSla/metrics.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js +57 -12
- package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/auditLog/index.js +1 -1
- package/dist/nodes/Chatwoot/resources/auditLog/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/automationRule/helpers.d.ts +10 -0
- package/dist/nodes/Chatwoot/resources/automationRule/helpers.js +59 -0
- package/dist/nodes/Chatwoot/resources/automationRule/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/automationRule/index.js +102 -34
- package/dist/nodes/Chatwoot/resources/automationRule/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/campaign/create.operation.js +25 -24
- package/dist/nodes/Chatwoot/resources/campaign/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/campaign/delete.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/campaign/delete.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/campaign/fields.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/campaign/fields.js +86 -0
- package/dist/nodes/Chatwoot/resources/campaign/fields.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/campaign/get.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/campaign/get.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/campaign/getMetrics.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/campaign/getMetrics.operation.js +15 -0
- package/dist/nodes/Chatwoot/resources/campaign/getMetrics.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/campaign/getRecipients.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/campaign/getRecipients.operation.js +71 -0
- package/dist/nodes/Chatwoot/resources/campaign/getRecipients.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/campaign/helpers.d.ts +7 -0
- package/dist/nodes/Chatwoot/resources/campaign/helpers.js +112 -0
- package/dist/nodes/Chatwoot/resources/campaign/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/campaign/index.d.ts +1 -0
- package/dist/nodes/Chatwoot/resources/campaign/index.js +49 -6
- package/dist/nodes/Chatwoot/resources/campaign/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/campaign/loadOptions.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/campaign/loadOptions.js +33 -0
- package/dist/nodes/Chatwoot/resources/campaign/loadOptions.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/campaign/update.operation.js +22 -24
- package/dist/nodes/Chatwoot/resources/campaign/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/cannedResponse/index.js +3 -3
- package/dist/nodes/Chatwoot/resources/cannedResponse/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/company/contacts.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/company/contacts.operation.js +81 -0
- package/dist/nodes/Chatwoot/resources/company/contacts.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/company/create.operation.js +14 -0
- package/dist/nodes/Chatwoot/resources/company/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/company/getAll.operation.js +13 -1
- package/dist/nodes/Chatwoot/resources/company/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/company/index.js +86 -6
- package/dist/nodes/Chatwoot/resources/company/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/company/update.operation.js +14 -0
- package/dist/nodes/Chatwoot/resources/company/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js +36 -4
- package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/create.operation.d.ts +1 -0
- package/dist/nodes/Chatwoot/resources/contact/create.operation.js +47 -11
- package/dist/nodes/Chatwoot/resources/contact/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/deleteCustomAttributes.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/deleteCustomAttributes.operation.js +35 -0
- package/dist/nodes/Chatwoot/resources/contact/deleteCustomAttributes.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/exportContacts.operation.js +14 -6
- package/dist/nodes/Chatwoot/resources/contact/exportContacts.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/filter.operation.d.ts +1 -0
- package/dist/nodes/Chatwoot/resources/contact/filter.operation.js +39 -4
- package/dist/nodes/Chatwoot/resources/contact/filter.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/findByWhatsApp.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/findByWhatsApp.operation.js +25 -0
- package/dist/nodes/Chatwoot/resources/contact/findByWhatsApp.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/getAll.operation.js +21 -37
- package/dist/nodes/Chatwoot/resources/contact/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/getAttachments.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/getAttachments.operation.js +50 -0
- package/dist/nodes/Chatwoot/resources/contact/getAttachments.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/importContacts.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/contact/importContacts.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/index.js +59 -9
- package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/linkToInbox.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/linkToInbox.operation.js +66 -0
- package/dist/nodes/Chatwoot/resources/contact/linkToInbox.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/search.operation.js +12 -38
- package/dist/nodes/Chatwoot/resources/contact/search.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/update.operation.js +22 -7
- package/dist/nodes/Chatwoot/resources/contact/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/utils.d.ts +30 -0
- package/dist/nodes/Chatwoot/resources/contact/utils.js +385 -0
- package/dist/nodes/Chatwoot/resources/contact/utils.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js +3 -3
- package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js +49 -2
- package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/create.operation.js +47 -16
- package/dist/nodes/Chatwoot/resources/conversation/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/deleteCustomAttributes.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/deleteCustomAttributes.operation.js +35 -0
- package/dist/nodes/Chatwoot/resources/conversation/deleteCustomAttributes.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js +38 -2
- package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/getAll.operation.js +70 -6
- package/dist/nodes/Chatwoot/resources/conversation/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/getAttachments.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/getAttachments.operation.js +50 -0
- package/dist/nodes/Chatwoot/resources/conversation/getAttachments.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js +20 -12
- package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/helpers.d.ts +9 -0
- package/dist/nodes/Chatwoot/resources/conversation/helpers.js +205 -0
- package/dist/nodes/Chatwoot/resources/conversation/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js +61 -11
- package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/markAsRead.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/markAsRead.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/conversation/markAsRead.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/markAsUnread.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/markAsUnread.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/conversation/markAsUnread.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/search.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/search.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/toggleTyping.operation.js +14 -1
- package/dist/nodes/Chatwoot/resources/conversation/toggleTyping.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/transcript.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/transcript.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/update.operation.js +10 -2
- package/dist/nodes/Chatwoot/resources/conversation/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js +13 -0
- package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/updateStatus.operation.js +2 -2
- package/dist/nodes/Chatwoot/resources/conversation/updateStatus.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversationParticipant/add.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/conversationParticipant/add.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversationParticipant/index.js +9 -1
- package/dist/nodes/Chatwoot/resources/conversationParticipant/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversationParticipant/remove.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/conversationParticipant/remove.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversationParticipant/replace.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversationParticipant/replace.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/conversationParticipant/replace.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/download.operation.js +17 -16
- package/dist/nodes/Chatwoot/resources/csatSurvey/download.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/csatSurvey/filters.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/filters.js +55 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/filters.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js +31 -1
- package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/csatSurvey/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/getAll.operation.js +48 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/index.js +20 -4
- package/dist/nodes/Chatwoot/resources/csatSurvey/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/csatSurvey/metrics.operation.js +2 -16
- package/dist/nodes/Chatwoot/resources/csatSurvey/metrics.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/csatSurvey/updateReviewNotes.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/updateReviewNotes.operation.js +24 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/updateReviewNotes.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js +21 -8
- package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/customAttribute/index.js +4 -4
- package/dist/nodes/Chatwoot/resources/customAttribute/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js +15 -7
- package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/customFilter/index.js +6 -6
- package/dist/nodes/Chatwoot/resources/customFilter/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/customFilter/utils.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/customFilter/utils.js +36 -0
- package/dist/nodes/Chatwoot/resources/customFilter/utils.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/article.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/article.operation.js +50 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/article.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/bulk.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/bulk.operation.js +59 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/bulk.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/category.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/category.operation.js +76 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/category.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js +3 -53
- package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js +2 -16
- package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js +2 -37
- package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/helpCenter/index.js +74 -6
- package/dist/nodes/Chatwoot/resources/helpCenter/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/helpCenter/listArticles.operation.js +19 -2
- package/dist/nodes/Chatwoot/resources/helpCenter/listArticles.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/helpCenter/listCategories.operation.js +3 -3
- package/dist/nodes/Chatwoot/resources/helpCenter/listCategories.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/helpCenter/portal.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/portal.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/portal.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/shared.d.ts +4 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/shared.js +281 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/shared.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js +6 -31
- package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js +2 -1
- package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/inbox/channelSettings.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/inbox/channelSettings.js +357 -0
- package/dist/nodes/Chatwoot/resources/inbox/channelSettings.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/create.operation.js +300 -38
- package/dist/nodes/Chatwoot/resources/inbox/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/inbox/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/delete.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/inbox/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js +2 -1
- package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/inbox/getMessageTemplates.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/getMessageTemplates.operation.js +37 -0
- package/dist/nodes/Chatwoot/resources/inbox/getMessageTemplates.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/helpers.d.ts +24 -0
- package/dist/nodes/Chatwoot/resources/inbox/helpers.js +203 -0
- package/dist/nodes/Chatwoot/resources/inbox/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/index.js +54 -6
- package/dist/nodes/Chatwoot/resources/inbox/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/inbox/resetSecret.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/resetSecret.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/inbox/resetSecret.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/rotateHmacToken.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/rotateHmacToken.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/inbox/rotateHmacToken.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/syncTemplates.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/syncTemplates.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/inbox/syncTemplates.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/update.operation.js +81 -8
- package/dist/nodes/Chatwoot/resources/inbox/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/inbox/updateAgents.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/updateAgents.operation.js +35 -0
- package/dist/nodes/Chatwoot/resources/inbox/updateAgents.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/integration/createHook.operation.d.ts +1 -0
- package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js +6 -5
- package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js +4 -2
- package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/integration/index.js +3 -3
- package/dist/nodes/Chatwoot/resources/integration/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js +33 -4
- package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/label/create.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/label/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/label/delete.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/label/delete.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/label/index.js +3 -3
- package/dist/nodes/Chatwoot/resources/label/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/label/update.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/label/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/label/utils.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/label/utils.js +26 -0
- package/dist/nodes/Chatwoot/resources/label/utils.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/macro/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/macro/create.operation.js +9 -3
- package/dist/nodes/Chatwoot/resources/macro/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/macro/execute.operation.js +24 -1
- package/dist/nodes/Chatwoot/resources/macro/execute.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/macro/index.js +6 -6
- package/dist/nodes/Chatwoot/resources/macro/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/macro/update.operation.js +3 -2
- package/dist/nodes/Chatwoot/resources/macro/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/message/create.operation.js +89 -9
- package/dist/nodes/Chatwoot/resources/message/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/message/getAll.operation.js +37 -1
- package/dist/nodes/Chatwoot/resources/message/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/message/helpers.d.ts +9 -0
- package/dist/nodes/Chatwoot/resources/message/helpers.js +57 -0
- package/dist/nodes/Chatwoot/resources/message/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/message/index.js +14 -6
- package/dist/nodes/Chatwoot/resources/message/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/message/retry.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/message/retry.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/message/retry.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/message/update.operation.js +35 -7
- package/dist/nodes/Chatwoot/resources/message/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/notification/deleteAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/notification/deleteAll.operation.js +31 -0
- package/dist/nodes/Chatwoot/resources/notification/deleteAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/notification/getAll.operation.js +3 -3
- package/dist/nodes/Chatwoot/resources/notification/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/notification/getSettings.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/notification/getSettings.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/notification/getSettings.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/notification/helpers.d.ts +1 -0
- package/dist/nodes/Chatwoot/resources/notification/helpers.js +24 -0
- package/dist/nodes/Chatwoot/resources/notification/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/notification/index.js +29 -5
- package/dist/nodes/Chatwoot/resources/notification/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/notification/snooze.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/notification/snooze.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/notification/updateSettings.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/notification/updateSettings.operation.js +51 -0
- package/dist/nodes/Chatwoot/resources/notification/updateSettings.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js +6 -1
- package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/platformAccount/fields.d.ts +5 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/fields.js +36 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/fields.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/getAll.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/index.js +12 -4
- package/dist/nodes/Chatwoot/resources/platformAccount/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js +6 -1
- package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js +9 -2
- package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/platformUser/getToken.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformUser/getToken.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/platformUser/getToken.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformUser/index.js +13 -5
- package/dist/nodes/Chatwoot/resources/platformUser/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js +10 -3
- package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/profile/availability.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/profile/availability.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/profile/index.js +3 -3
- package/dist/nodes/Chatwoot/resources/profile/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/profile/update.operation.js +30 -4
- package/dist/nodes/Chatwoot/resources/profile/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js +19 -4
- package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js +31 -1
- package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicContact/identity.d.ts +5 -0
- package/dist/nodes/Chatwoot/resources/publicContact/identity.js +29 -0
- package/dist/nodes/Chatwoot/resources/publicContact/identity.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicContact/index.js +3 -3
- package/dist/nodes/Chatwoot/resources/publicContact/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js +20 -5
- package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/csatSurvey.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/csatSurvey.operation.js +55 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/csatSurvey.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/index.js +20 -6
- package/dist/nodes/Chatwoot/resources/publicConversation/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js +2 -2
- package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js +1 -1
- package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicInbox/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/publicInbox/index.js +25 -0
- package/dist/nodes/Chatwoot/resources/publicInbox/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js +11 -4
- package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js +53 -1
- package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicMessage/index.js +3 -3
- package/dist/nodes/Chatwoot/resources/publicMessage/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js +133 -10
- package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/report/helpers.d.ts +24 -0
- package/dist/nodes/Chatwoot/resources/report/helpers.js +280 -0
- package/dist/nodes/Chatwoot/resources/report/helpers.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/report/index.d.ts +5 -0
- package/dist/nodes/Chatwoot/resources/report/index.js +285 -86
- package/dist/nodes/Chatwoot/resources/report/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/search/filters.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/search/filters.js +34 -0
- package/dist/nodes/Chatwoot/resources/search/filters.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/search/index.js +11 -3
- package/dist/nodes/Chatwoot/resources/search/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/search/searchArticles.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/search/searchArticles.operation.js +36 -0
- package/dist/nodes/Chatwoot/resources/search/searchArticles.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/search/searchContacts.operation.js +3 -1
- package/dist/nodes/Chatwoot/resources/search/searchContacts.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/search/searchConversations.operation.js +3 -1
- package/dist/nodes/Chatwoot/resources/search/searchConversations.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/search/searchMessages.operation.js +19 -1
- package/dist/nodes/Chatwoot/resources/search/searchMessages.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/slaPolicy/index.js +30 -5
- package/dist/nodes/Chatwoot/resources/slaPolicy/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/webhook/create.operation.js +37 -43
- package/dist/nodes/Chatwoot/resources/webhook/create.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/webhook/events.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/webhook/events.js +66 -0
- package/dist/nodes/Chatwoot/resources/webhook/events.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/webhook/index.js +3 -3
- package/dist/nodes/Chatwoot/resources/webhook/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/webhook/update.operation.js +24 -14
- package/dist/nodes/Chatwoot/resources/webhook/update.operation.js.map +1 -1
- package/dist/nodes/Chatwoot/trigger/filters.d.ts +26 -0
- package/dist/nodes/Chatwoot/trigger/filters.js +123 -0
- package/dist/nodes/Chatwoot/trigger/filters.js.map +1 -0
- package/dist/nodes/Chatwoot/trigger/lifecycle.d.ts +31 -0
- package/dist/nodes/Chatwoot/trigger/lifecycle.js +166 -0
- package/dist/nodes/Chatwoot/trigger/lifecycle.js.map +1 -0
- package/dist/nodes/Chatwoot/trigger/redact.d.ts +4 -0
- package/dist/nodes/Chatwoot/trigger/redact.js +42 -0
- package/dist/nodes/Chatwoot/trigger/redact.js.map +1 -0
- package/dist/nodes/Chatwoot/trigger/signature.d.ts +22 -0
- package/dist/nodes/Chatwoot/trigger/signature.js +61 -0
- package/dist/nodes/Chatwoot/trigger/signature.js.map +1 -0
- package/dist/nodes/Chatwoot/trigger/types.d.ts +106 -0
- package/dist/nodes/Chatwoot/trigger/types.js +18 -0
- package/dist/nodes/Chatwoot/trigger/types.js.map +1 -0
- package/package.json +15 -12
- package/dist/tsconfig.tsbuildinfo +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://docs.n8n.io/integrations/community-nodes/)
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<img src="https://raw.githubusercontent.com/
|
|
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
|
-
- **
|
|
21
|
-
- **
|
|
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
|
-
- **
|
|
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** -
|
|
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** -
|
|
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
|
+

|
|
41
|
+
|
|
42
|
+
| Chatwoot Trigger: events, filters and signature verification | Message › Create with the pinned output |
|
|
43
|
+
|---|---|
|
|
44
|
+
|  |  |
|
|
45
|
+
|
|
46
|
+
| AI Agent with Chatwoot tools (`$fromAI`) | Report › Account Summary |
|
|
47
|
+
|---|---|
|
|
48
|
+
|  |  |
|
|
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
|
|
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
|
|
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.
|
|
145
|
-
|
|
146
|
-
|
|
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
|
|
226
|
-
| **Add Labels** |
|
|
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
|
|
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** |
|
|
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/
|
|
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
|
-
##
|
|
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/
|
|
981
|
+
git clone https://github.com/serversmx/n8n-nodes-chatwoot.git
|
|
775
982
|
cd n8n-nodes-chatwoot
|
|
776
983
|
npm install
|
|
777
984
|
|
|
778
|
-
#
|
|
779
|
-
npm run
|
|
780
|
-
npm run lint
|
|
781
|
-
npm
|
|
782
|
-
npm
|
|
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/
|
|
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: '
|
|
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":";;;
|
|
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"}
|