How to Configure Settings to Receive Workflow Error Notifications Only Via Slack?

This topic was automatically generated from Slack. You can find the original thread here.

I’ve enabled slack notifications for errors in workflows (which is working) but am still getting errors via email. What are the correct settings to ensure I get error notifications only via Slack?

To ensure you receive error notifications only via Slack and not via email, you’ll want to adjust your workflow’s error handling settings and make sure you’ve set up a custom error handling workflow that directs errors to Slack. Here’s a step-by-step guide: 1. Disable Default Email Notifications: First, ensure that the default email notifications for errors are disabled in your workflow settings. You can do this by toggling off the Notify me on errors option in your workflow’s settings. This will stop Pipedream from sending you email notifications for unhandled errors. 2. Set Up a Custom Error Handling Workflow: If you haven’t already, create a custom workflow that handles errors by sending notifications to Slack. You can use the global $errors stream to trigger this workflow on any error from any workflow within your account. Here’s a basic structure on how to set it up: - Create a New Workflow: Start by creating a new workflow without adding a trigger since it will be triggered by errors. - Subscribe to the $errors Stream: Configure the workflow to listen to the $errors stream. You’ll need your workspace ID and the workflow ID for this step. You can subscribe to the $errors stream using the Pipedream API or the UI if available. - Add a Slack Action: In your error handling workflow, add an action to send a message to Slack. You can use the pre-built Slack actions available in Pipedream for this. Make sure to configure the action with the appropriate channel and message format to notify you of the error details. 3. Test Your Setup: Trigger an error in one of your workflows intentionally to ensure that the error notification is sent to Slack and not via email. You should see the error notification in the specified Slack channel without receiving an email. By following these steps, you should be able to receive error notifications exclusively via Slack, eliminating email notifications for workflow errors. If you encounter any issues setting this up or need further assistance, please visit Support - Pipedream for more support options.

I enabled “Receive error notifications in Slack” on my Workspace Settings, so if I disable the workflow level setting to notify me, will this still come through to Slack?

Yes, if you’ve enabled “Receive error notifications in Slack” in your Workspace Settings, you will still receive error notifications in Slack even if you disable the workflow-level setting for error notifications. The workspace setting ensures that you get notified through Slack for any errors, independent of the individual workflow settings.

That’s not correct — the individual workflow setting means that no errors will get sent out, sorry for the confusion there.

Unfortunately right now there’s no out of the box way to send errors only to Slack and not to email, but it’s on the backlog for us to revamp how you configure notifications.

In the interim, can you filter out those error emails if you never want to see them there?

Hey thanks for correcting this - I was just coming to say it didn’t work as expected, but yip, I can create an auto-archive rule to filter those out on email.

Would be great to have that as a configuration though :slightly_smiling_face: cheers!