Error Trigger
Trigger node for error-handling workflows that receive error data when another agent fails.
Written By pvdyck
Last updated 18 days ago
Error Trigger
β Verified β Tested, confirmed working on indie.money
What It Does
The entry point for error-handling workflows. When another agent fails during execution, this trigger receives the error details β including the error message, which node failed, and the failed agent's ID.
How It Works
- Agent A is configured with
settings.errorWorkflowset to Agent B's address - Agent A runs and encounters an error (e.g., a Stop and Error node, or an API failure)
- The platform detects the failure and automatically calls Agent B
- Agent B's Error Trigger receives the error payload
- Your workflow processes the error (send notification, log it, retry, etc.)
Error Payload
The Error Trigger receives this data structure:
Setting Up an Error Workflow
- Create a new agent with an Error Trigger as the starting node
- Add processing nodes (e.g., send a Slack message, log to a spreadsheet)
- Publish and activate the error-handling agent
- In your main agent's workflow JSON, set
settings.errorWorkflowto the error handler's contract address - Publish and activate the main agent
Compatibility
Tips
- Error workflows run with their own budget β ensure the error handler agent is funded
- Error workflows do not trigger their own error workflows, preventing infinite loops
- Use the error payload fields in expressions to build informative notifications
- Combine with the HTTP Request node to send error alerts to external services
Status
This integration is fully tested and verified on indie.money.