Detect Stripe payment anomalies with Groq, Supabase, Slack, and Google Sheets
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs on a schedule (every hour). Along the way it connects Google Sheets, Supabase and Slack. It also calls api.groq.com over HTTP.
How it runs
Trigger: On a schedule (every hour).
- Fetch Stripe Payments (Google Sheets): uses Google Sheets
- Clean & Normalize (Code): runs custom JavaScript code
- Store Analytics Record (Supabase): uses Supabase
- Build AI Analysis Prompt (Code): runs custom JavaScript code
- Log Error to Sheet (Google Sheets): append
- Detect Anomalies (AI) (HTTP Request): calls api.groq.com (POST)
- Parse AI Result (Code): runs custom JavaScript code
- Anomaly Detected? (If): checks a condition and branches into true / false
- Log Incident (Supabase): uses Supabase
- Send Slack Alert (Slack): uses Slack
Services it uses
HTTP calls to: api.groq.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Supabase
n8n-nodes-base.supabase - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs hourly to read Stripe transaction logs from Google Sheets, normalize and load them into Supabase, then uses Groq (OpenAI-compatible chat completions) to detect anomalies and, when found, records incidents in Supabase and…