What does this node do?
The Fail node stops workflow execution and displays a custom error message. Use it to validate data, enforce business rules, or gracefully handle error conditions. Common uses:- Validate required data
- Enforce business rules
- Handle expected errors
- Provide clear error messages
Quick setup
1
Add a Conditional node
Check for the error condition
2
Write a clear error message
Explain what went wrong
Configuration
Required fields
The error message to display when the workflow fails.Tips for good error messages:
- Explain what went wrong
- Include relevant data values
- Suggest how to fix it
Output
When triggered, the workflow stops and returns:Examples
Data validation
Validate required input: Error message:Business rule enforcement
Enforce minimum content length: Error message:API error handling
Handle API failures: Error message:Rate limit protection
Stop before hitting limits: Error message:Best practices
Write helpful error messages
Include context to help users fix the issue:Include relevant values
Show the actual data that caused the failure:Fail early
Validate inputs at the beginning: Don’t process data only to fail at the end.Use consistent error codes
Create a standard set of error codes:| Code | Meaning |
|---|---|
VALIDATION_ERROR | Input data is invalid |
API_ERROR | External API failed |
AUTH_ERROR | Authentication failed |
RATE_LIMIT | Rate limit exceeded |
DATA_MISSING | Required data not found |
Consider alternatives
Before using Fail, consider:- Conditional: Route to a different path instead
- Default values: Use fallbacks for missing data
- Retry logic: Try again for transient failures

