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:
price, previous_price, status, reason, row_number.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.
This workflow suits anyone who relies on timely, accurate data and wants automated anomaly detection and reporting.
price, previous_price, status, reason, row_number.Prepare Google Sheet
price, previous_price, status, reason, row_number.Connect Credentials in n8n
Trigger the Workflow
Process Data
SplitInBatches node ensures each row is processed individually.Check Price Issues node checks for missing values or sudden changes.Anomaly Handling
If node determines whether an anomaly exists.Generate Issue Reason).Prepare Flag Data formats data for updating the sheet.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.documentId and sheetName to match your own sheets.channelId and alert text to match your workspace and notification style.Generate Issue Reason to change explanation style or length.Check Price Issues to define what constitutes a spike or drop.E-commerce pricing validation: Automatically detect and explain unusual price changes for hundreds of products.
Inventory data verification: Ensure stock values and price adjustments are accurate daily.
Finance anomaly detection: Detect sudden cost or rate fluctuations in financial datasets.
Market monitoring: Track competitor pricing changes with automated alerts.
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.
| 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 |
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.