Build Stripe dispute evidence from WooCommerce orders, Gmail, and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 27 nodes and runs on Stripe events (charge.dispute.created, charge.dispute.closed). Along the way it connects Stripe, WooCommerce, Gmail and OpenAI Chat Model and 2 more.
How it runs
Trigger: On Stripe events (charge.dispute.created, charge.dispute.closed).
- Set Store Configuration (Edit Fields (Set)): sets 12 fields: storeName, storeUrl, refundPolicyUrl…
- Route by Event Type (Switch): routes items into 2 branches
- Fetch Stripe Dispute Details (HTTP Request): calls an HTTP API
- Format Dispute Outcome Data (Edit Fields (Set)): sets 3 fields: Dispute ID, Outcome, Closed on
- Extract Payment Signals (Code): runs custom JavaScript code
- Append Outcome to Tracker (Google Sheets): append or update
- Check If Response Needed (Filter): keeps only the items that match a condition
- Announce Outcome in Slack (Slack): uses Slack
- Check WooCommerce Order (If): checks a condition and branches into true / false
- Fetch WooCommerce Order (WooCommerce): get (order)
…plus 14 more steps. See the full node list below.
Services it uses
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 (15)
- Stripe Trigger
n8n-nodes-base.stripeTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - WooCommerce
n8n-nodes-base.wooCommerce - Gmail
n8n-nodes-base.gmail - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow reacts to Stripe dispute events, pulls related WooCommerce order details and recent Gmail messages, uses OpenAI to draft dispute evidence, saves the evidence on the Stripe dispute (as a draft or auto-submitted), and posts updates…