Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Monitoring, Ops & Incidents

Monitoring, Ops & Incidents

Flag B2B churn-risk orders from Google Sheets with Gemini and Slack alerts

Runs daily at 2 AM, reads unprocessed B2B orders from Google Sheets, flags volume anomalies in strategic accounts, and sends Gemini-written incident notes to Slack.

What it does

## B2B Churn Watchdog - Slack Notification & Sheet Pipeline ### How it works 1. Triggers every morning at 2:00 AM to retrieve unprocessed order records from Google Sheets.\n2. Joins order records with historical baseline metrics and filters down to strategic account tiers.\n3. Evaluates transaction volume against thresholds to detect anomalies, routing normal orders away from alerts.\n4. Checks alert cooldown windows to deduplicate notices and suppress repeat warnings.\n5. Sends anomalous order data to Google Gemini to generate structured incident summaries and root-cause notes.\n6. Broadcasts notifications to Slack and Gmail, logs the alert audit, and flags orders as processed in Google Sheets. ### Setup steps - - [ ] Connect Google Sheets credentials and set the target spreadsheet ID in the Set Workflow Params node. - - [ ] Connect Google Gemini credentials in the Access Gemini Model node. - - [ ] Connect Slack credentials and designate the recipient alert channel. - - [ ] Connect Gmail credentials and specify destination email addresses for action briefings. - - [ ] Adjust the Schedule Trigger frequency and order batch size if needed. ### Customization Adjust the cooldown_days parameter in the Set Workflow Params node to control alert frequencies, or modify prompt templates in the Gemini LLM node to alter analysis depth. @youtube

The steps

  1. Every Day at 2 AM
  2. Set Config Parameters
  3. Fetch Orders from Sheets
  4. Filter Unprocessed Orders
  5. Fetch Baselines from Sheets
  6. Merge Orders with Baselines
  7. Filter Strategic Tiers
  8. Detect Order Anomalies
  9. If Anomaly Detected
  10. Check Alert Cooldown
  11. Analyze Anomaly with Gemini
  12. Gemini Chat Model
  13. Parse Structured Analysis
  14. Build Incident Alerts

22 steps in total.

Similar automations