Skip to main content

Detect pricing anomalies in Google Sheets with Groq AI and Slack alerts

Workflow preview

Workflow preview
100%
Detect pricing anomalies in Google Sheets with Groq AI and Slack alerts preview
Open on n8n.io

1. Workflow Overview

Data Quality Checker This workflow automatically monitors pricing data in Google Sheets, detects anomalies such as missing values or sudden spikes/drops, generates AI based short explanations for f...

Best for

  • Document Extraction automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgroq, n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.code, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Detect pricing anomalies in Google Sheets with Groq AI and Slack alerts
Workflow name
Detect pricing anomalies in Google Sheets with Groq AI and Slack alerts

Data Quality Checker

This workflow automatically monitors pricing data in Google Sheets, detects anomalies such as missing values or sudden spikes/drops, generates AI-based short explanations for flagged rows, updates the sheet with status and reason and sends Slack alerts for critical issues.

Quick Implementation Steps:

  1. Prepare your Google Sheet with columns: price, previous_price, status, reason, row_number.
  2. Connect n8n with your Google Sheets, Slack and Groq AI credentials.
  3. Trigger the workflow manually or via webhook.
  4. Each row is processed to detect anomalies and generate a reason using AI.
  5. Flagged rows are updated in Google Sheets and a Slack alert is sent automatically.

What It Does

The Data Quality Checker workflow is designed to help you maintain accurate pricing data effortlessly. It fetches data from Google Sheets, evaluates each row for anomalies and ensures that unusual changes in prices do not go unnoticed.

It automatically flags rows with missing values, sudden spikes or sudden drops in price. The workflow uses a Groq AI model to generate concise explanations for any anomalies found, providing actionable insights directly in your sheet.

For rows without issues, it marks the status as OK with a standard reason. A Slack alert is sent for flagged data to keep teams informed in real-time, preventing unnoticed errors and enabling faster corrective actions.

Who It's For

  • Data analysts monitoring pricing or inventory data.
  • E-commerce managers tracking product price fluctuations.
  • Finance teams validating large datasets for inconsistencies.
  • Operations teams needing automated anomaly detection with alerts.

This workflow suits anyone who relies on timely, accurate data and wants automated anomaly detection and reporting.

Requirements to Use This Workflow

  • n8n account (cloud or self-hosted).
  • Google Sheets account with read/write access to the target sheet.
  • Slack workspace with a channel for alerts.
  • Groq AI account for anomaly explanation generation.
  • Sheet structure: columns price, previous_price, status, reason, row_number.

How It Works & Setup Guide

  1. Prepare Google Sheet
  • Ensure your sheet has price, previous_price, status, reason, row_number.
  • Populate initial pricing data.
  1. Connect Credentials in n8n
  • Add Google Sheets OAuth2 for reading and updating the sheet.
  • Add Slack API credentials to send alerts.
  • Add Groq AI credentials for AI reasoning.
  1. Trigger the Workflow
  • Use a manual trigger or configure a webhook to run automatically.
  1. Process Data
  • The workflow fetches data from Google Sheets.
  • SplitInBatches node ensures each row is processed individually.
  • Check Price Issues node checks for missing values or sudden changes.
  1. Anomaly Handling
  • If node determines whether an anomaly exists.
  • For flagged rows, AI generates a short reason (Generate Issue Reason).
  • Prepare Flag Data formats data for updating the sheet.
  1. Update & Alert
  • Update Flagged Row writes flagged status and reason back to Google Sheets.
  • Update Normal Row writes OK status for rows with no issues.
  • Send Slack Alert sends real-time notifications for flagged anomalies.

How To Customize Nodes

  • Google Sheets nodes: update documentId and sheetName to match your own sheets.
  • Slack node: change channelId and alert text to match your workspace and notification style.
  • AI node: adjust the prompt in Generate Issue Reason to change explanation style or length.
  • Code node: modify the logic in Check Price Issues to define what constitutes a spike or drop.

Add-ons

  • Connect to email notifications instead of Slack.
  • Extend AI logic to suggest corrective actions.
  • Include historical trend analysis in Google Sheets for better insights.
  • Integrate with other data sources like CSV or databases.

Use Case Examples

  1. E-commerce pricing validation: Automatically detect and explain unusual price changes for hundreds of products.

  2. Inventory data verification: Ensure stock values and price adjustments are accurate daily.

  3. Finance anomaly detection: Detect sudden cost or rate fluctuations in financial datasets.

  4. Market monitoring: Track competitor pricing changes with automated alerts.

  5. General data quality assurance: Any dataset requiring automated checks for missing or inconsistent values.

This workflow is flexible and can be adapted to other types of tabular data beyond pricing.

Troubleshooting Guide

Issue Possible Cause Solution
Workflow not triggering Trigger node not active Enable the manual or webhook trigger
Data not fetched Wrong documentId or sheetName Verify Google Sheets node settings and credentials
Slack alert not sent Invalid channel ID or credentials Update Slack credentials and ensure channel ID is correct
AI reasoning fails Groq API issues or prompt misconfigured Check Groq AI credentials and review the prompt text
Wrong anomaly detection Code logic in Check Price Issues Adjust thresholds or conditions in the code node
Sheet updates not saving Google Sheets permission issue Ensure OAuth2 account has write access to the sheet

Need Help?

If you face issues setting up this workflow, customizing nodes or integrating add-ons, our n8n automation team can help. We specialize in building and optimizing n8n workflows for automation, data quality and alerting.

Contact us to implement this workflow, enhance it or create custom automation solutions tailored to your business needs.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Groq Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGroq - lmChatGroq
Config choices
Version 1

Block 2 - Start Data Check

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 3 - Get Pricing Data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 4 - Process Each Row

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Check Price Issues

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Is Issue Found?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 7 - Generate Issue Reason

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 8 - Prepare Flag Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Update Flagged Row

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 10 - Update Normal Row

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 11 - Send Slack Alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Detect pricing anomalies in Google Sheets with Groq AI and Slack alerts
Complexity advanced
Nodes 15
Categories Document Extraction, AI Summarization
Author WeblineIndia
Published 21 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15887/15887.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Detect pricing anomalies in Google Sheets with Groq AI and Slack alerts do?

Data Quality Checker This workflow automatically monitors pricing data in Google Sheets, detects anomalies such as missing values or sudden spikes/drops, generates AI based short explanations for f...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Summarization use case.