feat: add Chatwoot integration with diagnostic tool and templates#570
Open
RenatoAscencio wants to merge 4 commits intoczlonkowski:mainfrom
Open
feat: add Chatwoot integration with diagnostic tool and templates#570RenatoAscencio wants to merge 4 commits intoczlonkowski:mainfrom
RenatoAscencio wants to merge 4 commits intoczlonkowski:mainfrom
Conversation
Add Chatwoot integration with connection validation and workflow templates: - Connection validator: tests Application + Platform API credentials with timeout (10s), error classification (network/dns/timeout/ssl), HTTP status mapping (401/403/404/5xx), and secret sanitization - 5 workflow templates: conversation monitor, contact sync, auto-responder, CSAT follow-up, public API widget - Integration entry point with metadata and template registry Designed for @renatoascencio/n8n-nodes-chatwoot v0.4.1 (27 resources, 130+ operations, 3 API types) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add chatwoot_doctor tool for troubleshooting Chatwoot integration: - Reports MCP server info (version, platform, Docker detection) - Tests n8n API connectivity (if configured), masks secrets - Detects Chatwoot credentials via n8n credential listing - Verifies 5 workflow templates are available - Optional: tests Chatwoot API directly (baseUrl/token args) - Returns healthy/issues summary with response time - sanitizeErrorMessage() strips tokens/keys from error strings Always available (not gated by n8n API config). Registered in server.ts ListTools + executeTool. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 tests covering: - handlers-chatwoot (7): server info, n8n API check, Chatwoot API test, verbose mode, secret sanitization, missing credentials - connection-validator (12): successful connection, 401/403/404 error classification, network/DNS/timeout/SSL errors, secret sanitization, testAll orchestration 88% statement coverage on Chatwoot modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add Chatwoot Integration section with: - Workflow templates table (5 templates) - chatwoot_doctor diagnostic tool description - Troubleshooting table (4 common issues) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
993232a to
d291b29
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a comprehensive Chatwoot integration module to n8n-MCP:
chatwoot_doctorMCP tool — diagnostic tool for troubleshooting (server info, n8n connectivity, credential detection, template verification, optional Chatwoot API test)Files added/modified
Companion package
Designed for
@renatoascencio/n8n-nodes-chatwootv0.4.1 — 27 resources, 130+ operations across Chatwoot's Application, Platform, and Public APIs.Verification
npm run build— compiles cleanlynpm run lint— no errorsTest plan
npm run buildpassesnpm test— existing tests unaffected, 19 new Chatwoot tests pass@renatoascencio/n8n-nodes-chatwootinstalledchatwoot_doctortool to verify integration health🤖 Generated with Claude Code