Maubot plugin to forward user requests to an n8n workflow
All checks were successful
Build Maubot Plugin / build (push) Successful in 11s
When conversation mode is enabled for replies, original messages are now quoted with '> ' prefixes and contextual labels ("said:" and "requests:") to help LLMs better distinguish between quoted context and actual requests. This prevents confusion in multi-turn conversations where both original and reply content would appear as unmarked text blocks. |
||
---|---|---|
.forgejo/workflows | ||
docs | ||
examples | ||
n8nbot | ||
.gitignore | ||
.markdownlint.yaml | ||
.pre-commit-config.yaml | ||
base-config.yaml | ||
LICENSE | ||
maubot.yaml | ||
pyproject.toml | ||
README.md | ||
uv.lock |
maubot-n8n: Matrix Workflow Automation
Connect Matrix rooms to n8n workflows via webhook triggers.
Quick start
Install from package registry:
# Download the latest version
curl -L -o n8n.mbp "https://git.tomfos.tr/api/packages/tom/generic/maubot-n8n/0.1.15/tr.tomfos.n8n-v0.1.15.mbp"
# Or check available versions
curl -s "https://git.tomfos.tr/api/packages/tom/generic/maubot-n8n" | jq '.versions'
Upload to your Maubot instance, configure the webhook URL, and add it to your instance.
How it works
When someone @mentions the bot, it triggers your n8n webhook:
@mybot: create an image of a magical forest
⏳ (bot acknowledges with reaction)
[Your n8n workflow processes the text]
✅ [Generated image appears in chat]
Key features:
- Reply handling (processes the original message when you reply with @mention)
- Visual feedback with emoji reactions during processing
- User access control with allow/deny lists
- Passes sender and room context to your workflows
Examples
AI image generation: The ComfyUI workflow shows how to generate images from text prompts using any diffusers-compatible model with Ollama and ComfyUI.
Getting started: Check out the n8n configuration guide for workflow patterns and common setups.
Installation
From package registry (recommended):
- Download the latest
.mbp
file from the package registry - Upload to your Maubot instance
- Configure with your n8n webhook URL
From source:
- Clone this repository
- Build:
zip -r n8n.mbp maubot.yaml base-config.yaml n8nbot/
- Upload to Maubot
Configuration
Basic setup in your Maubot instance:
n8n_webhook_url: "https://your-n8n-instance.com/webhook/your-webhook-id"
reaction_processing: "⏳" # Empty string disables reactions
reaction_success: "✅"
reaction_error: "❌"
Learn more
- n8n workflow guide - Setting up webhooks and processing patterns
- ComfyUI integration - Complete image generation workflow example
- Example workflows - Ready-to-import n8n workflows
Licensed under Apache 2.0.