Send error notifications from functions
Recipe ToolsWorkato
What it does
When a function call encounters an error, this automation sends an email notification with the error details. The function then returns the result so downstream steps know what happened.
Who it's for
Engineering teams who need visibility into function failures without checking logs manually.
How teams use this
Alert the team to function failures
Send an email when a function fails so engineers know immediately instead of discovering it later in logs or from downstream errors.
Route errors to a support channel
Change the email recipient to a shared inbox or support alias so the right team gets notified based on which function failed.
Include custom error context
Add fields to the email body to include the function name, input parameters, and timestamp so engineers have all the details needed to debug.
How it works
- Detect a function error. A function call fails or returns an error condition in real time, triggering this automation to respond.
- Send error details by email. An email is sent with the error message and context so the team can investigate the issue immediately.
- Return the result. The function returns the error result to the calling workflow so it can handle the failure gracefully.