Answer and track Stripe disputes with OpenAI and Slack
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs on Stripe events (charge.dispute.created, charge.dispute.closed) (plus 1 other trigger). Along the way it connects Stripe, Slack and OpenAI Chat Model. It also calls api.stripe.com over HTTP.
How it runs
Trigger: On Stripe events (charge.dispute.created, charge.dispute.closed) (plus 1 other trigger).
- Dispute Rules (Edit Fields (Set)): sets 8 fields: submit_automatically, accept_automatically, minimum_amount_to_fight…
- New, Closed Or Daily Check? (Switch): routes items into 3 branches
- Read The Dispute (HTTP Request): calls an HTTP API
- Word The Outcome (Code): runs custom JavaScript code
- Read Open Disputes (HTTP Request): calls api.stripe.com
- Read The Customer History (HTTP Request): calls an HTTP API
- Report The Outcome (Slack): post (message)
- Find Disputes Close To Their Deadline (Code): runs custom JavaScript code
- Decide Fight Or Accept (Code): runs custom JavaScript code
- Warn Finance About Deadlines (Slack): post (message)
…plus 11 more steps. See the full node list below.
Services it uses
Other OpenAI + Slack templates (979) · Other Stripe + Slack templates (27) · Other Stripe + OpenAI templates (15)
HTTP calls to: api.stripe.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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Stripe Trigger
n8n-nodes-base.stripeTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Slack
n8n-nodes-base.slack - HTTP Request
n8n-nodes-base.httpRequest - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
Quick overview This workflow monitors Stripe dispute events and runs a daily deadline check, then uses OpenAI to draft a facts-only rebuttal letter, updates dispute evidence in Stripe (draft or submit/accept), and notifies your finance team in Slack about…