Triage Shopify refund and fraud requests with Gemini, Sightengine, Jira and Slack

Go to Workflow
0 views
Built by iamvaar iamvaar
Created on October 25, 2026

Description

Quick overview
Youtube Video: https://youtu.be/0lc_UfiqvIA

This workflow collects refund requests via an n8n Form, validates the order in Shopify, save contact to Klaviyo and Shopify journey data, checks images with Sightengine, and uses Gemini to generate fraud triage decision that is logged to Sheets, filed in Jira, and posted to Slack.

How it works
Receives a refund request through an n8n Form with order details, reason, and an optional image attachment.
Writes the submission to Google Sheets with a PENDING_TRIAGE status, then looks up the order in Shopify and checks that the order exists and the submitted email matches.
If the order cannot be verified, updates the Google Sheets row with an invalid status and sends an alert to Slack.
If the order is verified, looks up the customer in Klaviyo and creates a profile if one does not already exist.
Fetches recent order history and customerJourneySummary data from Shopify GraphQL and builds a single AI context payload that also preserves the uploaded image.
Sends the attachment to Sightengine’s GenAI detector, converts the result into an authenticity status and score, and passes everything to Google Gemini to produce a structured refund recommendation, fraud risk score, and notes.
Creates a Jira issue with the AI triage report, updates the original Google Sheets row with the decision and Jira key, and notifies the support team in Slack.

Setup
Create and publish the n8n Form, then share its public URL with customers or embed it where you collect refund requests.
Connect Shopify OAuth2 credentials and ensure the workflow can access both the Admin REST API (order lookup) and Admin GraphQL API (customerJourneySummary query).
Add Google Sheets service account credentials and update the spreadsheet ID and the “Refund Requests” sheet name/columns to match your document.
Add Slack credentials and set the target channel(s) for unverified-order alerts and triaged-refund notifications.
Add Jira Software Cloud credentials and select the target project and issue type for refund tickets.
Add Klaviyo API credentials and configure the account that should own/track customer profiles, and provide Sightengine API credentials for the image authenticity check.

This workflow was created by iamvaar and shared publicly on the n8n community template library. n8nFind indexes it for discovery — the workflow remains the property of its original creator.

Nodes Used (9)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
Jira Software
n8n-nodes-base.jira
Shopify
n8n-nodes-base.shopify
Slack
n8n-nodes-base.slack
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured