Description
n8n-nodes-maxbridge
Verified-ready n8n community node package for the MAX Bot API.
Published package name: n8n-nodes-maxbridge.
Main node names in n8n:
MaxMax TriggerMax Tool(the AI tool variant ofMaxfor AI Agent workflows)Maxsends requests to the MAX Bot APIMax Triggerlistens for incoming MAX webhook eventsMax Toollets an n8n AI Agent call the same MAX actions as a tool- send messages to chats or users
- get, edit, and delete messages
- answer callback events
- upload files and turn them into MAX attachments
- call raw MAX API endpoints that do not have a dedicated UI yet
- receive incoming updates from MAX through a webhook
Maxaction node withMessage,Upload, andRaw APIMax Triggerwith webhook subscription lifecycle- MAX credential support through n8n credentials
- Attachment upload flow
- Attachment retry handling for
attachment.not.ready - Normalized output fields such as
messageId - Local quality gates:
lint,typecheck,test,build,scan 0.1.3: renamed the AI tool wrapper toMax Toolso it is clearly different from the normalMaxnode0.1.4: stopped exposingMax Triggeras an AI tool0.1.5: fixed the transport layer so all MAX requests bind the n8n execution context correctly; this removed the runtime errorthis.getNode is not a functionAccess Token: your bot token from MAXUse Custom Base URL: keep off unless you really need a non-default environmentBase URL: advanced override, default ishttps://platform-api.max.ru- the token is sent only in the
Authorizationheader - the token is never sent in query parameters
- the trigger secret is stored on the
Max Triggernode, not in shared credentials sendgeteditdeleteanswerCallback- send a text message to a chat
- fetch a message by ID
- edit an existing message
- delete a message
- answer an interactive callback from MAX
messageIdtextchatIdchatTypesenderIdgetUploadUrluploadBinaryuploadAndReturnAttachment- HTTP method
- path
- query JSON
- body JSON
- optional full response mode
- you are building an n8n AI Agent workflow
- the agent must call MAX as a tool
- registers a webhook subscription on activation
- removes the subscription on deactivation
- validates
X-Max-Bot-Api-Secret - optionally filters by
update_types - normalizes the incoming update payload
bot_startedmessage_callbackmessage_createdMax Triggeris intentionally not exposed as an AI tool- for testing, use
Test this trigger - do not use
Execute stepto simulate trigger behavior
What This Package Does
This package gives n8n a simple way to work with a MAX bot.
In plain language:
You can use it to:
Current Status
Current working release line: 0.1.5+.
What is already implemented:
Important recent fixes:
How It Works
1. Credentials
Create MAX API credentials in n8n and fill in:
Security rules in this package:
2. Max
Max is the regular action node.
It supports three resources.
#### Message
Operations:
Typical use:
Useful output fields:
#### Upload
Operations:
Typical use:
1. another n8n node produces binary data
2. Max -> Upload -> uploadAndReturnAttachment uploads the file
3. the node returns an attachment object
4. you pass that attachment into a later message call
#### Raw API
Use this when the MAX endpoint you need is not covered by the dedicated UI yet.
You can set:
3. Max Tool
Max Tool is not a separate codebase.
It is the AI-tool presentation of the Max node.
Use it only when:
Do not use Max Tool for regular workflows.
For normal automation, use Max.
4. Max Trigger
Max Trigger is the incoming side.
What it does:
Supported update filters in the current UI:
Important:
Installation
Option 1. Install Through n8n Community Nodes UI
In self-hosted n8n:
1. Open Settings -> Community Nodes
2. Install package n8n-nodes-maxbridge
3. Restart n8n if your environment requires it
Option 2. Install Manually in Self-Hosted n8n
npm install n8n-nodes-maxbridge
Option 3. Install in Docker
If your n8n runs in Docker, install the package inside the node directory used by n8n and restart the containers.
Generic example:
docker exec -it sh -lc "cd /home/node/.n8n/nodes && npm install n8n-nodes-maxbridge@latest"
docker restart
If you run queue mode, restart both the main container and the worker.
Beget Docker Example
If your setup looks like Beget’s /opt/beget/n8n layout:
cd /opt/beget/n8n
docker compose exec -u node n8n sh -lc "mkdir -p /home/node/.n8n/nodes && cd /home/node/.n8n/nodes && npm install n8n-nodes-maxbridge@0.1.5"
docker compose exec -u node n8n-worker sh -lc "mkdir -p /home/node/.n8n/nodes && cd /home/node/.n8n/nodes && npm install n8n-nodes-maxbridge@0.1.5"
docker compose restart n8n n8n-worker
Then verify:
cd /opt/beget/n8n
docker compose exec -u node n8n sh -lc "cd /home/node/.n8n/nodes && npm ls n8n-nodes-maxbridge"
docker compose exec -u node n8n-worker sh -lc "cd /home/node/.n8n/nodes && npm ls n8n-nodes-maxbridge"
Quick Start
Send a Simple Message
1. Add Max
2. Set Resource = Message
3. Set Operation = Send
4. Set Recipient Type = Chat or User
5. Fill in the ID
6. Fill in the text
7. Run the node
Send a File
1. Add a node that produces binary data
2. Add Max
3. Set Resource = Upload
4. Set Operation = Upload and Return Attachment
5. Fill in Binary Property
6. Use the returned attachment value in a later message step
Receive Incoming Messages
1. Add Max Trigger
2. Set Webhook Secret
3. Optionally choose Update Types
4. Activate the workflow
5. Send an event to the bot in MAX
6. Branch on {{$json.updateType}} if needed
Call a MAX Endpoint Not Yet Covered by UI
1. Add Max
2. Set Resource = Raw API
3. Fill in method, path, query, and body
4. Turn on Return Full Response if you need status or headers
Typical Workflow Patterns
Pattern 1. Trigger -> Filter -> Reply
Use:
Max TriggerIF or SwitchMaxGood when:
Pattern 2. Upload -> Send
Use:
Max -> UploadMax -> MessageGood when:
Pattern 3. AI Agent -> Max Tool
Use:
Max ToolGood when:
Troubleshooting
this.getNode is not a function
If you still see this error:
0.1.5 or latern8n and n8n-worker if you use queue modeCtrl+F5Why this happened:
NodeApiErrorTrigger Activates But Events Do Not Arrive
Check:
Webhook SecretTest this trigger, not Execute stepnpm install in Docker Prints yallist_1.Yallist is not a constructor
On some servers this npm error appears even when the package is already written to disk.
Do this after install:
npm ls n8n-nodes-maxbridge
If the right version is shown, restart n8n and verify behavior.
If the version is not shown, repeat the install or clean the npm state inside the container.
Community Node Installed But UI Still Looks Old
Do this:
Development
Local commands:
npm install
npm run lint
npm run typecheck
npm run test
npm run build
npm run scan
Published-package verification:
npm run scan:published
Project Rules
This package follows these rules:
NodeApiError or NodeOperationErrorImportant Files
Main source files:
credentials/MaxApi.credentials.tsnodes/Max/Max.node.tsnodes/Max/actions/message.tsnodes/Max/actions/rawApi.tsnodes/Max/actions/upload.tsnodes/Max/transport/maxApiRequest.tsnodes/Max/maxNodeContext.tsnodes/MaxTrigger/MaxTrigger.node.tsnodes/MaxTrigger/triggerHelpers.tsMain tests:
tests/unit/transport.test.cjstests/unit/message-helpers.test.cjstests/unit/message-retry.test.cjstests/unit/action-execution.test.cjstests/integration/maxTrigger.test.cjsLicense
MIT.