# Decide Shopify return refunds with OpenAI and Slack: n8n workflow

> Started by another system calling it, and works across Google Sheets and Slack. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/decide-shopify-return-refunds-with-openai-and-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [E-commerce](https://millionrounds.com/workflows?category=E-commerce#library)

# Decide Shopify return refunds with OpenAI and Slack

Started by another system calling it, and works across Google Sheets and Slack. It hands the judgement calls to OpenAI. 9 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdecide-shopify-return-refunds-with-openai-and-slack)

**9 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 1 Logic 2 Service 4

The steps in the order they run, from what starts it.

- 1 **Return Request Webhook1** Webhook *Starts it*
- 2 **Fetch Order & Customer1** Http Request *Service*
- 3 **Compute Return Metrics1** Code *Logic*
- 4 **AI Refund Decision1** Open Ai *Model*
- 5 **Route by Decision2** Switch *Logic*
- 6 **Issue Refund (Shopify)1** Http Request *Service*
- 7 **Slack Review Queue1** Slack *Service*
- 8 **Log RMA to Sheets1** Google Sheets *Service*
- 9 **Respond to Store1** Respond To Webhook *Starts it*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 9, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Google Sheets, Slack
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 9 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 9 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fdecide-shopify-return-refunds-with-openai-and-slack)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**AI chatbot agent for orders, tickets & feedback with OpenAI** 9 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/ai-chatbot-agent-for-orders-tickets-and-feedback-with-openai)
- [**AI-Powered E-commerce Customer Service & Order Management System** 9 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-e-commerce-customer-service-and-order-management-)
- [**Automate WooCommerce SEO with Yoast** 9 steps · calls a model · Google Sheets, WooCommerce](https://millionrounds.com/workflow/automate-woocommerce-seo-with-yoast)
- [**Shopify VIP alerts: AI summary & Slack notification** 9 steps · calls a model · Slack](https://millionrounds.com/workflow/shopify-vip-alerts-ai-summary-and-slack-notification)
- [**Triage Shopify return and refund requests with Groq and Slack** 9 steps · calls a model · Slack](https://millionrounds.com/workflow/triage-shopify-return-and-refund-requests-with-groq-and-slac)
- [**Automated WooCommerce abandoned cart recovery** 9 steps · Email, Google Sheets](https://millionrounds.com/workflow/automated-woocommerce-abandoned-cart-recovery)
