Decide Shopify return refunds with GPT-4o, Slack, and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI, Slack and Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Fetch Order & Customer (HTTP Request): calls an HTTP API
- Compute Return Metrics (Code): runs custom JavaScript code
- AI Refund Decision (OpenAI): uses OpenAI
- Route by Decision (Switch): routes items into 2 branches
- Issue Refund (Shopify) (HTTP Request): calls an HTTP API (POST)
- Slack: uses Slack
- Log RMA to Sheets (Google Sheets): append
- Respond to Store (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
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 (8)
- Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook - Switch
n8n-nodes-base.switch
From the author
Quick overview This workflow receives Shopify return/RMA requests via webhook, fetches order details from the Shopify Admin API, uses OpenAI (GPT-4o) to decide whether to approve, review, or deny the refund, then posts exceptions to Slack, logs all RMAs to…