What this workflow does
This workflow watches for errors in any n8n workflow and sends an alert fast.
When an error happens, it posts a message with error details to a Mattermost chat channel.
It also sends a quick SMS message with the error info to specific phone numbers using Twilio.
This helps teams know about errors right away to fix them faster.
Tools and services used
- n8n Error Trigger node: Detects errors in workflows automatically.
- Mattermost API: Sends chat notifications to a team channel.
- Twilio SMS API: Sends text message alerts to phones.
Who should use this workflow
Engineers or teams running many automated processes in n8n who want to catch errors fast.
This includes people tired of finding out about problems late and want quicker alerts on chat and SMS.
How this workflow works
Inputs
The workflow gets input automatically from all errors raised in any active n8n workflow via the Error Trigger node.
Processing Steps
First, the error details pass to the Mattermost node, which creates a detailed chat message.
Then the workflow sends a shorter SMS alert through the Twilio node using error information from the trigger.
Outputs
Mattermost channel gets an error message with workflow name, ID, and last executed node.
Designated phone numbers receive an SMS summarizing the error quickly.
Beginner step-by-step: How to use this workflow in n8n
Step 1: Import the workflow
- Click the Download button on this page to get the workflow file.
- Go to your n8n editor and select “Import from File” to load the workflow.
Step 2: Configure credentials
- Add your Mattermost API credentials in n8n credentials settings.
- Add your Twilio API credentials including keys and phone numbers.
Step 3: Update custom info
- Change phone numbers in the Twilio node to your desired alert recipients.
- Update any Mattermost channel or team details if needed.
Step 4: Test the workflow
- Create a test error in any workflow to see if alerts come through to Mattermost and SMS.
Step 5: Activate for production
- Click Activate in the top right of the n8n editor to start the workflow live.
Now the workflow will notify your team instantly if any workflow errors occur.
For more control and privacy, consider self-host n8n.
Customization ideas
- Change recipient numbers: In the Twilio node, update the To field to alert different team members.
- Adjust message contents: Add more details like timestamps or full error info in the chat and SMS messages.
- Add wait or retry steps: Insert delay nodes before Twilio to prevent SMS alerts if team fixes error quickly after Mattermost message.
- Send alerts to more places: Copy Mattermost or Twilio nodes to send notifications to Slack, email, or other apps.
Handling edge cases and common issues
Error Trigger does not fire
This node runs only when an error occurs in an n8n workflow.
Test by creating a workflow with a misconfigured node to generate an error.
Mattermost auth errors
Usually caused by wrong or outdated API credentials.
Check and update credentials in n8n, then test connection from the node.
Twilio SMS fails or delayed
Verify API keys and phone numbers use correct international formats.
Use Twilio console to check SMS status and errors.
Summary of results
✓ Teams get immediate error alerts in Mattermost chat and SMS phones.
✓ Faster reaction to workflow issues reduces downtime and missed deadlines.
✓ Easy to set up for beginners by importing and configuring in n8n.
→ Error notifications help improve automation reliability.
