Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Monitoring, Ops & Incidents

Monitoring, Ops & Incidents

Detect and remediate data pipeline anomalies with Claude, PostgreSQL and Slack

Every 15 minutes checks the latest data batch in PostgreSQL for anomalies, has Claude draft and run fixes, validates results, logs outcomes, and escalates failed remediations for human review.

What it does

## Untitled workflow ### How it works This workflow monitors data pipelines for anomalies using statistical and ML-based methods. It triggers every 15 minutes to fetch and analyze the latest data batch. Anomalies are classified and remediation plans are generated using AI. Remediation actions are executed and validated for success. Critical issues trigger PagerDuty alerts, while failures escalate to human review. Successful remediations and incidents are logged for further analysis. ### Setup steps - [ ] Configure PostgreSQL credentials for fetching and logging data. - [ ] Set up Anthropic API credentials for anomaly classification and remediation planning. - [ ] Configure Slack credentials for notifications and human review escalation. - [ ] Set up PagerDuty API credentials for critical alerts. - [ ] Configure DataDog API credentials for metrics and baseline updates. ### Customization Adjust the nullThreshold, outlierIQRMultiplier, and slackChannel in the Workflow Configuration node based on pipeline requirements. Modify the SQL queries in PostgreSQL nodes to match your schema.

The steps

  1. When Scheduled Run Starts
  2. Set Pipeline Parameters
  3. Fetch Latest Data from PostgreSQL
  4. Run Statistical Quality Checks
  5. Check If Anomaly Detected
  6. AI Anomaly Classifier Agent
  7. AI Remediation Planner Agent
  8. Route by Remediation Type
  9. Remediate Missing Values
  10. Remediate Outliers
  11. Remediate Schema Format
  12. Retry Upstream Data Fetch
  13. Merge Remediated Data Streams
  14. Re-run Quality Checks on Remediated Data

33 steps in total.

Similar automations