Flag anomalous B2B orders with Google Sheets, Gemini, and Slack
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on a schedule (every 15 minutes). Along the way it connects Google Sheets, Google Gemini Chat Model and Slack.
How it runs
Trigger: On a schedule (every 15 minutes).
- Set Configuration Values (Edit Fields (Set)): sets 3 fields: sheet_id, slack_channel_id, currency
- Read Pending Orders from Sheets (Google Sheets): uses Google Sheets
- Fetch Customer Data (Google Sheets): uses Google Sheets
- Retrieve Order History (Google Sheets): uses Google Sheets
- Summarize: summarizes / groups the items
- Fetch Product Information (Google Sheets): uses Google Sheets
- Retrieve Customer Credit (Google Sheets): uses Google Sheets
- Fetch Customer Returns (Google Sheets): uses Google Sheets
- Assemble Context Data (Edit Fields (Set)): sets or maps fields
- Order Risk Analysis Agent (AI Agent): runs an AI agent, with model: Gemini Model Chat; output parser: Parse AI Output
…plus 6 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Slack templates (309)
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 (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Summarize
n8n-nodes-base.summarize
From the author
Quick overview Youtube Video: https://youtu.be/f7Kh1qxL9I This workflow runs every 15 minutes to review pending distributor orders stored in Google Sheets, enriches them with customer, product, credit, returns, and order-history stats, uses Google Gemini to…