n8n-nodes-maxbridge
v0.1.5
Published
Verified-ready n8n community node package for the MAX Bot API.
Maintainers
Readme
n8n-nodes-maxbridge
Verified-ready n8n community node package for the MAX Bot API.
Published package name: n8n-nodes-maxbridge.
Node display names in n8n remain Max and Max Trigger.
The Max action node exposes an AI tool variant named Max Tool; Max Trigger is intentionally not exposed as an AI tool.
Status
This repository is in phased development.
Current implementation:
Maxaction node withMessage,Upload, andRaw APIresourcesMax Triggerwith webhook subscription lifecycle and secret validation- Shared MAX credentials, transport, upload, and error helpers
- Automatic
attachment.not.readyretry/backoff for message operations that send attachments - Message send/get outputs expose
messageIdfrom the live MAXbody.midfield for easier chaining in n8n
Remaining release work:
- Publish the package to npm so it can be installed in n8n as a community node
- Run the published package scanner after the first npm release
Installation
npm install n8n-nodes-maxbridgeFor local development in this repository:
npm install
npm run lint
npm run typecheck
npm run test
npm run build
npm run scanCredentials Setup
Create MAX API credentials in n8n and provide:
Access Token: bot token from the MAX bot panelUse Custom Base URL: leave disabled unless you are targeting a non-default environmentBase URL: advanced override, default ishttps://platform-api.max.ru
Important constraints:
- MAX authentication uses only the
Authorizationheader - Tokens are never sent in query parameters
- Trigger webhook secrets are configured on the
Max Triggernode, not in shared credentials
Operations Matrix
Max
| Resource | Operations |
|---|---|
| Message | send, get, edit, delete, answerCallback |
| Upload | getUploadUrl, uploadBinary, uploadAndReturnAttachment |
| Raw API | arbitrary method, path, query, JSON body, optional full response |
Max Trigger
| Capability | Support |
|---|---|
| Register webhook on activate | Yes |
| Unregister webhook on deactivate | Yes |
| Validate X-Max-Bot-Api-Secret | Yes |
| Filter update_types on registration | Yes |
| Normalize incoming Update payload | Yes |
Example Workflows
Send Message
- Add
Max - Choose
Resource = Message - Choose
Operation = Send - Select
Recipient Type = ChatorUser - Provide the recipient ID and message text
- Use
{{$json.messageId}}from the node output when you want to chainGet,Edit, orDelete
Send Message with File
- Add a node that produces binary data
- Add
Max - Choose
Resource = Upload - Choose
Operation = Upload and Return Attachment - Set
Binary Property - Use the returned
attachmentobject in a later message step or Raw API call - If MAX responds with
attachment.not.readyduring the later message send, use the message-level attachment retry fields inAdditional Fields
MAX Trigger -> Branch by Update Type
- Add
Max Trigger - Configure
Webhook Secret - Optionally narrow
Update Types - Use an
IFnode on{{$json.updateType}}
Raw API Call
- Add
Max - Choose
Resource = Raw API - Set
HTTP Method,Path,Query, andBody - Enable
Return Full Responsewhen you need response metadata
Verified-Ready Constraints
This package is designed around the n8n verified community node requirements:
- TypeScript only
- No runtime dependencies
- n8n HTTP helpers for API traffic
- MIT license
- GitHub Actions release workflow with npm provenance
- Community node package metadata and local verification script
Local verification:
npm run scanvalidates repository metadata and packaging prerequisites in this workspacenpm run scanalso verifies the compileddistartifacts and release workflow provenance commandnpm run scan:publishedis reserved for the official@n8n/scan-community-packagecheck after the package exists on npm
Development Notes
The official npm create @n8n/node@latest bootstrap was unstable in this environment, so the project foundation was assembled manually to match n8n starter conventions. Local quality checks currently pass with:
npm run lint
npm run build
npm run test
npm run scanLive smoke test status:
- Validated
GET /meagainst MAX with a real bot token - Switched the live webhook subscription to the production webhook URL
- Verified live
send -> get -> edit -> deleteagainst a test chat
Known limits:
- Callback answers have not been smoke-tested live because no real
callback_idtest fixture is available in this workspace
