This workflow automatically monitors WooCommerce orders, evaluates them for fraud using multiple checks (address mismatch, high-value orders, suspicious emails, admin orders), calculates a fraud score and sends alerts to Slack when risk is detected.
This workflow automates fraud detection for WooCommerce orders by applying multiple validation checks and assigning a fraud score. It starts with scheduled execution, fetches order data and prepares it for evaluation by extracting key details such as billing information, order value and customer email.
Once the data is prepared, the workflow applies a series of fraud detection rules. These include checking whether billing and shipping details mismatch, identifying high-value orders, detecting suspicious or disposable email addresses and verifying if the order was created by an admin. Each condition contributes to a fraud score based on predefined logic.
Finally, all signals are merged and a fraud score is calculated. If the score crosses the defined threshold, a detailed alert is sent to a Slack channel with complete order and risk information, enabling quick manual review and action.
Import the workflow JSON into your n8n workspace
Configure the Schedule Trigger node to define execution frequency
Set up the WooCommerce node:
orderId if neededConfigure Slack node:
Review Set nodes:
Validate IF conditions:
Review Code node logic:
Test the workflow:
Activate the workflow for automatic execution
Check High Value (>500)
Modify the threshold value to match your business needs
Detect Disposable Email
Update regex pattern to include more domains
Calculate Fraud Score (Code Node)
Adjust scoring logic:
if ($json.high_value_order) score += 3;
Fraud Threshold Check
Change minimum score required to trigger alerts
Slack Message Node
Customize alert message format and included fields
There can be many more use cases depending on how you extend and customize this workflow.
| Issue | Possible Cause | Solution |
|---|---|---|
| No orders fetched | Incorrect WooCommerce credentials | Verify API keys and store URL |
| Slack message not sent | Wrong Slack credentials or channel ID | Reconnect Slack and check channel |
| Fraud score always 0 | Conditions not triggering | Verify IF node logic and data mapping |
| Email detection not working | Regex not matching | Update regex pattern |
| Workflow not running | Schedule trigger not configured | Set interval correctly and activate workflow |
If you need assistance setting up this workflow, customizing fraud rules or adding advanced features, our n8n workflow development team at WeblineIndia is here to help.
We can help you:
👉 Reach out to WeblineIndia for expert support and tailored automation solutions.