Detect and score refund risk with Webhook, OpenAI and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail, Google Sheets, OpenAI and Discord.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Split Out: splits a list into separate items
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- DEDUPE CHECK (If): checks a condition and branches into true / false
- Normalize Data (Code): runs custom JavaScript code
- Message a model (OpenAI): uses OpenAI
- Parse AI Output (Code): runs custom JavaScript code
- Log Result (Google Sheets): append
- If: checks a condition and branches into true / false
- Discord: uses Discord
- Update row in sheet (Google Sheets): update
…plus 1 more step. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Split Out
n8n-nodes-base.splitOut - OpenAI
@n8n/n8n-nodes-langchain.openAi - Discord
n8n-nodes-base.discord - Webhook
n8n-nodes-base.webhook
From the author
How it works This workflow automatically evaluates refund and chargeback risk for incoming e-commerce orders. Orders are received via a webhook, processed individually, and checked to avoid duplicate analysis. Each transaction is normalized and sent to OpenAI…