Templates / Analyze failed trades in Google Sheets with Gemini and send Slack, email, and task alerts

Analyze failed trades in Google Sheets with Gemini and send Slack, email, and task alerts

Ready for 3.0

by WeblineIndia ✓ · 18 views · created 2026-05-20 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 15 nodes and runs on Google Sheets events (row added). Along the way it connects Google Sheets, Google Gemini Chat Model, Slack and Google Tasks and 1 more.

How it runs

Trigger: On Google Sheets events (row added).

  1. Prepare Failed Trade Record (Edit Fields (Set)): sets 18 fields: id, logged_at, trade_id…
  2. Check Required Trade Fields (If): checks a condition and branches into true / false
  3. Analyze Failed Trade with AI (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
  4. Prepare Invalid Trade Update (Edit Fields (Set)): sets 23 fields: ID, Logged At, Trade ID…
  5. Parse AI Analysis (Code): runs custom JavaScript code
  6. Update Invalid Trade Status (Google Sheets): update
  7. Prepare Trade Log Update (Edit Fields (Set)): sets 23 fields: ID, Logged At, Trade ID…
  8. Update Failed Trade Sheet (Google Sheets): update
  9. Send Ops Alert (Slack): uses Slack
  10. Create Follow-up Task (Google Tasks): uses Google Tasks

…plus 3 more steps. See the full node list below.

Services it uses

Google SheetsGoogle Gemini Chat ModelSlackGoogle TasksGmail

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 (10)

From the author

Failed Trade Root Cause Explainer This workflow automatically monitors a Google Sheet for failed trades, analyzes each failure using AI and updates the sheet with a probable root cause, confidence level and actionable next steps. It also sends alerts via…

Excerpt from WeblineIndia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.