Get a Slack alert when a workflow went wrong
This workflow allows you to have a Slack alert when one of your n8n workflows gets an issue.
-
Error trigger: This node launched the workflow when one of your active workflows gets an issue
-
Slack node: This node sends you a customized message to alert you and to check the error
⚠️ You don't have to activate this workflow for it to be effective
Get a Slack Alert When an n8n Workflow Fails
This n8n workflow provides a robust error handling mechanism, ensuring you're immediately notified via Slack whenever one of your n8n workflows encounters an error. It simplifies the process of monitoring workflow health and responding to issues proactively.
What it does
- Listens for Workflow Errors: The workflow is triggered automatically whenever another n8n workflow on your instance fails.
- Sends Slack Notification: Upon receiving an error event, it posts a detailed message to a specified Slack channel, alerting you to the failure.
Prerequisites/Requirements
- n8n Instance: An active n8n instance where this workflow will be imported.
- Slack Account: A Slack workspace and a channel where you want to receive error notifications.
- Slack Credential: An n8n credential configured for your Slack workspace with permissions to post messages.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Slack Credential:
- Click on the "Slack" node.
- In the "Credential" field, select an existing Slack API credential or create a new one.
- To create a new credential, choose "New" and follow the prompts to connect your Slack workspace.
- Specify Slack Channel:
- In the "Slack" node, ensure the "Channel" or "Channel ID" is set to the desired Slack channel where alerts should be sent.
- Activate the Workflow: Save and activate the workflow.
- Configure Error Workflow: To use this workflow as an error handler for other workflows:
- Open any workflow you want to monitor for errors.
- In the workflow settings (the gear icon in the top right), navigate to the "Error Workflow" section.
- Select this workflow ("Get a Slack Alert When an n8n Workflow Fails") from the dropdown list.
- Save the settings for that workflow.
Now, whenever a workflow configured with this error workflow fails, you will receive a notification in your designated Slack channel.
Related Templates
AI-powered cover letter generator with resume matching & Google Docs
This workflow generates a tailored cover letter using a provided resume and job description. Users submit a job description via form (or workflow input), the workflow uses an LLM to write a professional, casual cover letter, then creates and populates a Google Doc and redirects the user to download or review it. --- What You Must Update Before Running Resume Content Update the Configuration node to include your own resume text. This resume is injected directly into the prompt and used as the sole source of experience and qualifications. LLM Credentials The workflow uses OpenRouter with an OpenAI-compatible model. You must: Add your own OpenRouter API credentials Optionally change the model selection if desired Google Docs Credentials This workflow creates and edits Google Docs. You must: Connect your own Google Docs OAuth credentials Update the destination folder ID if you want files saved elsewhere --- What You Can Configure Prompt Tone & Constraints Edit the Write Cover Letter agent system prompt to adjust: Tone (more formal or more casual) Length Writing style constraints Execution Method The workflow supports: Manual execution via form submission Execution as a sub-workflow via workflow inputs
Forecast Zoho CRM deals with AlphaVantage market data, GPT‑4 and Slack alerts
Zoho CRM Deal Forecasting with External Market Factor This workflow automatically fetches active deals from Zoho CRM, retrieves real-time market signals, calculates AI-enhanced forecast metrics, evaluates deal-market alignment, stores data in a database, updates CRM, and sends a summary alert to Slack. This workflow runs weekly to help sales teams make data-driven decisions. It fetches all open deals from Zoho, calculates expected revenue using deal amount, probability, seasonal trends, and market signals. An AI node evaluates each deal’s match ratio against current market conditions. Forecasts and AI insights are stored in a database and written back into Zoho. A Slack message summarizes the key metrics for easy review. You receive: Weekly automated deal forecast. AI-powered deal-market alignment insights. Database storage for historical trends. Slack summary notifications. Ideal for sales teams wanting real-time insights into pipeline health and market alignment without manual calculations. Quick Start – Implementation Steps Import the provided n8n workflow JSON file. Add your Zoho CRM credentials in all relevant nodes. Add your AlphaVantage API key in the Market Signal node. Connect your Slack credentials and select the channel for alerts. Connect your Supabase (or preferred database) account for storing forecasts. Activate the workflow — it will run automatically on the configured weekly schedule. What It Does This workflow automates deal forecasting with AI-enhanced insights: Fetches all active deals from Zoho CRM. Retrieves real-time market data (SPY index) from AlphaVantage. Combines deal and market data for forecast calculations. Calculates expected revenue using: Deal amount Probability Seasonal factors Market signals Sends deal data to an AI node for match ratio, confidence level, and reasoning. Parses AI output and merges it with forecast data. Stores forecast & AI metrics in a database (Supabase). Updates Zoho CRM with adjusted forecast and AI insights. Sends a summary alert to Slack including: Deal name and stage Amount, probability, and expected revenue Market signal and seasonal factor AI match ratio and confidence This ensures teams see clear, actionable sales insights every week. Who’s It For This workflow is ideal for: Sales managers and CRM admins Revenue operations teams Forecasting analysts Teams using Zoho CRM and Slack for pipeline management Anyone wanting AI insights on market alignment for deals Requirements to Use This Workflow To run this workflow, you need: n8n instance (cloud or self-hosted) Zoho CRM account with API access AlphaVantage API key for market data Slack workspace with API permissions Supabase or other database for storing forecasts Basic understanding of deals, probabilities, and seasonal forecasting How It Works Weekly Trigger – Workflow runs automatically once a week. Fetch Deals – Retrieves all active deals from Zoho CRM. Get Market Signal – Fetches real-time market data. Combine Deal & Market Info – Merges deal and market datasets. Generate Forecast Metrics – Calculates expected revenue using deal info, seasonality, and market influence. AI Deal Match Evaluator – AI evaluates alignment of each deal with market conditions. Parse AI Output & Merge Forecast – Parses AI response and combines with forecast data. Store Forecast in Database – Saves forecast and AI insights to Supabase. Update Deal Forecast in Zoho – Updates deals with adjusted forecast and AI insights. Send Forecast Summary to Slack – Sends a clear summary with key metrics. Setup Steps Import the workflow JSON file into n8n. Add Zoho credentials for deal fetch and update nodes. Add AlphaVantage API key for market signal node. Configure Supabase node to store forecast data. Add Slack credentials and choose a channel for notifications. Test the workflow manually to ensure metrics are calculated correctly. Activate the weekly trigger. How To Customize Nodes Forecast Calculation Modify Generate Forecast Metrics node to adjust seasonal factors or calculation logic. AI Match Evaluation You can tweak prompts in Message a Model to adjust AI scoring logic or reasoning output. Database Storage Supabase node can include additional fields: Timestamp Deal owner Notes or comments Additional KPIs Slack Alerts Customize message format, emojis, or mentions for team readability. Add-Ons (Optional Enhancements) Integrate multiple market indices for more accurate forecasting. Add multi-stage probability adjustments. Create dashboards using stored forecast data. Extend AI evaluation for risk scoring or priority recommendations. Use Case Examples Pipeline Health Quickly see which deals are aligned with market conditions. Forecast Accuracy Track historical vs AI-enhanced forecasts for trend analysis. Team Notifications Slack summary alerts keep sales and leadership informed weekly. Troubleshooting Guide | Issue | Possible Cause | Solution | |-------|----------------|---------| | No Slack alerts | Invalid credentials | Re-check Slack API key and channel | | Forecast not updating | Zoho API error | Verify Zoho OAuth credentials | | AI node fails | Model misconfiguration | Check OpenAI API credentials & prompt format | | Data not stored | Supabase connection issue | Verify credentials and table mapping | Need Help? If you need assistance setting up the workflow, modifying the AI forecast logic or integrating Slack summaries our n8n workflow development team at WeblineIndia can help. We provide workflow customization, advanced forecasting and reporting solutions for Zoho CRM pipelines.
Sum or aggregate a column of spreadsheet or table data
This workflow shows how to sum multiple items of data, like you would in Excel or Airtable when summing up the total of a column. It uses a Function node with some javascript to perform the aggregation of numeric data. The first node is simply mock data to avoid needing a credential to run the workflow. The second node actually performs the summation - the javascript has various comments in case you need to edit the JS. For example, to sum multiple items of data. Below is an example of the type of data this workflow can sum - so anything that is in a tabular form (Airtable, GSHeets, Postgres etc).