What This Automation Does
This workflow watches your WooCommerce store for new orders.
When a new order appears, it gets the buyer name and first purchased item.
Then it sends a message to a Mattermost channel with that info right away.
This helps teams see new orders fast, without waiting or missing messages.
It saves time by removing manual notifications and speeds up order handling.
Tools and Services Used
- WooCommerce: Source of new order data via API.
- Mattermost: Chat app receiving order alerts.
- n8n automation platform: Links WooCommerce to Mattermost.
Inputs, Processing, and Outputs
Inputs
- New orders created in WooCommerce store.
- Order details: buyer name, items, billing info.
Processing Steps
- Trigger node watches for new order event.
- Extract first name from billing data.
- Pick first product name from order items.
- Format message string with these details.
- Send message via Mattermost node to target channel.
Output
- Instant chat message in Mattermost channel announcing new order purchase.
Who Should Use This Workflow
This fits store managers or small teams who use WooCommerce and Mattermost.
It works best for users who want to stop sending manual order alerts.
Ideal if quick communication matters and to cut down on missed or delayed order messages.
Beginner Step-by-Step: How to Use This Workflow in n8n
Step 1: Download and Import
- Find the workflow file on this page.
- In the n8n editor, click “Import from File.”
- Select the downloaded workflow file.
Step 2: Configure Credentials
- Add your WooCommerce API Key in the WooCommerce Trigger node credentials.
- Insert your Mattermost API Key in the Mattermost node credentials.
Step 3: Update IDs and Channels
- Change the Mattermost Channel ID to the ID where you want messages sent.
- If needed, update any other email or ID fields in the nodes.
Step 4: Test the Workflow
- Create a test order in WooCommerce.
- Check if the test message appears in your Mattermost channel.
Step 5: Activate for Production
- Turn the workflow status to Active in the n8n editor.
- Make sure to monitor first real messages to verify delivery.
Optionally, if using self hosting n8n, check this resource: self-host n8n.
Common Edge Cases and Failures
- WooCommerce webhook does not send data: Usually webhook URL or settings are wrong.
- Mattermost message fails: Check channel ID and if API Key has right permissions.
- Missing order data: Make sure API access has read rights.
Customization Ideas
- Change message to add total price or email using expression:
= {{$node["WooCommerce Trigger"].json["billing"]["first_name"]}} bought {{$node["WooCommerce Trigger"].json["line_items"][0]["name"]}} for ${{$node["WooCommerce Trigger"].json["total"]}} ({{$node["WooCommerce Trigger"].json["billing"]["email"]}})!- Add more Mattermost nodes to notify different teams.
- Include attachments like images or invoices in Mattermost messages.
Summary
✓ Saves about 15-20 minutes per order by automating notifications.
✓ Sends instant order alerts to Mattermost channels.
✓ Ensures teams never miss new orders.
✓ Makes communication faster and order processing smoother.
✓ Easy to set up and customize in n8n.
